project

package
v0.15.7 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetResourceFactories added in v0.15.0

func SetResourceFactories(factories ...ResourceFactory)

Types

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) 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