k8s

package
v0.0.0-...-e435e13 Latest Latest
Warning

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

Go to latest
Published: May 23, 2018 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigMaps

type ConfigMaps struct {
	Name      string            `json:"name"`
	Namespace string            `json:"namespace"`
	Data      map[string]string `json:"data"`
	Interface v1.ConfigMapInterface
}

func NewConfigMaps

func NewConfigMaps(name, namespace string, data map[string]string) *ConfigMaps

func (*ConfigMaps) Create

func (c *ConfigMaps) Create() (*core_v1.ConfigMap, error)

func (*ConfigMaps) Delete

func (c *ConfigMaps) Delete() error

func (*ConfigMaps) Get

func (c *ConfigMaps) Get() (config *core_v1.ConfigMap, err error)

func (*ConfigMaps) Update

func (c *ConfigMaps) Update(configMap *core_v1.ConfigMap) (*core_v1.ConfigMap, error)

type Deployment

type Deployment struct {
	App            string
	Project        string
	Profile        string
	ImageTag       string
	DockerRegistry string
}

func (*Deployment) Deploy

func (d *Deployment) Deploy() (string, error)

@Title Deploy @Description deploy application @Param pipeline @Return error

type ReplicationController

type ReplicationController struct {
	Name      string
	Namespace string

	Interface v1.ReplicationControllerInterface
}

func NewReplicationController

func NewReplicationController(name string, namespace string) *ReplicationController

func (*ReplicationController) Create

func (*ReplicationController) Watch

func (rc *ReplicationController) Watch(completedHandler func() error) error

type Secret

type Secret struct {
	Name      string
	Username  string
	Password  string
	Namespace string

	Interface v1.SecretInterface
	// contains filtered or unexported fields
}

func NewSecret

func NewSecret(name, username, password, namespace string, isToken bool) *Secret

Create new instance of type Secret

func (*Secret) Create

func (s *Secret) Create() error

Create takes the representation of a secret and creates it. Returns the server's representation of the secret, and an error, if there is any.

func (*Secret) Delete

func (s *Secret) Delete() error

Delete takes name of the secret and deletes it. Returns an error if one occurs.

func (*Secret) Get

func (s *Secret) Get() (*corev1.Secret, error)

Get takes name of the secret, and returns the corresponding secret object, and an error if there is any.

type Service

type Service struct {
	Name      string
	Namespace string
	Interface svcv1.ServiceInterface
}

func NewService

func NewService(name, namespace string) *Service

func (*Service) Create

func (s *Service) Create(ports interface{}) error

func (*Service) Delete

func (s *Service) Delete() error

Jump to

Keyboard shortcuts

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