project

package
v0.15.18 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2017 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsErrClusterNotReady added in v0.15.13

func IsErrClusterNotReady(err error) bool

func NewErrClusterNotReady added in v0.15.13

func NewErrClusterNotReady(err error) error

func SetResourceFactories added in v0.15.0

func SetResourceFactories(factories ...ResourceFactory)

Types

type ErrClusterNotReady added in v0.15.13

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

func (ErrClusterNotReady) Error added in v0.15.13

func (e ErrClusterNotReady) Error() string

type Project

type Project struct {
	Name   string
	Config *config.Config

	Templates            map[string][]byte
	Answers              map[string]string
	Version              string
	ResourceLookup       lookup.ResourceLookup
	ServerResourceLookup lookup.ServerResourceLookup
	Project              *Project
	TemplateVersion      *catalog.TemplateVersion

	Client  *client.RancherClient
	Stack   *client.Stack
	Cluster *client.Cluster
}

func NewProject

func NewProject(name string, client *client.RancherClient, cluster *client.Cluster) *Project

func (*Project) Create

func (p *Project) Create(ctx context.Context, options options.Options) error

func (*Project) Delete added in v0.15.17

func (p *Project) Delete(ctx context.Context) error

func (*Project) Load

func (p *Project) Load(templates map[string]string, answers map[string]string) error

func (*Project) LoadFromTemplateVersion added in v0.15.0

func (p *Project) LoadFromTemplateVersion(templateVersion catalog.TemplateVersion, answers map[string]string) error

func (*Project) Up

func (p *Project) Up(ctx context.Context, options options.Options) error

type ResourceFactory added in v0.15.0

type ResourceFactory func(p *Project) (ResourceSet, error)

Optionally ResourceSet can implement Starter

type ResourceSet added in v0.15.0

type ResourceSet interface {
	Initialize(ctx context.Context, options options.Options) error
}

type Starter added in v0.15.0

type Starter interface {
	Start(ctx context.Context, options options.Options) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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