Documentation ¶
Index ¶
Constants ¶
View Source
const ( // OperatingSystemLinux is the configuration value for defining Linux. OperatingSystemLinux = "Linux" // OperatingSystemWindows is the configuration value for defining Windows. OperatingSystemWindows = "Windows" )
Variables ¶
View Source
var ( // ValidOperatingSystems defines the group of operating systems // that can be used as a kubelet node. ValidOperatingSystems = OperatingSystems{ OperatingSystemLinux: true, OperatingSystemWindows: true, } )
Functions ¶
This section is empty.
Types ¶
type OperatingSystems ¶
func (OperatingSystems) Names ¶
func (o OperatingSystems) Names() []string
type PodMetricsProvider ¶ added in v0.6.2
PodMetricsProvider is an optional interface that providers can implement to expose pod stats
type Provider ¶ added in v0.6.2
type Provider interface { // CreatePod takes a Kubernetes Pod and deploys it within the provider. CreatePod(ctx context.Context, pod *v1.Pod) error // UpdatePod takes a Kubernetes Pod and updates it within the provider. UpdatePod(ctx context.Context, pod *v1.Pod) error // DeletePod takes a Kubernetes Pod and deletes it from the provider. DeletePod(ctx context.Context, pod *v1.Pod) error // GetPod retrieves a pod by name from the provider (can be cached). GetPod(ctx context.Context, namespace, name string) (*v1.Pod, error) // GetContainerLogs retrieves the logs of a container by name from the provider. GetContainerLogs(ctx context.Context, namespace, podName, containerName string, tail int) (string, error) // ExecInContainer executes a command in a container in the pod, copying data // between in/out/err and the container's stdin/stdout/stderr. ExecInContainer(name string, uid types.UID, container string, cmd []string, in io.Reader, out, err io.WriteCloser, tty bool, resize <-chan remotecommand.TerminalSize, timeout time.Duration) error // GetPodStatus retrieves the status of a pod by name from the provider. GetPodStatus(ctx context.Context, namespace, name string) (*v1.PodStatus, error) // GetPods retrieves a list of all pods running on the provider (can be cached). GetPods(context.Context) ([]*v1.Pod, error) // Capacity returns a resource list with the capacity constraints of the provider. Capacity(context.Context) v1.ResourceList // NodeConditions returns a list of conditions (Ready, OutOfDisk, etc), which is // polled periodically to update the node status within Kubernetes. NodeConditions(context.Context) []v1.NodeCondition // NodeAddresses returns a list of addresses for the node status // within Kubernetes. NodeAddresses(context.Context) []v1.NodeAddress // NodeDaemonEndpoints returns NodeDaemonEndpoints for the node status // within Kubernetes. NodeDaemonEndpoints(context.Context) *v1.NodeDaemonEndpoints // OperatingSystem returns the operating system the provider is for. OperatingSystem() string }
Provider contains the methods required to implement a virtual-kubelet provider.
Directories ¶
Path | Synopsis |
---|---|
client
Package azure and subpackages are used to perform operations using the Azure Resource Manager (ARM).
|
Package azure and subpackages are used to perform operations using the Azure Resource Manager (ARM). |
client/aci
Package aci provides tools for interacting with the Azure Container Instances API.
|
Package aci provides tools for interacting with the Azure Container Instances API. |
client/api
Package api contains the common code shared by all Azure API libraries.
|
Package api contains the common code shared by all Azure API libraries. |
client/resourcegroups
Package resourcegroups provides tools for interacting with the Azure Resource Manager resource groups API.
|
Package resourcegroups provides tools for interacting with the Azure Resource Manager resource groups API. |
proxy/mocks
Code generated by mockery v1.0.0.
|
Code generated by mockery v1.0.0. |
Package web provides an implementation of the virtual kubelet provider interface by forwarding all calls to a web endpoint.
|
Package web provides an implementation of the virtual kubelet provider interface by forwarding all calls to a web endpoint. |
Click to show internal directories.
Click to hide internal directories.