Documentation
¶
Index ¶
- func DeleteByID(client newclient.Client, spaceID string, ID string) error
- type AutomaticDeprovisioningRule
- type ParentEnvironment
- func Add(client newclient.Client, parentEnvironment *ParentEnvironment) (*ParentEnvironment, error)
- func GetByID(client newclient.Client, spaceID string, ID string) (*ParentEnvironment, error)
- func NewParentEnvironment(name string, spaceID string) *ParentEnvironment
- func Update(client newclient.Client, parentEnvironment *ParentEnvironment) (*ParentEnvironment, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutomaticDeprovisioningRule ¶
type AutomaticDeprovisioningRule struct {
ExpiryDays int `json:"ExpiryDays,omitempty"`
ExpiryHours int `json:"ExpiryHours,omitempty"`
}
AutomaticDeprovisioningRule defines the rule for automatic deprovisioning.
type ParentEnvironment ¶
type ParentEnvironment struct {
Name string `json:"Name" validate:"required"`
SpaceID string `json:"SpaceId" validate:"required"`
Description string `json:"Description,omitempty"`
Slug string `json:"Slug,omitempty"`
UseGuidedFailure bool `json:"UseGuidedFailure"`
AutomaticDeprovisioningRule *AutomaticDeprovisioningRule `json:"AutomaticDeprovisioningRule,omitempty"`
ID string `json:"Id,omitempty"`
SortOrder int `json:"SortOrder"`
}
ParentEnvironment represents a parent environment in Octopus Deploy.
func Add ¶
func Add(client newclient.Client, parentEnvironment *ParentEnvironment) (*ParentEnvironment, error)
Add creates a new parent environment.
func GetByID ¶
GetByID returns the parent environment that matches the input ID. If one cannot be found, it returns nil and an error.
func NewParentEnvironment ¶
func NewParentEnvironment(name string, spaceID string) *ParentEnvironment
NewParentEnvironment creates and initializes a parent environment.
func Update ¶
func Update(client newclient.Client, parentEnvironment *ParentEnvironment) (*ParentEnvironment, error)
Update updates an existing parent environment.
func (*ParentEnvironment) Validate ¶
func (p *ParentEnvironment) Validate() error
Validate checks the state of the parent environment and returns an error if invalid.
Click to show internal directories.
Click to hide internal directories.