platform

package
v0.0.0-...-bbbf429 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2017 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDeployment

func CreateDeployment(i IPlatform, build *data.BuildDefinition) (*beta.Deployment, error)

CreateDeployment within the platform cluster

func CreateIngress

func CreateIngress(i IPlatform, build *data.BuildDefinition) (*beta.Ingress, error)

CreateIngress within the platform cluster

func CreateNamespace

func CreateNamespace(i IPlatform, namespace string) (*v1.Namespace, error)

CreateNamespace within the platform cluster

func CreateService

func CreateService(i IPlatform, build *data.BuildDefinition) (*v1.Service, error)

CreateService within the platform cluster

func GetIngressLoadBalancerIPAddress

func GetIngressLoadBalancerIPAddress(i IPlatform, ingress *beta.Ingress, t time.Duration) (string, error)

GetIngressLoadBalancerIPAddress with a timeout for the action

func ValidateDeployment

func ValidateDeployment(i IPlatform, build *data.BuildDefinition) (bool, error)

ValidateDeployment from deserialisation of YAML

func ValidateIngress

func ValidateIngress(i IPlatform, build *data.BuildDefinition) (bool, error)

ValidateIngress from deserialisation of YAML

func ValidateService

func ValidateService(i IPlatform, build *data.BuildDefinition) (bool, error)

ValidateService from deserialisation of YAML

Types

type IPlatform

type IPlatform interface {
	ValidateDeployment(build *data.BuildDefinition) (bool, error)
	ValidateService(build *data.BuildDefinition) (bool, error)
	ValidateIngress(build *data.BuildDefinition) (bool, error)
	CreateNamespace(string) (*v1.Namespace, error)
	CreateDeployment(build *data.BuildDefinition) (*beta.Deployment, error)
	CreateService(build *data.BuildDefinition) (*v1.Service, error)
	CreateIngress(build *data.BuildDefinition) (*beta.Ingress, error)
	GetIngressLoadBalancerIPAddress(ingress *beta.Ingress, t time.Duration) (string, error)
}

IPlatform interface for container platform

type Kubernetes

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

Kubernetes ...

func NewKubernetes

func NewKubernetes(masterURL string, inclusterConfig bool) (*Kubernetes, error)

NewKubernetes object

func (*Kubernetes) CreateDeployment

func (k *Kubernetes) CreateDeployment(build *data.BuildDefinition) (*beta.Deployment, error)

CreateDeployment ...

func (*Kubernetes) CreateIngress

func (k *Kubernetes) CreateIngress(build *data.BuildDefinition) (*beta.Ingress, error)

CreateIngress ...

func (*Kubernetes) CreateNamespace

func (k *Kubernetes) CreateNamespace(namespace string) (*v1.Namespace, error)

CreateNamespace within kubernetes

func (*Kubernetes) CreateService

func (k *Kubernetes) CreateService(build *data.BuildDefinition) (*v1.Service, error)

CreateService ...

func (*Kubernetes) GetIngressLoadBalancerIPAddress

func (k *Kubernetes) GetIngressLoadBalancerIPAddress(ingress *beta.Ingress, t time.Duration) (string, error)

GetIngressLoadBalancerIPAddress ...

func (*Kubernetes) GetNamespace

func (k *Kubernetes) GetNamespace(namespace string) (*v1.Namespace, error)

GetNamespace within kubernetes

func (*Kubernetes) ValidateDeployment

func (k *Kubernetes) ValidateDeployment(build *data.BuildDefinition) (bool, error)

ValidateDeployment from deserialisation of YAML

func (*Kubernetes) ValidateIngress

func (k *Kubernetes) ValidateIngress(build *data.BuildDefinition) (bool, error)

ValidateIngress from deserialisation of YAML

func (*Kubernetes) ValidateService

func (k *Kubernetes) ValidateService(build *data.BuildDefinition) (bool, error)

ValidateService from deserialisation of YAML

Jump to

Keyboard shortcuts

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