manager

package
v0.0.0-...-45e9846 Latest Latest
Warning

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

Go to latest
Published: May 28, 2016 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RANDOM_GROUP_GENERATION_MAX_TRIES = 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager manages installation and deploying pak to a kubernetes cluster

func NewManager

func NewManager(kubectl kubectl.Kubectl) (*Manager, error)

NewManager returns a Manager

func (*Manager) HasGroup

func (m *Manager) HasGroup(namespace string, group string) (bool, error)

HasGroup checks is the specfied group is unique or not

func (*Manager) Install

func (m *Manager) Install(pak *pak.Pak, namespace string, properties map[string]interface{}) (string, error)

Install a pak with given name and returns its group

func (*Manager) List

func (m *Manager) List(namespace string) ([]*pak.InstalledPak, error)

List returns all installed paks in given namespace

func (*Manager) Remove

func (m *Manager) Remove(namespace string, group string) error

Remove deletes an installed pak

Jump to

Keyboard shortcuts

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