k8s

package
v0.1.40 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 16, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const AnnotateConflict = derrors.StrError("annotate conflict")

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	Metadata ObjectMeta `json:"metadata"`
}

type K8s

type K8s interface {
	CurrentNamespace() string
	DeploymentAnnotate(ctx context.Context, buf *bytes.Buffer, namespace, deploymentName, resourceVersion, key string, value *string) (resourceVersionRet string, err error)
	DeploymentRead(ctx context.Context, namespace, podName string) (*Deployment, error)
	PodAnnotate(ctx context.Context, buf *bytes.Buffer, namespace, podName, resourceVersion, key string, value *string) (resourceVersionRet string, err error)
	PodList(ctx context.Context, buf *bytes.Buffer, namespace, labelSelector string) (*PodList, error)
}

type ObjectMeta

type ObjectMeta struct {
	Annotations     map[string]string `json:"annotations,omitempty"`
	Name            string            `json:"name,omitempty"`
	ResourceVersion string            `json:"resourceVersion,omitempty"` //nolint:tagliatelle // External API
}

type Pod

type Pod struct {
	Metadata ObjectMeta `json:"metadata"`
}

type PodList

type PodList struct {
	Items []*Pod `json:"items,omitempty"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL