adapter

package
v0.0.0-...-788d52c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 24, 2020 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Executor

type Executor interface {
	GetReplicationControllers() ([]api.ReplicationController, error)
	GetReplicationController(string) (api.ReplicationController, error)
	GetPods(labels.Selector) ([]api.Pod, error)
	CreateReplicationController(api.ReplicationController) (api.ReplicationController, error)
	DeleteReplicationController(string) error
	CreateKServices([]api.Service) error
	IsHealthy() bool
}
var (
	DefaultExecutor Executor

	PublicIPs []string
)

func NewKubernetesExecutor

func NewKubernetesExecutor(url string, username string, password string) (Executor, error)

type KubernetesAdapter

type KubernetesAdapter struct{}

func (KubernetesAdapter) CreateServices

func (a KubernetesAdapter) CreateServices(services []*pmxadapter.Service) ([]pmxadapter.ServiceDeployment, error)

func (KubernetesAdapter) DestroyService

func (a KubernetesAdapter) DestroyService(id string) error

func (KubernetesAdapter) GetMetadata

func (a KubernetesAdapter) GetMetadata() pmxadapter.Metadata

func (KubernetesAdapter) GetService

func (KubernetesAdapter) GetServices

func (a KubernetesAdapter) GetServices() ([]pmxadapter.ServiceDeployment, error)

type KubernetesExecutor

type KubernetesExecutor struct {
	// contains filtered or unexported fields
}

func (KubernetesExecutor) CreateKServices

func (k KubernetesExecutor) CreateKServices(ks []api.Service) error

func (KubernetesExecutor) CreateReplicationController

func (k KubernetesExecutor) CreateReplicationController(spec api.ReplicationController) (api.ReplicationController, error)

func (KubernetesExecutor) DeleteReplicationController

func (k KubernetesExecutor) DeleteReplicationController(id string) error

func (KubernetesExecutor) GetPods

func (k KubernetesExecutor) GetPods(s labels.Selector) ([]api.Pod, error)

func (KubernetesExecutor) GetReplicationController

func (k KubernetesExecutor) GetReplicationController(id string) (api.ReplicationController, error)

func (KubernetesExecutor) GetReplicationControllers

func (k KubernetesExecutor) GetReplicationControllers() ([]api.ReplicationController, error)

func (KubernetesExecutor) IsHealthy

func (k KubernetesExecutor) IsHealthy() bool

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL