dependency

package
v1.1.1-0...-9418116 Latest Latest
Warning

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

Go to latest
Published: Jan 14, 2020 License: Apache-2.0 Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const DependencyFolder = ".devspace/dependencies"

DependencyFolder is the dependency folder in the home directory of the user

Variables

View Source
var DependencyFolderPath string

DependencyFolderPath will be filled during init

Functions

This section is empty.

Types

type BuildOptions

type BuildOptions struct {
	UpdateDependencies, SkipPush, ForceDeployDependencies, ForceBuild, Verbose bool
}

BuildOptions has all options for building all dependencies

type Dependency

type Dependency struct {
	ID              string
	LocalPath       string
	Config          *latest.Config
	GeneratedConfig *generated.Config

	DependencyConfig *latest.DependencyConfig
	DependencyCache  *generated.Config
	// contains filtered or unexported fields
}

Dependency holds the dependency config and has an id

func (*Dependency) Build

func (d *Dependency) Build(skipPush, forceDependencies, forceBuild bool, log log.Logger) error

Build builds and pushes all defined images

func (*Dependency) Deploy

func (d *Dependency) Deploy(skipPush, forceDependencies, skipBuild, forceBuild, forceDeploy bool, log log.Logger) error

Deploy deploys the dependency if necessary

func (*Dependency) Purge

func (d *Dependency) Purge(log log.Logger) error

Purge purges the dependency

type DeployOptions

type DeployOptions struct {
	UpdateDependencies, SkipPush, ForceDeployDependencies, SkipBuild, ForceBuild, ForceDeploy, Verbose bool
}

DeployOptions has all options for deploying all dependencies

type Manager

type Manager interface {
	UpdateAll() error
	BuildAll(options BuildOptions) error
	DeployAll(options DeployOptions) error
	PurgeAll(verbose bool) error
}

Manager can update, build, deploy and purge dependencies.

func NewManager

func NewManager(config *latest.Config, cache *generated.Config, client kubectl.Client, allowCyclic bool, configOptions *loader.ConfigOptions, logger log.Logger) (Manager, error)

NewManager creates a new instance of the interface Manager

type ResolverInterface

type ResolverInterface interface {
	Resolve(update bool) ([]*Dependency, error)
}

ResolverInterface defines the resolver interface that takes dependency configs and resolves them

func NewResolver

func NewResolver(baseConfig *latest.Config, baseCache *generated.Config, client kubectl.Client, allowCyclic bool, configOptions *loader.ConfigOptions, log log.Logger) (ResolverInterface, error)

NewResolver creates a new resolver for resolving dependencies

Jump to

Keyboard shortcuts

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