Documentation
¶
Index ¶
- func IsNil(i interface{}) bool
- type Runbook
- type RunbookProcess
- type RunbookProcessService
- type RunbookProcesses
- type RunbookProcessesQuery
- type RunbookRetentionPeriod
- type RunbookRunService
- type RunbookRunsQuery
- type RunbookService
- func (s *RunbookService) Add(runbook *Runbook) (*Runbook, error)
- func (s *RunbookService) GetAll() ([]*Runbook, error)
- func (s *RunbookService) GetByID(id string) (*Runbook, error)
- func (s *RunbookService) GetRunbookSnapshotTemplate(runbook *Runbook) (*RunbookSnapshotTemplate, error)
- func (s *RunbookService) Update(runbook *Runbook) (*Runbook, error)
- type RunbookSnapshot
- type RunbookSnapshotService
- type RunbookSnapshotTemplate
- type RunbookSnapshotUsage
- type RunbookSnapshotUsageEntry
- type RunbookSnapshots
- type RunbookSnapshotsQuery
- type RunbookStepUsage
- type Runbooks
- type RunbooksQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Runbook ¶
type Runbook struct {
ConnectivityPolicy *core.ConnectivityPolicy `json:"ConnectivityPolicy,omitempty"`
DefaultGuidedFailureMode string `json:"DefaultGuidedFailureMode" validate:"required,oneof=EnvironmentDefault Off On"`
Description string `json:"Description,omitempty"`
EnvironmentScope string `json:"EnvironmentScope" validate:"required,oneof=All FromProjectLifecycles Specified"`
Environments []string `json:"Environments,omitempty"`
MultiTenancyMode string `json:"MultiTenancyMode" validate:"required,oneof=Untenanted TenantedOrUntenanted Tenanted"`
Name string `json:"Name,omitempty"`
ProjectID string `json:"ProjectId,omitempty"`
PublishedRunbookSnapshotID string `json:"PublishedRunbookSnapshotId,omitempty"`
RunRetentionPolicy *RunbookRetentionPeriod `json:"RunRetentionPolicy,omitempty"`
RunbookProcessID string `json:"RunbookProcessId,omitempty"`
SpaceID string `json:"SpaceId,omitempty"`
resources.Resource
}
func NewRunbook ¶
NewRunbook creates and initializes a runbook.
type RunbookProcess ¶
type RunbookProcess struct {
LastSnapshotID string `json:"LastSnapshotId,omitempty"`
ProjectID string `json:"ProjectId,omitempty"`
RunbookID string `json:"RunbookId,omitempty"`
SpaceID string `json:"SpaceId,omitempty"`
Steps []*deployments.DeploymentStep `json:"Steps"`
Version *int32 `json:"Version"`
resources.Resource
}
func NewRunbookProcess ¶
func NewRunbookProcess() *RunbookProcess
type RunbookProcessService ¶
func NewRunbookProcessService ¶
func NewRunbookProcessService(sling *sling.Sling, uriTemplate string) *RunbookProcessService
func (*RunbookProcessService) GetByID ¶
func (s *RunbookProcessService) GetByID(id string) (*RunbookProcess, error)
GetByID returns the runbook process that matches the input ID. If one cannot be found, it returns nil and an error.
type RunbookProcesses ¶
type RunbookProcesses struct {
Items []*RunbookProcess `json:"Items"`
resources.PagedResults
}
type RunbookProcessesQuery ¶
type RunbookRetentionPeriod ¶
type RunbookRetentionPeriod struct {
QuantityToKeep int32 `json:"QuantityToKeep"`
ShouldKeepForever bool `json:"ShouldKeepForever"`
}
func NewRunbookRetentionPeriod ¶
func NewRunbookRetentionPeriod() *RunbookRetentionPeriod
type RunbookRunService ¶
type RunbookRunService struct {
services.CanDeleteService
}
func NewRunbookRunService ¶
func NewRunbookRunService(sling *sling.Sling, uriTemplate string) *RunbookRunService
type RunbookRunsQuery ¶
type RunbookRunsQuery struct {
Environments []string `uri:"environments,omitempty" url:"environments,omitempty"`
IDs []string `uri:"ids,omitempty" url:"ids,omitempty"`
PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"`
Projects []string `uri:"projects,omitempty" url:"projects,omitempty"`
Runbooks []string `uri:"runbooks,omitempty" url:"runbooks,omitempty"`
Skip int `uri:"skip,omitempty" url:"skip,omitempty"`
Take int `uri:"take,omitempty" url:"take,omitempty"`
TaskState string `uri:"taskState,omitempty" url:"taskState,omitempty"`
Tenants []string `uri:"tenants,omitempty" url:"tenants,omitempty"`
}
type RunbookService ¶
type RunbookService struct {
services.CanDeleteService
}
func NewRunbookService ¶
func NewRunbookService(sling *sling.Sling, uriTemplate string) *RunbookService
func (*RunbookService) Add ¶
func (s *RunbookService) Add(runbook *Runbook) (*Runbook, error)
Add returns the runbook that matches the input ID.
func (*RunbookService) GetAll ¶
func (s *RunbookService) GetAll() ([]*Runbook, error)
GetAll returns all runbooks. If none can be found or an error occurs, it returns an empty collection.
func (*RunbookService) GetByID ¶
func (s *RunbookService) GetByID(id string) (*Runbook, error)
GetByID returns the runbook that matches the input ID. If one cannot be found, it returns nil and an error.
func (*RunbookService) GetRunbookSnapshotTemplate ¶
func (s *RunbookService) GetRunbookSnapshotTemplate(runbook *Runbook) (*RunbookSnapshotTemplate, error)
type RunbookSnapshot ¶
type RunbookSnapshot struct {
Assembled *time.Time `json:"Assembled,omitempty"`
FrozenProjectVariableSetID string `json:"FrozenProjectVariableSetId,omitempty"`
FrozenRunbookProcessID string `json:"FrozenRunbookProcessId,omitempty"`
LibraryVariableSetSnapshotIDs []string `json:"LibraryVariableSetSnapshotIds"`
Name string `json:"Name,omitempty"`
Notes string `json:"Notes,omitempty"`
ProjectID string `json:"ProjectId" validate:"required,notblank"`
ProjectVariableSetSnapshotID string `json:"ProjectVariableSetSnapshotId,omitempty"`
RunbookID string `json:"RunbookId" validate:"required,notblank"`
SelectedPackages []*packages.SelectedPackage `json:"SelectedPackages"`
SpaceID string `json:"SpaceId,omitempty"`
resources.Resource
}
RunbookSnapshot represents a runbook snapshot.
func NewRunbookSnapshot ¶
func NewRunbookSnapshot(name string, projectID string, runbookID string) *RunbookSnapshot
NewRunbookSnapshot creates and initializes a runbook snapshot.
func (RunbookSnapshot) Validate ¶
func (c RunbookSnapshot) Validate() error
Validate checks the state of the runbook snapshot and returns an error if invalid.
type RunbookSnapshotService ¶
type RunbookSnapshotService struct {
services.CanDeleteService
}
func NewRunbookSnapshotService ¶
func NewRunbookSnapshotService(sling *sling.Sling, uriTemplate string) *RunbookSnapshotService
func (*RunbookSnapshotService) Add ¶
func (s *RunbookSnapshotService) Add(runbookSnapshot *RunbookSnapshot) (*RunbookSnapshot, error)
Add creates a new runbook snapshot.
func (*RunbookSnapshotService) GetByID ¶
func (s *RunbookSnapshotService) GetByID(id string) (*RunbookSnapshot, error)
GetByID returns the release that matches the input ID. If one cannot be found, it returns nil and an error.
type RunbookSnapshotTemplate ¶
type RunbookSnapshotUsage ¶
type RunbookSnapshotUsage struct {
ProjectID string `json:"ProjectId,omitempty"`
ProjectName string `json:"ProjectName,omitempty"`
RunbookID string `json:"RunbookId,omitempty"`
RunbookName string `json:"RunbookName,omitempty"`
Snapshots []*RunbookSnapshotUsageEntry `json:"Snapshots"`
}
type RunbookSnapshots ¶
type RunbookSnapshots struct {
Items []*RunbookSnapshot `json:"Items"`
resources.PagedResults
}
RunbookSnapshots defines a collection of runbook snapshots with built-in support for paged results from the API.
type RunbookSnapshotsQuery ¶
type RunbookStepUsage ¶
type RunbookStepUsage struct {
ProcessID string `json:"ProcessId,omitempty"`
ProjectID string `json:"ProjectId,omitempty"`
ProjectName string `json:"ProjectName,omitempty"`
ProjectSlug string `json:"ProjectSlug,omitempty"`
RunbookID string `json:"RunbookId,omitempty"`
RunbookName string `json:"RunbookName,omitempty"`
Steps []*deployments.StepUsageEntry `json:"Steps"`
}
type Runbooks ¶
type Runbooks struct {
Items []*Runbook `json:"Items"`
resources.PagedResults
}
Runbooks defines a collection of runbooks with built-in support for paged results.
type RunbooksQuery ¶
type RunbooksQuery struct {
IDs []string `uri:"ids,omitempty" url:"ids,omitempty"`
IsClone bool `uri:"clone,omitempty" url:"clone,omitempty"`
PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"`
ProjectIDs []string `uri:"projectIds,omitempty" url:"projectIds,omitempty"`
Skip int `uri:"skip,omitempty" url:"skip,omitempty"`
Take int `uri:"take,omitempty" url:"take,omitempty"`
}
Source Files
¶
- is_nil.go
- runbook.go
- runbook_process.go
- runbook_process_service.go
- runbook_processes_query.go
- runbook_retention_period.go
- runbook_run_service.go
- runbook_runs_query.go
- runbook_service.go
- runbook_snapshot.go
- runbook_snapshot_query.go
- runbook_snapshot_service.go
- runbook_snapshot_template.go
- runbook_snapshot_usage.go
- runbook_snapshot_usage_entry.go
- runbook_step_usage.go
- runbooks_query.go