views

package
v1.0.97 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BeeDetail

type BeeDetail struct {
	BeeSummary
	Template             string                   `json:"template" yaml:"template"`
	PreventDeletion      bool                     `json:"preventDeletion,omitempty" yaml:"preventDeletion,omitempty"`
	DeleteAfter          time.Time                `json:"deleteAfter,omitempty" yaml:"deleteAfter,omitempty"`
	StopSchedule         ScheduleDetail           `json:"stopSchedule,omitempty" yaml:"stopSchedule,omitempty"`
	StartSchedule        ScheduleDetail           `json:"startSchedule,omitempty" yaml:"startSchedule,omitempty"`
	TerraHelmfileRef     string                   `json:"terraHelmfileRef,omitempty" yaml:"terraHelmfileRef,omitempty"`
	UniqueResourcePrefix string                   `json:"uniqueResourcePrefix" yaml:"uniqueResourcePrefix"`
	Versions             map[string]string        `json:"overrides,omitempty" yaml:",omitempty"`
	Services             map[string]ReleaseDetail `json:",omitempty" yaml:",omitempty"`
	Logs                 string                   `json:",omitempty" yaml:",omitempty"`
}

BeeDetail struct used for presenting BEEs in yaml & json output generated by bee commands

func DescribeBee

func DescribeBee(bee *bee.Bee) BeeDetail

func DescribeBeeEnv added in v1.0.8

func DescribeBeeEnv(bee terra.Environment, opts ...DescribeOption) BeeDetail

type BeeSummary

type BeeSummary struct {
	Name    string `json:"name" yaml:"name"`
	Running bool   `json:"running" yaml:"running"`
}

BeeSummary struct used for presenting BEEs in yaml & json output

func SummarizeBees

func SummarizeBees(bees []terra.Environment) []BeeSummary

type DescribeOption added in v1.0.8

type DescribeOption func(options *DescribeOptions)

type DescribeOptions added in v1.0.8

type DescribeOptions struct {
	Status           map[terra.Release]*status.Status
	ContainerLogsURL string
	OmitVersions     bool
}

type LogsDetail added in v1.0.8

type LogsDetail struct {
	ContainerLogs string `json:",omitempty" yaml:",omitempty"`
	CloudLogging  string `json:",omitempty" yaml:",omitempty"`
}

type ReleaseDetail added in v1.0.8

type ReleaseDetail struct {
	Status           *status.Status `yaml:",omitempty" json:",omitempty"`
	AppVersion       string         `yaml:"appVersion,omitempty" json:"appVersion,omitempty"`
	ChartVersion     string         `yaml:"chartVersion,omitempty" json:"chartVersion,omitempty"`
	TerraHelmfileRef string         `yaml:"terraHelmfileRef,omitempty" json:"terraHelmfileRef,omitempty"`
}

type ScheduleDetail added in v1.0.42

type ScheduleDetail struct {
	Enabled       bool      `yaml:"enabled,omitempty" json:"enabled,omitempty"`
	RepeatingTime time.Time `yaml:"repeatingTime,omitempty" json:"repeatingTime,omitempty"`
	Weekends      bool      `yaml:"weekends,omitempty" json:"weekends,omitempty"`
}

Jump to

Keyboard shortcuts

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