Documentation ¶
Index ¶
- type Config
- type ConfigError
- type Provider
- func (p *Provider) Capacity() v1.ResourceList
- func (p *Provider) CreatePod(pod *v1.Pod) error
- func (p *Provider) DeletePod(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(namespace, podName, containerName string, tail int) (string, error)
- func (p *Provider) GetPod(namespace, name string) (*v1.Pod, error)
- func (p *Provider) GetPodFullName(namespace string, pod string) string
- func (p *Provider) GetPodStatus(namespace, name string) (*v1.PodStatus, error)
- func (p *Provider) GetPods() ([]*v1.Pod, error)
- func (p *Provider) NodeAddresses() []v1.NodeAddress
- func (p *Provider) NodeConditions() []v1.NodeCondition
- func (p *Provider) NodeDaemonEndpoints() *v1.NodeDaemonEndpoints
- func (p *Provider) OperatingSystem() string
- func (p *Provider) UpdatePod(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() 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(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() []v1.NodeAddress
NodeAddresses returns a list of addresses for the node status within Kubernetes.
func (*Provider) NodeConditions ¶
func (p *Provider) NodeConditions() []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() *v1.NodeDaemonEndpoints
NodeDaemonEndpoints returns NodeDaemonEndpoints for the node status within Kubernetes.
func (*Provider) OperatingSystem ¶
OperatingSystem returns the operating system for this provider.