Documentation ¶
Index ¶
- Variables
- type EnvironmentResource
- func (r *EnvironmentResource) SelectComponent() error
- func (r *EnvironmentResource) SelectComponentResource() error
- func (r *EnvironmentResource) SelectEnvironment() error
- func (r *EnvironmentResource) SelectOrganization() error
- func (r *EnvironmentResource) SelectProject() error
- func (r *EnvironmentResource) WithComponent(component *bunnysdk.ComponentItem) *EnvironmentResource
- func (r *EnvironmentResource) WithComponentResource(component *bunnysdk.ComponentResourceItem) *EnvironmentResource
- func (e *EnvironmentResource) WithEnvironment(environment *bunnysdk.EnvironmentItem) *EnvironmentResource
- func (e *EnvironmentResource) WithOrganization(organization *bunnysdk.OrganizationItem) *EnvironmentResource
- func (e *EnvironmentResource) WithProject(project *bunnysdk.ProjectItem) *EnvironmentResource
- func (r *EnvironmentResource) WithResourcePath(resourcePath string) *EnvironmentResource
- type ResourceType
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" )
Click to show internal directories.
Click to hide internal directories.