Documentation ¶
Index ¶
- type FargateProvider
- func (p *FargateProvider) Capacity() corev1.ResourceList
- func (p *FargateProvider) CreatePod(pod *corev1.Pod) error
- func (p *FargateProvider) DeletePod(pod *corev1.Pod) error
- func (p *FargateProvider) ExecInContainer(name string, uid types.UID, container string, cmd []string, in io.Reader, ...) error
- func (p *FargateProvider) GetContainerLogs(namespace, podName, containerName string, tail int) (string, error)
- func (p *FargateProvider) GetPod(namespace, name string) (*corev1.Pod, error)
- func (p *FargateProvider) GetPodFullName(namespace string, pod string) string
- func (p *FargateProvider) GetPodStatus(namespace, name string) (*corev1.PodStatus, error)
- func (p *FargateProvider) GetPods() ([]*corev1.Pod, error)
- func (p *FargateProvider) NodeAddresses() []corev1.NodeAddress
- func (p *FargateProvider) NodeConditions() []corev1.NodeCondition
- func (p *FargateProvider) NodeDaemonEndpoints() *corev1.NodeDaemonEndpoints
- func (p *FargateProvider) OperatingSystem() string
- func (p *FargateProvider) UpdatePod(pod *corev1.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FargateProvider ¶
type FargateProvider struct {
// contains filtered or unexported fields
}
FargateProvider implements the virtual-kubelet provider interface.
func NewFargateProvider ¶
func NewFargateProvider( config string, rm *manager.ResourceManager, nodeName string, operatingSystem string, internalIP string, daemonEndpointPort int32) (*FargateProvider, error)
NewFargateProvider creates a new Fargate provider.
func (*FargateProvider) Capacity ¶
func (p *FargateProvider) Capacity() corev1.ResourceList
Capacity returns a resource list with the capacity constraints of the provider.
func (*FargateProvider) CreatePod ¶
func (p *FargateProvider) CreatePod(pod *corev1.Pod) error
CreatePod takes a Kubernetes Pod and deploys it within the Fargate provider.
func (*FargateProvider) DeletePod ¶
func (p *FargateProvider) DeletePod(pod *corev1.Pod) error
DeletePod takes a Kubernetes Pod and deletes it from the provider.
func (*FargateProvider) ExecInContainer ¶ added in v0.4.1
func (p *FargateProvider) 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
ExecInContainer executes a command in a container in the pod, copying data between in/out/err and the container's stdin/stdout/stderr.
func (*FargateProvider) GetContainerLogs ¶
func (p *FargateProvider) GetContainerLogs(namespace, podName, containerName string, tail int) (string, error)
GetContainerLogs retrieves the logs of a container by name from the provider.
func (*FargateProvider) GetPod ¶
func (p *FargateProvider) GetPod(namespace, name string) (*corev1.Pod, error)
GetPod retrieves a pod by name from the provider (can be cached).
func (*FargateProvider) GetPodFullName ¶ added in v0.4.1
func (p *FargateProvider) GetPodFullName(namespace string, pod string) string
GetPodFullName retrieves the full pod name as defined in the provider context.
func (*FargateProvider) GetPodStatus ¶
func (p *FargateProvider) GetPodStatus(namespace, name string) (*corev1.PodStatus, error)
GetPodStatus retrieves the status of a pod by name from the provider.
func (*FargateProvider) GetPods ¶
func (p *FargateProvider) GetPods() ([]*corev1.Pod, error)
GetPods retrieves a list of all pods running on the provider (can be cached).
func (*FargateProvider) NodeAddresses ¶
func (p *FargateProvider) NodeAddresses() []corev1.NodeAddress
NodeAddresses returns a list of addresses for the node status within Kubernetes.
func (*FargateProvider) NodeConditions ¶
func (p *FargateProvider) NodeConditions() []corev1.NodeCondition
NodeConditions returns a list of conditions (Ready, OutOfDisk, etc), which is polled periodically to update the node status within Kubernetes.
func (*FargateProvider) NodeDaemonEndpoints ¶
func (p *FargateProvider) NodeDaemonEndpoints() *corev1.NodeDaemonEndpoints
NodeDaemonEndpoints returns NodeDaemonEndpoints for the node status within Kubernetes.
func (*FargateProvider) OperatingSystem ¶
func (p *FargateProvider) OperatingSystem() string
OperatingSystem returns the operating system the provider is for.