Benign go Download

k8s.io/apimachinery v0.25.0-rc.1

Basename is uppercase README.mdBridge interface management reference

Evidence

At least four Markdown-style heading lines README.md · lines 1–30
1# apimachinery
2
3Scheme, typing, encoding, decoding, and conversion packages for Kubernetes and Kubernetes-like API objects.
4
5
6## Purpose
7
8This library is a shared dependency for servers and clients to work with Kubernetes API infrastructure without direct
9type dependencies. Its first consumers are `k8s.io/kubernetes`, `k8s.io/client-go`, and `k8s.io/apiserver`.
10
11
12## Compatibility
13
14There are *NO compatibility guarantees* for this repository. It is in direct support of Kubernetes, so branches
15will track Kubernetes and be compatible with that repo. As we more cleanly separate the layers, we will review the
16compatibility guarantee.
17
18
19## Where does it come from?
20
21`apimachinery` is synced from https://github.com/kubernetes/kubernetes/blob/master/staging/src/k8s.io/apimachinery.
22Code changes are made in that location, merged into `k8s.io/kubernetes` and later synced here.
23
24
25## Things you should *NOT* do
26
27 1. Add API types to this repo. This is for the machinery, not for the types.
28 2. Directly modify any files under `pkg` in this repo. Those are driven from `k8s.io/kubernetes/staging/src/k8s.io/apimachinery`.
29 3. Expect compatibility. This repo is direct support of Kubernetes and the API isn't yet stable enough for API guarantees.
30
Kubernetes source copyright marker doc.go · lines 1–17
1/*
2Copyright 2021 The Kubernetes Authors.
3
4Licensed under the Apache License, Version 2.0 (the "License");
5you may not use this file except in compliance with the License.
6You may obtain a copy of the License at
7
8 http://www.apache.org/licenses/LICENSE-2.0
9
10Unless required by applicable law or agreed to in writing, software
11distributed under the License is distributed on an "AS IS" BASIS,
12WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package apimachinery // import "k8s.io/apimachinery"
imports os codec.go · lines 12–35
12:42… IND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package apitesting
18
19import (
20 "fmt"
21 "mime"
22 "os"
23
24 "k8s.io/apimachinery/pkg/runtime"
25 "k8s.io/apimachinery/pkg/runtime/schema"
26 runtimeserializer "k8s.io/apimachinery/pkg/runtime/serializer"
27 "k8s.io/apimachinery/pkg/runtime/serializer/recognizer"
28)
29
⋯6 lines
os.Getenv() reads a named environment variable codec.go · lines 68–75
68:24… dec(gvs...)
69}
70
71func init() {
72 var err error
73 if apiMediaType := os.Getenv("KUBE_TEST_API_TYPE"); len(apiMediaType) > 0 {
74 testCodecMediaType, _, err = mime.ParseMediaType(apiMediaType)
75 if err != nil …
imports reflect valuefuzz.go · lines 12–24
12:42… IND, either express or implied.
13See the License for the specific language governing permissions and
14limitations under the License.
15*/
16
17package fuzzer
18
19import (
20 "reflect"
21)
22
23// ValueFuzz recursively changes all basic type values in an object. Any kind of references will not
24// be touch, i.e. the …

Showing the top 5 files — 6 more files (49 regions) not shown.

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.