bee

package
v1.0.57 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2023 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bee added in v1.0.8

type Bee struct {
	Environment      terra.Environment
	Status           map[terra.Release]*status.Status
	ContainerLogsURL string
}

Bee encapsulates operational information about a BEE

type Bees

type Bees interface {
	DeleteWith(name string, options DeleteOptions) (*Bee, error)
	CreateWith(options CreateOptions) (*Bee, error)
	ProvisionWith(name string, options ProvisionOptions) (*Bee, error)
	SyncWith(name string, options ProvisionExistingOptions) (*Bee, error)
	StartStopWith(name string, offline bool, options StartStopOptions) (*Bee, error)
	GetBee(name string) (terra.Environment, error)
	GetTemplate(templateName string) (terra.Environment, error)
	Seeder() seed.Seeder
	FilterBees(filter terra.EnvironmentFilter) ([]terra.Environment, error)
	PinVersions(bee terra.Environment, overrides PinOptions) (terra.Environment, error)
	UnpinVersions(bee terra.Environment) error
	SyncEnvironmentGenerator(env terra.Environment) error
	SyncArgoAppsIn(env terra.Environment, options ...argocd.SyncOption) (map[terra.Release]*status.Status, error)
	ResetStatefulSets(env terra.Environment) (map[terra.Release]*status.Status, error)
	RefreshBeeGenerator() error
}

func NewBees

func NewBees(argocd argocd.ArgoCD, stateLoader terra.StateLoader, seeder seed.Seeder, cleanup cleanup.Cleanup, kubectl kubectl.Kubectl, ops ops.Ops, slack *slack.Slack) (Bees, error)

type CreateOptions

type CreateOptions struct {
	Template string
	terra.CreateOptions
	ProvisionOptions
}

type DeleteOptions

type DeleteOptions struct {
	Unseed     bool
	ExportLogs bool
}

type PinOptions added in v0.0.61

type PinOptions struct {
	// Flags holds global-to-the-environment overrides like --terra-helmfile-ref, firecloud-develop-ref, --build-number
	Flags struct {
		// TerraHelmfileRef the ref the environments Argo app generator should use
		TerraHelmfileRef string
		// FirecloudDevelopRef the ref the environments Argo app generator should use
		FirecloudDevelopRef string
	}
	// FileOverrides holds overrides for individual releases, loaded from a YAML or JSON file
	FileOverrides map[string]terra.VersionOverride
}

type ProvisionExistingOptions added in v1.0.53

type ProvisionExistingOptions struct {
	SyncGeneratorOnly        bool
	WaitHealthy              bool
	WaitHealthTimeoutSeconds int
	Notify                   bool
}

type ProvisionOptions added in v1.0.7

type ProvisionOptions struct {
	PinOptions          PinOptions
	Seed                bool
	SeedOptions         seed.SeedOptions
	ExportLogsOnFailure bool
	ProvisionExistingOptions
}

type StartStopOptions added in v1.0.34

type StartStopOptions struct {
	Notify bool
	Sync   bool
}

Directories

Path Synopsis
Package cleanup contains logic for cleaning up Bee cloud resources when BEEs are deleted
Package cleanup contains logic for cleaning up Bee cloud resources when BEEs are deleted

Jump to

Keyboard shortcuts

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