k8sraw

package
v0.1.15 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2018 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(clusterPlugin plugin.ClusterPlugin, cfg config.Plugins) (plugin.CodePlugin, error)

New returns new instance of the Kubernetes Raw code (objects) plugin for specified Kubernetes cluster plugin and plugins config

Types

type ClusterConfig

type ClusterConfig struct {
	DataNamespace string `yaml:",omitempty"`
}

ClusterConfig represents Kubernetes cluster configuration specific for K8s raw plugin

type Plugin

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

Plugin represents Kubernetes Raw code plugin that supports deploying specified k8s objects into the cluster

func (*Plugin) Cleanup

func (p *Plugin) Cleanup() error

Cleanup implements cleanup phase for the k8s raw plugin

func (*Plugin) Create

func (p *Plugin) Create(invocation *plugin.CodePluginInvocationParams) error

Create implements creation of a new component instance in the cloud by deploying raw k8s objects

func (*Plugin) Destroy

func (p *Plugin) Destroy(invocation *plugin.CodePluginInvocationParams) error

Destroy implements destruction of an existing component instance in the cloud by deleting raw k8s objects

func (*Plugin) Endpoints

func (p *Plugin) Endpoints(invocation *plugin.CodePluginInvocationParams) (map[string]string, error)

Endpoints returns map from port type to url for all services of the deployed raw k8s objects

func (*Plugin) Resources added in v0.1.12

func (p *Plugin) Resources(invocation *plugin.CodePluginInvocationParams) (plugin.Resources, error)

Resources returns list of all resources (like services, config maps, etc.) deployed into the cluster by specified component instance

func (*Plugin) Status added in v0.1.14

func (p *Plugin) Status(invocation *plugin.CodePluginInvocationParams) (bool, error)

Status returns readiness of all resources (like services, config maps, etc.) deployed into the cluster by specified component instance

func (*Plugin) Update

func (p *Plugin) Update(invocation *plugin.CodePluginInvocationParams) error

Update implements update of an existing component instance in the cloud by updating raw k8s objects

Jump to

Keyboard shortcuts

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