apps

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AppDiff

type AppDiff struct {
	Name string
	// contains filtered or unexported fields
}

func (*AppDiff) CalculateDiff

func (diff *AppDiff) CalculateDiff() ([]diffmatchpatch.Diff, error)

type AppSpec

type AppSpec struct {
	godo.AppSpec
}

func (*AppSpec) SetDefaultValues

func (spec *AppSpec) SetDefaultValues()

type AppStatus added in v0.0.5

type AppStatus struct {
	Name         string
	Status       DeploymentStatus
	DeploymentID string
	UpdatedAt    string
	URL          string
}

type Appfile

type Appfile struct {
	Spec *AppfileSpec

	State *StateData
	Apps  []*godo.App
}

func NewAppfileFromAppSpec added in v0.0.6

func NewAppfileFromAppSpec(spec *AppSpec) (*Appfile, error)

func NewAppfileFromSpec

func NewAppfileFromSpec(spec *AppfileSpec, envName string) (*Appfile, error)

func (*Appfile) Destroy

func (appfile *Appfile) Destroy(token string) error

func (*Appfile) Diff

func (appfile *Appfile) Diff(token string) ([]*AppDiff, error)

func (*Appfile) Status added in v0.0.6

func (appfile *Appfile) Status(token string) ([]*AppStatus, error)

func (*Appfile) Sync

func (appfile *Appfile) Sync(token string) error

type AppfileSpec

type AppfileSpec struct {
	AppSpecs     []string            `yaml:"specs"`
	Environments map[string][]string `yaml:"environments"`
	// contains filtered or unexported fields
}

func (*AppfileSpec) IsValid added in v0.0.6

func (spec *AppfileSpec) IsValid() bool

func (*AppfileSpec) Path

func (spec *AppfileSpec) Path() string

func (*AppfileSpec) ReadEnvironment

func (spec *AppfileSpec) ReadEnvironment(name string) (*env.Environment, error)

func (*AppfileSpec) SetPath

func (spec *AppfileSpec) SetPath(path string) error

type DeploymentStatus added in v0.0.5

type DeploymentStatus string
const (
	DeploymentStatusUnknown    DeploymentStatus = "unknown"
	DeploymentStatusDeployed   DeploymentStatus = "deployed"
	DeploymentStatusInProgress DeploymentStatus = "in progress"
)

type EnvMetadata

type EnvMetadata struct {
	Name string
}

type StateData

type StateData struct {
	Environment EnvMetadata
	Values      map[string]interface{}
}

Jump to

Keyboard shortcuts

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