Documentation ¶
Index ¶
- type FargateProvider
- func (p *FargateProvider) Capacity(ctx context.Context) corev1.ResourceList
- func (p *FargateProvider) CreatePod(ctx context.Context, pod *corev1.Pod) error
- func (p *FargateProvider) DeletePod(ctx context.Context, 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(ctx context.Context, namespace, podName, containerName string, tail int) (string, error)
- func (p *FargateProvider) GetPod(ctx context.Context, namespace, name string) (*corev1.Pod, error)
- func (p *FargateProvider) GetPodFullName(namespace string, pod string) string
- func (p *FargateProvider) GetPodStatus(ctx context.Context, namespace, name string) (*corev1.PodStatus, error)
- func (p *FargateProvider) GetPods(ctx context.Context) ([]*corev1.Pod, error)
- func (p *FargateProvider) NodeAddresses(ctx context.Context) []corev1.NodeAddress
- func (p *FargateProvider) NodeConditions(ctx context.Context) []corev1.NodeCondition
- func (p *FargateProvider) NodeDaemonEndpoints(ctx context.Context) *corev1.NodeDaemonEndpoints
- func (p *FargateProvider) OperatingSystem() string
- func (p *FargateProvider) UpdatePod(ctx context.Context, 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(ctx context.Context) corev1.ResourceList
Capacity returns a resource list with the capacity constraints of the provider.
func (*FargateProvider) CreatePod ¶
CreatePod takes a Kubernetes Pod and deploys it within the Fargate provider.
func (*FargateProvider) DeletePod ¶
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(ctx context.Context, namespace, podName, containerName string, tail int) (string, error)
GetContainerLogs retrieves the logs of a container by name from the provider.
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(ctx context.Context, namespace, name string) (*corev1.PodStatus, error)
GetPodStatus retrieves the status of a pod by name from the provider.
func (*FargateProvider) GetPods ¶
GetPods retrieves a list of all pods running on the provider (can be cached).
func (*FargateProvider) NodeAddresses ¶
func (p *FargateProvider) NodeAddresses(ctx context.Context) []corev1.NodeAddress
NodeAddresses returns a list of addresses for the node status within Kubernetes.
func (*FargateProvider) NodeConditions ¶
func (p *FargateProvider) NodeConditions(ctx context.Context) []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(ctx context.Context) *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.