Documentation ¶
Index ¶
- Variables
- type ADOConfig
- type AzureDevOps
- func (ado *AzureDevOps) CreatePullRequest(repositoryName string, sourceBranchName string, targetBranchName string, ...) (*int, error)
- func (ado *AzureDevOps) CreateWikiIfNotExists(wikiName string, gitUserName string, gitUserEmail string) error
- func (ado *AzureDevOps) GetIdentityId() (*uuid.UUID, error)
- func (ado *AzureDevOps) GetSets() (*[]SetCollection, error)
- func (ado *AzureDevOps) GetWorkloadInfo() (*[]Workload, error)
- func (ado *AzureDevOps) SetPullRequestAutoComplete(repositoryName string, pullRequestId *int, identityId *uuid.UUID) error
- type Config
- type ExtraParameter
- type GitConfig
- type Manifest
- type Set
- type SetCollection
- type Workload
- type WorkloadDestroyPreventedError
- type WorkloadIndex
- type WorkloadInstance
- type WorkloadResult
- type WorkloadResultStatus
Constants ¶
This section is empty.
Variables ¶
View Source
var WorkloadResultStatusValuesType = workloadResultStatusValuesType{
Succeeded: "Succeeded",
Failed: "Failed",
Skipped: "Skipped",
}
Functions ¶
This section is empty.
Types ¶
type AzureDevOps ¶
type AzureDevOps struct { OrganisationName string ProjectName string PAT string WikiRemoteUrl string WikiRepoRemoteUrl string WorkloadFeedName string }
func (*AzureDevOps) CreatePullRequest ¶
func (*AzureDevOps) CreateWikiIfNotExists ¶
func (ado *AzureDevOps) CreateWikiIfNotExists(wikiName string, gitUserName string, gitUserEmail string) error
func (*AzureDevOps) GetIdentityId ¶
func (ado *AzureDevOps) GetIdentityId() (*uuid.UUID, error)
func (*AzureDevOps) GetSets ¶
func (ado *AzureDevOps) GetSets() (*[]SetCollection, error)
func (*AzureDevOps) GetWorkloadInfo ¶
func (ado *AzureDevOps) GetWorkloadInfo() (*[]Workload, error)
func (*AzureDevOps) SetPullRequestAutoComplete ¶
type ExtraParameter ¶
type Manifest ¶
type Manifest struct { Version int64 `yaml:"version"` Environment string `yaml:"environment"` FilePath string `yaml:"-"` NextEnvironment string `yaml:"nextEnvironment"` Set string `yaml:"set"` Workloads []*WorkloadInstance `yaml:"workloads"` }
func LoadManifest ¶
func LoadManifestFromString ¶
func (*Manifest) PrintHeader ¶
func (m *Manifest) PrintHeader()
func (*Manifest) PrintWorkloadsSummary ¶
func (m *Manifest) PrintWorkloadsSummary()
type SetCollection ¶
type Workload ¶
type Workload struct { Name string Version string Build string Readme string Instances []*WorkloadInstance }
type WorkloadDestroyPreventedError ¶
type WorkloadDestroyPreventedError struct {
Workload *WorkloadInstance
}
func (*WorkloadDestroyPreventedError) Error ¶
func (e *WorkloadDestroyPreventedError) Error() string
type WorkloadIndex ¶
type WorkloadIndex struct {
Workloads []Workload
}
type WorkloadInstance ¶
type WorkloadInstance struct { ExtraParameters []ExtraParameter `yaml:"extraParameters"` Name string `yaml:"name"` PreventDestroy bool `yaml:"preventDestroy"` Type string `yaml:"type"` Version string `yaml:"version"` }
func (*WorkloadInstance) GetTypeProjectAndRepositoryNames ¶
func (w *WorkloadInstance) GetTypeProjectAndRepositoryNames() (string, string)
func (*WorkloadInstance) PrintHeader ¶
func (w *WorkloadInstance) PrintHeader()
type WorkloadResult ¶
type WorkloadResult struct { FinishTime *time.Time Link string QueueTime *time.Time Status WorkloadResultStatus Workload *WorkloadInstance }
func (*WorkloadResult) PrintResult ¶
func (d *WorkloadResult) PrintResult()
type WorkloadResultStatus ¶
type WorkloadResultStatus string
Click to show internal directories.
Click to hide internal directories.