entrypoint

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2018 License: Apache-2.0 Imports: 5 Imported by: 16

Documentation

Index

Constants

View Source
const (
	//DependencyPrefix is a prefix for env variables
	DependencyPrefix = "DEPENDENCY_"
	JsonSuffix       = "_JSON"
)

Variables

This section is empty.

Functions

func Register

func Register(res Resolver)

Register is a function which registers new dependencies

Types

type Entrypoint

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

Entrypoint is a main struct which checks dependencies

func New

func New(config *rest.Config) (entry *Entrypoint, err error)

New is a constructor for entrypoint

func (Entrypoint) Client

func (e Entrypoint) Client() (client cli.ClientInterface)

func (Entrypoint) Resolve

func (e Entrypoint) Resolve()

Resolve is a main loop which iterates through all dependencies and resolves them

type EntrypointInterface

type EntrypointInterface interface {
	Resolve()
	Client() cli.ClientInterface
}

type Resolver

type Resolver interface {
	IsResolved(entrypoint EntrypointInterface) (bool, error)
}

Resolver is an interface which all dependencies should implement

Jump to

Keyboard shortcuts

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