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

package alibabacloud

import "github.com/virtual-kubelet/alibabacloud-eci"

Index

Package Files

config.go eci.go errors.go

type AuthConfig Uses

type AuthConfig struct {
    Username      string `json:"username,omitempty"`
    Password      string `json:"password,omitempty"`
    Auth          string `json:"auth,omitempty"`
    Email         string `json:"email,omitempty"`
    ServerAddress string `json:"serveraddress,omitempty"`
    IdentityToken string `json:"identitytoken,omitempty"`
    RegistryToken string `json:"registrytoken,omitempty"`
}

AuthConfig is the secret returned from an ImageRegistryCredential

type ECIProvider Uses

type ECIProvider struct {
    // contains filtered or unexported fields
}

ECIProvider implements the virtual-kubelet provider interface and communicates with Alibaba Cloud's ECI APIs.

func NewECIProvider Uses

func NewECIProvider(config string, rm *manager.ResourceManager, nodeName, operatingSystem string, internalIP string, daemonEndpointPort int32) (*ECIProvider, error)

NewECIProvider creates a new ECIProvider.

func (*ECIProvider) Capacity Uses

func (p *ECIProvider) Capacity(ctx context.Context) v1.ResourceList

Capacity returns a resource list containing the capacity limits set for ECI.

func (*ECIProvider) CreatePod Uses

func (p *ECIProvider) CreatePod(ctx context.Context, pod *v1.Pod) error

CreatePod accepts a Pod definition and creates an ECI deployment

func (*ECIProvider) DeletePod Uses

func (p *ECIProvider) DeletePod(ctx context.Context, pod *v1.Pod) error

DeletePod deletes the specified pod out of ECI.

func (*ECIProvider) GetCgs Uses

func (p *ECIProvider) GetCgs() []eci.ContainerGroup

func (*ECIProvider) GetContainerLogs Uses

func (p *ECIProvider) GetContainerLogs(ctx context.Context, namespace, podName, containerName string, opts api.ContainerLogOpts) (io.ReadCloser, error)

GetContainerLogs returns the logs of a pod by name that is running inside ECI.

func (*ECIProvider) GetPod Uses

func (p *ECIProvider) GetPod(ctx context.Context, namespace, name string) (*v1.Pod, error)

GetPod returns a pod by name that is running inside ECI returns nil if a pod by that name is not found.

func (*ECIProvider) GetPodFullName Uses

func (p *ECIProvider) GetPodFullName(namespace string, pod string) string

Get full pod name as defined in the provider context

func (*ECIProvider) GetPodStatus Uses

func (p *ECIProvider) GetPodStatus(ctx context.Context, namespace, name string) (*v1.PodStatus, error)

GetPodStatus returns the status of a pod by name that is running inside ECI returns nil if a pod by that name is not found.

func (*ECIProvider) GetPods Uses

func (p *ECIProvider) GetPods(ctx context.Context) ([]*v1.Pod, error)

GetPods returns a list of all pods known to be running within ECI.

func (*ECIProvider) NodeAddresses Uses

func (p *ECIProvider) NodeAddresses(ctx context.Context) []v1.NodeAddress

NodeAddresses returns a list of addresses for the node status within Kubernetes.

func (*ECIProvider) NodeConditions Uses

func (p *ECIProvider) NodeConditions(ctx context.Context) []v1.NodeCondition

NodeConditions returns a list of conditions (Ready, OutOfDisk, etc), for updates to the node status within Kubernetes.

func (*ECIProvider) NodeDaemonEndpoints Uses

func (p *ECIProvider) NodeDaemonEndpoints(ctx context.Context) *v1.NodeDaemonEndpoints

NodeDaemonEndpoints returns NodeDaemonEndpoints for the node status within Kubernetes.

func (*ECIProvider) OperatingSystem Uses

func (p *ECIProvider) OperatingSystem() string

OperatingSystem returns the operating system that was provided by the config.

func (*ECIProvider) RunInContainer Uses

func (p *ECIProvider) RunInContainer(ctx context.Context, namespace, podName, containerName string, cmd []string, attach api.AttachIO) error

RunInContainer executes a command in a container in the pod, copying data between in/out/err and the container's stdin/stdout/stderr.

func (*ECIProvider) UpdatePod Uses

func (p *ECIProvider) UpdatePod(ctx context.Context, pod *v1.Pod) error

UpdatePod is a noop, ECI currently does not support live updates of a pod.

Directories

PathSynopsis
eci

Package alibabacloud imports 29 packages (graph). Updated 2019-06-25. Refresh now. Tools for package owners.