Documentation ¶
Index ¶
- func CreateDeployment(i IPlatform, build *data.BuildDefinition) (*beta.Deployment, error)
- func CreateIngress(i IPlatform, build *data.BuildDefinition) (*beta.Ingress, error)
- func CreateNamespace(i IPlatform, namespace string) (*v1.Namespace, error)
- func CreateService(i IPlatform, build *data.BuildDefinition) (*v1.Service, error)
- func GetIngressLoadBalancerIPAddress(i IPlatform, ingress *beta.Ingress, t time.Duration) (string, error)
- func ValidateDeployment(i IPlatform, build *data.BuildDefinition) (bool, error)
- func ValidateIngress(i IPlatform, build *data.BuildDefinition) (bool, error)
- func ValidateService(i IPlatform, build *data.BuildDefinition) (bool, error)
- type IPlatform
- type Kubernetes
- func (k *Kubernetes) CreateDeployment(build *data.BuildDefinition) (*beta.Deployment, error)
- func (k *Kubernetes) CreateIngress(build *data.BuildDefinition) (*beta.Ingress, error)
- func (k *Kubernetes) CreateNamespace(namespace string) (*v1.Namespace, error)
- func (k *Kubernetes) CreateService(build *data.BuildDefinition) (*v1.Service, error)
- func (k *Kubernetes) GetIngressLoadBalancerIPAddress(ingress *beta.Ingress, t time.Duration) (string, error)
- func (k *Kubernetes) GetNamespace(namespace string) (*v1.Namespace, error)
- func (k *Kubernetes) ValidateDeployment(build *data.BuildDefinition) (bool, error)
- func (k *Kubernetes) ValidateIngress(build *data.BuildDefinition) (bool, error)
- func (k *Kubernetes) ValidateService(build *data.BuildDefinition) (bool, error)
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 ¶
CreateIngress within the platform cluster
func CreateNamespace ¶
CreateNamespace within the platform cluster
func CreateService ¶
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