environment

package
v0.8.7 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoEnvironments        = fmt.Errorf("no environments available")
	ErrNoOrganizations       = fmt.Errorf("no organizations available")
	ErrNoComponents          = fmt.Errorf("no components available")
	ErrNoComponentResourcess = fmt.Errorf("no component resourcess available")
	ErrNoProjects            = fmt.Errorf("no projects available")
)

Functions

This section is empty.

Types

type EnvironmentResource

type EnvironmentResource struct {
	Organization *bunnysdk.OrganizationItem
	Project      *bunnysdk.ProjectItem
	Environment  *bunnysdk.EnvironmentItem

	Component         *bunnysdk.ComponentItem
	ComponentResource *bunnysdk.ComponentResourceItem
}

func NewEnvironmentResource

func NewEnvironmentResource() *EnvironmentResource

func NewFromWizard

func NewFromWizard(profileContext *lib.Context, resourcePath string) (*EnvironmentResource, error)

func (*EnvironmentResource) SelectComponent

func (r *EnvironmentResource) SelectComponent() error

func (*EnvironmentResource) SelectComponentResource

func (r *EnvironmentResource) SelectComponentResource() error

func (*EnvironmentResource) SelectEnvironment

func (r *EnvironmentResource) SelectEnvironment() error

func (*EnvironmentResource) SelectOrganization

func (r *EnvironmentResource) SelectOrganization() error

func (*EnvironmentResource) SelectProject

func (r *EnvironmentResource) SelectProject() error

func (*EnvironmentResource) WithComponent

func (r *EnvironmentResource) WithComponent(component *bunnysdk.ComponentItem) *EnvironmentResource

func (*EnvironmentResource) WithComponentResource

func (r *EnvironmentResource) WithComponentResource(component *bunnysdk.ComponentResourceItem) *EnvironmentResource

func (*EnvironmentResource) WithEnvironment

func (e *EnvironmentResource) WithEnvironment(environment *bunnysdk.EnvironmentItem) *EnvironmentResource

func (*EnvironmentResource) WithOrganization

func (e *EnvironmentResource) WithOrganization(organization *bunnysdk.OrganizationItem) *EnvironmentResource

func (*EnvironmentResource) WithProject

func (e *EnvironmentResource) WithProject(project *bunnysdk.ProjectItem) *EnvironmentResource

func (*EnvironmentResource) WithResourcePath

func (r *EnvironmentResource) WithResourcePath(resourcePath string) *EnvironmentResource

type ResourceType

type ResourceType string

+enum

const (
	Deployment  ResourceType = "deployment"
	StatefulSet ResourceType = "statefulset"
	DaemonSet   ResourceType = "daemonset"
)

Jump to

Keyboard shortcuts

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