Documentation ¶
Index ¶
- type Config
- type ConfigError
- type Provider
- func (p *Provider) Capacity(ctx context.Context) v1.ResourceList
- func (p *Provider) CreatePod(ctx context.Context, pod *v1.Pod) error
- func (p *Provider) DeletePod(ctx context.Context, pod *v1.Pod) error
- func (p *Provider) ExecInContainer(name string, uid types.UID, container string, cmd []string, in io.Reader, ...) error
- func (p *Provider) GetContainerLogs(ctx context.Context, namespace, podName, containerName string, tail int) (string, error)
- func (p *Provider) GetPod(ctx context.Context, namespace, name string) (*v1.Pod, error)
- func (p *Provider) GetPodFullName(namespace string, pod string) string
- func (p *Provider) GetPodStatus(ctx context.Context, namespace, name string) (*v1.PodStatus, error)
- func (p *Provider) GetPods(ctx context.Context) ([]*v1.Pod, error)
- func (p *Provider) NodeAddresses(ctx context.Context) []v1.NodeAddress
- func (p *Provider) NodeConditions(ctx context.Context) []v1.NodeCondition
- func (p *Provider) NodeDaemonEndpoints(ctx context.Context) *v1.NodeDaemonEndpoints
- func (p *Provider) OperatingSystem() string
- func (p *Provider) UpdatePod(ctx context.Context, pod *v1.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ClientID string ClientSecret string SubscriptionID string TenantID string ResourceGroup string PoolID string JobID string AccountName string AccountLocation string }
Config - Basic azure config used to interact with ARM resources.
type ConfigError ¶
ConfigError - Error when reading configuration values.
func (*ConfigError) Error ¶
func (e *ConfigError) Error() string
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider the base struct for the Azure Batch provider
func NewBatchProvider ¶
func NewBatchProvider(configString string, rm *manager.ResourceManager, nodeName, operatingSystem string, internalIP string, daemonEndpointPort int32) (*Provider, error)
NewBatchProvider Creates a batch provider
func NewBatchProviderFromConfig ¶
func NewBatchProviderFromConfig(config *Config, rm *manager.ResourceManager, nodeName, operatingSystem string, internalIP string, daemonEndpointPort int32) (*Provider, error)
NewBatchProviderFromConfig Creates a batch provider
func (*Provider) Capacity ¶
func (p *Provider) Capacity(ctx context.Context) v1.ResourceList
Capacity returns a resource list containing the capacity limits
func (*Provider) ExecInContainer ¶
func (p *Provider) 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. TODO: Implementation
func (*Provider) GetContainerLogs ¶
func (p *Provider) GetContainerLogs(ctx context.Context, namespace, podName, containerName string, tail int) (string, error)
GetContainerLogs returns the logs of a container running in a pod by name.
func (*Provider) GetPodFullName ¶
Get full pod name as defined in the provider context TODO: Implementation
func (*Provider) GetPodStatus ¶
GetPodStatus retrieves the status of a given pod by name.
func (*Provider) NodeAddresses ¶
func (p *Provider) NodeAddresses(ctx context.Context) []v1.NodeAddress
NodeAddresses returns a list of addresses for the node status within Kubernetes.
func (*Provider) NodeConditions ¶
func (p *Provider) NodeConditions(ctx context.Context) []v1.NodeCondition
NodeConditions returns a list of conditions (Ready, OutOfDisk, etc), for updates to the node status within Kubernetes.
func (*Provider) NodeDaemonEndpoints ¶
func (p *Provider) NodeDaemonEndpoints(ctx context.Context) *v1.NodeDaemonEndpoints
NodeDaemonEndpoints returns NodeDaemonEndpoints for the node status within Kubernetes.
func (*Provider) OperatingSystem ¶
OperatingSystem returns the operating system for this provider.