package
0.11.0
Repository: https://github.com/bryanl/ksonnet.git
Documentation: pkg.go.dev

# Functions

ClientForResource returns the ResourceClient for a given object.
FetchVersion fetches version information from discovery client, and parses.
FlattenToV1 expands any List-type objects into their members, and cooerces everything to v1.Unstructured.
FqName returns "namespace.name".
GroupVersionKindFor returns a lowercased kind for an Kubernete's object.
NewAuthTransport returns a roundtripper that does bearer/etc authentication.
NewIdentityResolver returns a resolver that does only trivial :latest canonicalisation.
NewMemcachedDiscoveryClient creates a new DiscoveryClient that caches results in memory.
NewRegistryClient creates a new Registry client using the given http client and base URL.
NewRegistryResolver returns a resolver that looks up a docker registry to resolve digests.
ParseImageName parses a docker image into an ImageName struct.
ParseVersion parses version.Info into a ServerVersion struct.
Read fetches and decodes K8s objects by path.
RegisterNativeFuncs adds kubecfg's native jsonnet functions to provided VM.
ResourceNameFor returns a lowercase plural form of a type, for human messages.

# Structs

ImageName represents the parts of a docker image name.
Registry is a *crazy limited* Docker registry client.
ServerVersion captures k8s major.minor version in a parsed form.

# Interfaces

Resolver is able to resolve docker image names into more specific forms.

# Type aliases

AlphabeticalOrder is a `sort.Interface` that sorts the objects by namespace/name/kind alphabetical order.
DependencyOrder is a `sort.Interface` that *best-effort* sorts the objects so that known dependencies appear earlier in the list.