virtual-kubelet: github.com/virtual-kubelet/virtual-kubelet/providers Index | Files | Directories

package providers

import "github.com/virtual-kubelet/virtual-kubelet/providers"

Index

Package Files

provider.go types.go

Constants

const (
    // OperatingSystemLinux is the configuration value for defining Linux.
    OperatingSystemLinux = "Linux"
    // OperatingSystemWindows is the configuration value for defining Windows.
    OperatingSystemWindows = "Windows"
)

Variables

var (
    // ValidOperatingSystems defines the group of operating systems
    // that can be used as a kubelet node.
    ValidOperatingSystems = OperatingSystems{
        OperatingSystemLinux:   true,
        OperatingSystemWindows: true,
    }
)

type OperatingSystems Uses

type OperatingSystems map[string]bool

func (OperatingSystems) Names Uses

func (o OperatingSystems) Names() []string

type PodMetricsProvider Uses

type PodMetricsProvider interface {
    GetStatsSummary(context.Context) (*stats.Summary, error)
}

PodMetricsProvider is an optional interface that providers can implement to expose pod stats

type Provider Uses

type Provider interface {
    vkubelet.PodLifecycleHandler

    // GetContainerLogs retrieves the logs of a container by name from the provider.
    GetContainerLogs(ctx context.Context, namespace, podName, containerName string, opts api.ContainerLogOpts) (io.ReadCloser, error)

    // RunInContainer executes a command in a container in the pod, copying data
    // between in/out/err and the container's stdin/stdout/stderr.
    RunInContainer(ctx context.Context, namespace, podName, containerName string, cmd []string, attach api.AttachIO) 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

PathSynopsis
alibabacloud
alibabacloud/eci
aws
aws/fargate
azure
azurebatch
cri
huawei
huawei/auth
mock
nomad
openstack
register
vic
webPackage web provides an implementation of the virtual kubelet provider interface by forwarding all calls to a web endpoint.

Package providers imports 6 packages (graph) and is imported by 11 packages. Updated 2019-05-20. Refresh now. Tools for package owners.