Documentation ¶
Index ¶
- type HyperProvider
- func (p *HyperProvider) Capacity() v1.ResourceList
- func (p *HyperProvider) CreatePod(pod *v1.Pod) error
- func (p *HyperProvider) DeletePod(pod *v1.Pod) (err error)
- func (p *HyperProvider) GetContainerLogs(namespace, podName, containerName string, tail int) (string, error)
- func (p *HyperProvider) GetPod(namespace, name string) (pod *v1.Pod, err error)
- func (p *HyperProvider) GetPodStatus(namespace, name string) (*v1.PodStatus, error)
- func (p *HyperProvider) GetPods() ([]*v1.Pod, error)
- func (p *HyperProvider) NodeAddresses() []v1.NodeAddress
- func (p *HyperProvider) NodeConditions() []v1.NodeCondition
- func (p *HyperProvider) NodeDaemonEndpoints() *v1.NodeDaemonEndpoints
- func (p *HyperProvider) OperatingSystem() string
- func (p *HyperProvider) UpdatePod(pod *v1.Pod) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HyperProvider ¶
type HyperProvider struct {
// contains filtered or unexported fields
}
HyperProvider implements the virtual-kubelet provider interface and communicates with hyper.sh APIs.
func NewHyperProvider ¶
func NewHyperProvider(config string, rm *manager.ResourceManager, nodeName, operatingSystem string) (*HyperProvider, error)
NewHyperProvider creates a new HyperProvider
func (*HyperProvider) Capacity ¶
func (p *HyperProvider) Capacity() v1.ResourceList
Capacity returns a resource list containing the capacity limits set for hyper.sh.
func (*HyperProvider) CreatePod ¶
func (p *HyperProvider) CreatePod(pod *v1.Pod) error
CreatePod accepts a Pod definition and creates a hyper.sh deployment
func (*HyperProvider) DeletePod ¶
func (p *HyperProvider) DeletePod(pod *v1.Pod) (err error)
DeletePod deletes the specified pod out of hyper.sh.
func (*HyperProvider) GetContainerLogs ¶
func (p *HyperProvider) GetContainerLogs(namespace, podName, containerName string, tail int) (string, error)
GetContainerLogs retrieves the logs of a container by name from the provider.
func (*HyperProvider) GetPod ¶
func (p *HyperProvider) GetPod(namespace, name string) (pod *v1.Pod, err error)
GetPod returns a pod by name that is running inside hyper.sh returns nil if a pod by that name is not found.
func (*HyperProvider) GetPodStatus ¶
func (p *HyperProvider) GetPodStatus(namespace, name string) (*v1.PodStatus, error)
GetPodStatus returns the status of a pod by name that is running inside hyper.sh returns nil if a pod by that name is not found.
func (*HyperProvider) GetPods ¶
func (p *HyperProvider) GetPods() ([]*v1.Pod, error)
GetPods returns a list of all pods known to be running within hyper.sh.
func (*HyperProvider) NodeAddresses ¶
func (p *HyperProvider) NodeAddresses() []v1.NodeAddress
NodeAddresses returns a list of addresses for the node status within Kubernetes.
func (*HyperProvider) NodeConditions ¶
func (p *HyperProvider) NodeConditions() []v1.NodeCondition
NodeConditions returns a list of conditions (Ready, OutOfDisk, etc), for updates to the node status within Kubernetes.
func (*HyperProvider) NodeDaemonEndpoints ¶
func (p *HyperProvider) NodeDaemonEndpoints() *v1.NodeDaemonEndpoints
NodeDaemonEndpoints returns NodeDaemonEndpoints for the node status within Kubernetes.
func (*HyperProvider) OperatingSystem ¶
func (p *HyperProvider) OperatingSystem() string
OperatingSystem returns the operating system for this provider. This is a noop to default to Linux for now.