Documentation
¶
Index ¶
- Constants
- Variables
- func APIErrorChecker(urlPath string, resp *http.Response, wantedResponseCode int, slingError error, ...) error
- func Bool(v bool) *bool
- func FromTimeSpan(timeSpan string) time.Duration
- func Int(v int) *int
- func Int64(v int64) *int64
- func LoadNextPage(pagedResults PagedResults) (string, bool)
- func NotAll(fl validator.FieldLevel) bool
- func PrettyJSON(data interface{}) string
- func String(v string) *string
- func ToTimeSpan(duration time.Duration) string
- func ValidateLibraryVariableSetValues(LibraryVariableSet *LibraryVariableSet) error
- func ValidateMultipleProperties(validatePropertyErrors []error) error
- func ValidatePropertiesMatch(firstProperty, firstPropertyName, secondProperty, secondPropertyName string) error
- func ValidatePropertyValues(propertyName string, propertyValue string, validValues []string) error
- func ValidateRequiredPropertyValue(propertyName string, propertyValue string) error
- func ValidateRequiredSensitiveValue(propertyName string, sensitiveValue *SensitiveValue) error
- func ValidateRequiredUUID(propertyName string, id *uuid.UUID) error
- func ValidateSemanticVersion(propertyName string, version string) error
- func ValidateStringInSlice(str string, list []string) bool
- type APIError
- type APIKey
- type APIKeys
- type APIQuery
- type AccountResource
- func (a *AccountResource) GetAccountType() AccountType
- func (a *AccountResource) GetDescription() string
- func (a *AccountResource) GetEnvironmentIDs() []string
- func (r *AccountResource) GetID() string
- func (r *AccountResource) GetLinks() map[string]string
- func (r *AccountResource) GetModifiedBy() string
- func (r *AccountResource) GetModifiedOn() *time.Time
- func (a *AccountResource) GetName() string
- func (a *AccountResource) GetSpaceID() string
- func (a *AccountResource) GetTenantIDs() []string
- func (a *AccountResource) GetTenantTags() []string
- func (a *AccountResource) GetTenantedDeploymentMode() TenantedDeploymentMode
- func (a *AccountResource) SetDescription(description string)
- func (a *AccountResource) SetName(name string)
- func (a *AccountResource) SetSpaceID(spaceID string)
- func (a *AccountResource) Validate() error
- type AccountResources
- type AccountType
- type AccountUsage
- type Accounts
- type AccountsQuery
- type ActionTemplate
- type ActionTemplateCategory
- type ActionTemplateLogoQuery
- type ActionTemplateParameter
- type ActionTemplateSearch
- type ActionTemplateVersionedLogoQuery
- type ActionTemplates
- type ActionTemplatesQuery
- type ActivityLogElement
- type ActivityLogEntry
- type AmazonWebServicesAccount
- func (a *AmazonWebServicesAccount) GetAccountType() AccountType
- func (a *AmazonWebServicesAccount) GetDescription() string
- func (a *AmazonWebServicesAccount) GetEnvironmentIDs() []string
- func (a *AmazonWebServicesAccount) GetName() string
- func (a *AmazonWebServicesAccount) GetSpaceID() string
- func (a *AmazonWebServicesAccount) GetTenantIDs() []string
- func (a *AmazonWebServicesAccount) GetTenantTags() []string
- func (a *AmazonWebServicesAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
- func (a *AmazonWebServicesAccount) SetDescription(description string)
- func (a *AmazonWebServicesAccount) SetName(name string)
- func (a *AmazonWebServicesAccount) SetSpaceID(spaceID string)
- func (a *AmazonWebServicesAccount) Validate() error
- type Artifact
- type Artifacts
- type ArtifactsQuery
- type Authentication
- type AuthenticationProviderElement
- type AutoDeployReleaseOverride
- type AwsElasticContainerRegistry
- func (r *AwsElasticContainerRegistry) GetID() string
- func (r *AwsElasticContainerRegistry) GetLinks() map[string]string
- func (r *AwsElasticContainerRegistry) GetModifiedBy() string
- func (r *AwsElasticContainerRegistry) GetModifiedOn() *time.Time
- func (a *AwsElasticContainerRegistry) Validate() error
- type AzureCloudServiceEndpoint
- func (a AzureCloudServiceEndpoint) GetAccountID() string
- func (e AzureCloudServiceEndpoint) GetCommunicationStyle() string
- func (a AzureCloudServiceEndpoint) GetDefaultWorkerPoolID() string
- func (a AzureCloudServiceEndpoint) SetDefaultWorkerPoolID(defaultWorkerPoolID string)
- func (e AzureCloudServiceEndpoint) Validate() error
- type AzureServicePrincipalAccount
- func (a *AzureServicePrincipalAccount) GetAccountType() AccountType
- func (a *AzureServicePrincipalAccount) GetDescription() string
- func (a *AzureServicePrincipalAccount) GetEnvironmentIDs() []string
- func (a *AzureServicePrincipalAccount) GetName() string
- func (a *AzureServicePrincipalAccount) GetSpaceID() string
- func (a *AzureServicePrincipalAccount) GetTenantIDs() []string
- func (a *AzureServicePrincipalAccount) GetTenantTags() []string
- func (a *AzureServicePrincipalAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
- func (a *AzureServicePrincipalAccount) SetDescription(description string)
- func (a *AzureServicePrincipalAccount) SetName(name string)
- func (a *AzureServicePrincipalAccount) SetSpaceID(spaceID string)
- func (a *AzureServicePrincipalAccount) Validate() error
- type AzureSubscriptionAccount
- func (a *AzureSubscriptionAccount) GetAccountType() AccountType
- func (a *AzureSubscriptionAccount) GetDescription() string
- func (a *AzureSubscriptionAccount) GetEnvironmentIDs() []string
- func (a *AzureSubscriptionAccount) GetName() string
- func (a *AzureSubscriptionAccount) GetSpaceID() string
- func (a *AzureSubscriptionAccount) GetTenantIDs() []string
- func (a *AzureSubscriptionAccount) GetTenantTags() []string
- func (a *AzureSubscriptionAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
- func (a *AzureSubscriptionAccount) SetDescription(description string)
- func (a *AzureSubscriptionAccount) SetName(name string)
- func (a *AzureSubscriptionAccount) SetSpaceID(spaceID string)
- func (a *AzureSubscriptionAccount) Validate() error
- type AzureWebAppEndpoint
- type BuildInformation
- type BuildInformationBulkQuery
- type BuildInformationQuery
- type BuiltInFeed
- type BuiltInFeedStatistics
- type CertificateConfigurationQuery
- type CertificateResource
- type CertificateResources
- type CertificatesQuery
- type Channel
- type ChannelRule
- type Channels
- type ChannelsQuery
- type Client
- type CloudRegionEndpoint
- type CloudServiceEndpoint
- type CloudTemplateQuery
- type CommitDetails
- type CommunicationStyle
- type CommunityActionTemplate
- type CommunityActionTemplates
- type CommunityActionTemplatesQuery
- type ConfigurationSection
- type ConfigurationSections
- type ConnectivityCheck
- type Control
- type DashboardDynamicQuery
- type DashboardItem
- type DashboardQuery
- type Deployment
- type DeploymentAction
- type DeploymentActionContainer
- type DeploymentActionPackage
- type DeploymentProcess
- type DeploymentProcesses
- type DeploymentProcessesQuery
- type DeploymentQuery
- type DeploymentStep
- type DeploymentStepConditionType
- type DeploymentStepPackageRequirement
- type DeploymentStepStartTrigger
- type DeploymentTarget
- type DeploymentTargets
- type Deployments
- type DeploymentsQuery
- type DiscoverMachineQuery
- type DiscoverWorkerQuery
- type DisplayInfo
- type DockerContainerRegistry
- type DynamicWorkerPool
- func (r *DynamicWorkerPool) GetID() string
- func (d *DynamicWorkerPool) GetIsDefault() bool
- func (r *DynamicWorkerPool) GetLinks() map[string]string
- func (r *DynamicWorkerPool) GetModifiedBy() string
- func (r *DynamicWorkerPool) GetModifiedOn() *time.Time
- func (d *DynamicWorkerPool) GetWorkerPoolType() WorkerPoolType
- func (d *DynamicWorkerPool) GetWorkerType() WorkerType
- func (d *DynamicWorkerPool) Validate() error
- type DynamicWorkerPools
- type EndpointAuthentication
- type Environment
- type Environments
- type EnvironmentsQuery
- type EnvironmentsSummaryQuery
- type EventCategoriesQuery
- type EventGroupsQuery
- type EventsQuery
- type ExtensionSettingsValues
- type ExternalUserSearchQuery
- type Feed
- type FeedResource
- func (f *FeedResource) GetFeedType() FeedType
- func (r *FeedResource) GetID() string
- func (r *FeedResource) GetLinks() map[string]string
- func (r *FeedResource) GetModifiedBy() string
- func (r *FeedResource) GetModifiedOn() *time.Time
- func (f *FeedResource) GetName() string
- func (f *FeedResource) SetName(name string)
- func (f FeedResource) Validate() error
- type FeedResources
- type FeedType
- type Feeds
- type FeedsQuery
- type Form
- type FormElement
- type GitHubRepositoryFeed
- type HelmFeed
- type IAccount
- type IDynamicWorkerPool
- type IEndpoint
- type IEndpointWithAccount
- type IEndpointWithFingerprint
- type IEndpointWithHostname
- type IEndpointWithProxy
- type IFeed
- type IHasName
- type IHasSpace
- type IResource
- type IRunsOnAWorker
- type IService
- type IWorkerPool
- type Identity
- type IdentityClaim
- type Interruption
- type InterruptionSubmitRequest
- type Interruptions
- type InterruptionsQuery
- type IssueTrackersQuery
- type KubernetesEndpoint
- func (s *KubernetesEndpoint) GetCommunicationStyle() string
- func (k *KubernetesEndpoint) GetDefaultWorkerPoolID() string
- func (r *KubernetesEndpoint) GetID() string
- func (r *KubernetesEndpoint) GetLinks() map[string]string
- func (r *KubernetesEndpoint) GetModifiedBy() string
- func (r *KubernetesEndpoint) GetModifiedOn() *time.Time
- func (k *KubernetesEndpoint) GetProxyID() string
- func (k *KubernetesEndpoint) MarshalJSON() ([]byte, error)
- func (k *KubernetesEndpoint) SetDefaultWorkerPoolID(defaultWorkerPoolID string)
- func (k *KubernetesEndpoint) SetProxyID(proxyID string)
- func (k *KubernetesEndpoint) UnmarshalJSON(data []byte) error
- func (k *KubernetesEndpoint) Validate() error
- type Library
- type LibraryVariableSet
- type LibraryVariableSetUsageEntry
- func (r *LibraryVariableSetUsageEntry) GetID() string
- func (r *LibraryVariableSetUsageEntry) GetLinks() map[string]string
- func (r *LibraryVariableSetUsageEntry) GetModifiedBy() string
- func (r *LibraryVariableSetUsageEntry) GetModifiedOn() *time.Time
- func (r *LibraryVariableSetUsageEntry) Validate() error
- type LibraryVariableSets
- type LibraryVariablesQuery
- type Lifecycle
- type Lifecycles
- type LifecyclesQuery
- type Links
- type ListAPIMetadata
- type ListeningTentacleEndpoint
- type MachineCleanupPolicy
- type MachineConnectionStatus
- type MachineConnectivityPolicy
- type MachineHealthCheckPolicy
- type MachinePolicies
- type MachinePoliciesQuery
- type MachinePolicy
- func (r *MachinePolicy) GetID() string
- func (r *MachinePolicy) GetLinks() map[string]string
- func (r *MachinePolicy) GetModifiedBy() string
- func (r *MachinePolicy) GetModifiedOn() *time.Time
- func (m *MachinePolicy) MarshalJSON() ([]byte, error)
- func (m *MachinePolicy) UnmarshalJSON(data []byte) error
- func (m *MachinePolicy) Validate() error
- type MachineScriptPolicy
- type MachineTentacleVersionDetails
- type MachineUpdatePolicy
- type MachinesQuery
- type MavenFeed
- type Metadata
- type NamedReferenceItem
- type NuGetFeed
- type OctopusProjectFeed
- type OctopusServerNodeResource
- type OctopusServerNodesQuery
- type OfflineDropDestination
- type OfflineDropEndpoint
- type OptionsMetadata
- type Package
- type PackageDeltaSignatureQuery
- type PackageDeltaUploadQuery
- type PackageDescription
- type PackageDescriptions
- type PackageMetadataQuery
- type PackageNote
- type PackageNotesListQuery
- type PackageNotesResult
- type PackageReference
- type PackageUploadQuery
- type PackageVersion
- type Packages
- type PackagesBulkQuery
- type PackagesQuery
- type PagedResults
- type PermissionDescription
- type Phase
- type PollingTentacleEndpoint
- type ProcessReferenceDataItem
- type Progression
- type Project
- type ProjectConnectivityPolicy
- type ProjectGroup
- type ProjectGroups
- type ProjectGroupsQuery
- type ProjectPulseQuery
- type ProjectSummary
- type ProjectTrigger
- func (t *ProjectTrigger) AddEventCategories(eventCategories []string)
- func (t *ProjectTrigger) AddEventGroups(eventGroups []string)
- func (r *ProjectTrigger) GetID() string
- func (r *ProjectTrigger) GetLinks() map[string]string
- func (r *ProjectTrigger) GetModifiedBy() string
- func (r *ProjectTrigger) GetModifiedOn() *time.Time
- func (r *ProjectTrigger) Validate() error
- type ProjectTriggerAction
- type ProjectTriggerFilter
- type ProjectTriggers
- type ProjectTriggersQuery
- type ProjectVariableSetUsage
- type ProjectedTeamReferenceDataItem
- type Projects
- type ProjectsExperimentalSummariesQuery
- type ProjectsQuery
- type PropertyApplicability
- type PropertyMetadata
- type PropertyValue
- type PropertyValueResource
- type ProxiesQuery
- type ReferenceDataItem
- type Release
- type ReleaseChanges
- type ReleaseCreationStrategy
- type ReleasePackageVersionBuildInformation
- type ReleaseProgression
- type ReleaseQuery
- type ReleaseUsage
- type ReleaseUsageEntry
- type Releases
- type ReleasesQuery
- type ReplacementCertificate
- type Resources
- type RetentionPeriod
- type RootResource
- type Runbook
- type RunbookProcess
- type RunbookProcesses
- type RunbookProcessesQuery
- type RunbookRetentionPeriod
- type RunbookRunsQuery
- type RunbookSnapshotUsage
- type RunbookSnapshotUsageEntry
- type RunbookSnapshotsQuery
- type RunbookStepUsage
- type Runbooks
- type RunbooksQuery
- type SSHEndpoint
- func (s *SSHEndpoint) GetAccountID() string
- func (s *SSHEndpoint) GetCommunicationStyle() string
- func (s *SSHEndpoint) GetFingerprint() string
- func (s *SSHEndpoint) GetHost() string
- func (r *SSHEndpoint) GetID() string
- func (r *SSHEndpoint) GetLinks() map[string]string
- func (r *SSHEndpoint) GetModifiedBy() string
- func (r *SSHEndpoint) GetModifiedOn() *time.Time
- func (s *SSHEndpoint) GetProxyID() string
- func (s *SSHEndpoint) MarshalJSON() ([]byte, error)
- func (s *SSHEndpoint) SetProxyID(proxyID string)
- func (s *SSHEndpoint) UnmarshalJSON(b []byte) error
- func (s *SSHEndpoint) Validate() error
- type SSHKeyAccount
- func (a *SSHKeyAccount) GetAccountType() AccountType
- func (a *SSHKeyAccount) GetDescription() string
- func (a *SSHKeyAccount) GetEnvironmentIDs() []string
- func (a *SSHKeyAccount) GetName() string
- func (a *SSHKeyAccount) GetSpaceID() string
- func (a *SSHKeyAccount) GetTenantIDs() []string
- func (a *SSHKeyAccount) GetTenantTags() []string
- func (a *SSHKeyAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
- func (a *SSHKeyAccount) SetDescription(description string)
- func (a *SSHKeyAccount) SetName(name string)
- func (a *SSHKeyAccount) SetSpaceID(spaceID string)
- func (s *SSHKeyAccount) Validate() error
- type ScheduledProjectTriggersQuery
- type SchedulerQuery
- type ScopeValue
- type ScopeValues
- type ScopedUserRolesQuery
- type SearchPackagesQuery
- type SelectedPackage
- type SensitiveValue
- type ServiceFabricEndpoint
- type SignInQuery
- type SkipMachineBehavior
- type Space
- type SpaceHomeQuery
- type SpacePermissions
- type Spaces
- type SpacesQuery
- type StaticWorkerPool
- func (r *StaticWorkerPool) GetID() string
- func (s *StaticWorkerPool) GetIsDefault() bool
- func (r *StaticWorkerPool) GetLinks() map[string]string
- func (r *StaticWorkerPool) GetModifiedBy() string
- func (r *StaticWorkerPool) GetModifiedOn() *time.Time
- func (s *StaticWorkerPool) GetWorkerPoolType() WorkerPoolType
- func (s *StaticWorkerPool) Validate() error
- type StaticWorkerPools
- type StepUsage
- type StepUsageEntry
- type SubscriptionsQuery
- type Tag
- type TagSet
- type TagSets
- type TagSetsQuery
- type TargetUsageEntry
- type TasksQuery
- type Team
- type TeamMembershipQuery
- type Teams
- type TeamsQuery
- type Tenant
- type TenantVariablesQuery
- type TenantedDeploymentMode
- type Tenants
- type TenantsMissingVariablesQuery
- type TenantsQuery
- type TentacleVersionDetails
- type TokenAccount
- func (a *TokenAccount) GetAccountType() AccountType
- func (a *TokenAccount) GetDescription() string
- func (a *TokenAccount) GetEnvironmentIDs() []string
- func (a *TokenAccount) GetName() string
- func (a *TokenAccount) GetSpaceID() string
- func (a *TokenAccount) GetTenantIDs() []string
- func (a *TokenAccount) GetTenantTags() []string
- func (a *TokenAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
- func (a *TokenAccount) SetDescription(description string)
- func (a *TokenAccount) SetName(name string)
- func (a *TokenAccount) SetSpaceID(spaceID string)
- func (t *TokenAccount) Validate() error
- type TriggerAction
- type TypeMetadata
- type User
- type UserAuthentication
- type UserPermissionRestriction
- type UserPermissionSet
- type UserQuery
- type UserRolesQuery
- type UsernamePasswordAccount
- func (a *UsernamePasswordAccount) GetAccountType() AccountType
- func (a *UsernamePasswordAccount) GetDescription() string
- func (a *UsernamePasswordAccount) GetEnvironmentIDs() []string
- func (a *UsernamePasswordAccount) GetName() string
- func (a *UsernamePasswordAccount) GetSpaceID() string
- func (a *UsernamePasswordAccount) GetTenantIDs() []string
- func (a *UsernamePasswordAccount) GetTenantTags() []string
- func (a *UsernamePasswordAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
- func (a *UsernamePasswordAccount) SetDescription(description string)
- func (a *UsernamePasswordAccount) SetName(name string)
- func (a *UsernamePasswordAccount) SetSpaceID(spaceID string)
- func (u *UsernamePasswordAccount) Validate() error
- type Users
- type UsersQuery
- type Variable
- type VariableNamesQuery
- type VariablePreviewQuery
- type VariablePromptOptions
- type VariableScope
- type VariableScopeValues
- type VariableSet
- type Variables
- type VariablesQuery
- type VersionControlSettings
- type VersionRuleTestQuery
- type VersioningStrategy
- type WorkItemLink
- type Worker
- type WorkerPool
- type WorkerPoolResource
- func (r *WorkerPoolResource) GetID() string
- func (w *WorkerPoolResource) GetIsDefault() bool
- func (r *WorkerPoolResource) GetLinks() map[string]string
- func (r *WorkerPoolResource) GetModifiedBy() string
- func (r *WorkerPoolResource) GetModifiedOn() *time.Time
- func (w *WorkerPoolResource) GetName() string
- func (w *WorkerPoolResource) GetWorkerPoolType() WorkerPoolType
- func (w *WorkerPoolResource) GetWorkerType() WorkerType
- func (w *WorkerPoolResource) SetName(name string)
- func (w *WorkerPoolResource) Validate() error
- type WorkerPoolResources
- type WorkerPoolType
- type WorkerPools
- type WorkerPoolsQuery
- type WorkerPoolsSummaryQuery
- type WorkerType
- type Workers
- type WorkersQuery
Constants ¶
const ( AccountTypeNone = AccountType("None") AccountTypeAmazonWebServicesAccount = AccountType("AmazonWebServicesAccount") AccountTypeAzureServicePrincipal = AccountType("AzureServicePrincipal") AccountTypeAzureSubscription = AccountType("AzureSubscription") AccountTypeSSHKeyPair = AccountType("SshKeyPair") AccountTypeToken = AccountType("Token") AccountTypeUsernamePassword = AccountType("UsernamePassword") )
const ( ActionTypeAWSApplyCloudFormationChangeset string = "Octopus.AwsApplyCloudFormationChangeSet" ActionTypeAWSDeleteCloudFormation string = "Octopus.AwsDeleteCloudFormation" ActionTypeAWSRunCloudFormation string = "Octopus.AwsRunCloudFormation" ActionTypeAWSRunScript string = "Octopus.AwsRunScript" ActionTypeAWSUploadS3 string = "Octopus.AwsUploadS3" ActionTypeOctopusScript string = "Octopus.Script" ActionTypeOctopusActionScriptBody string = "Octopus.Action.Script.ScriptBody" )
const ( OperationAdd string = "Add" OperationAPIAdd string = "apiAdd" OperationAPIDelete string = "apiDelete" OperationAPIGet string = "apiGet" OperationAPIPost string = "apiPost" OperationAPIUpdate string = "apiUpdate" OperationDelete string = "Delete" OperationDeleteByID string = "DeleteByID" OperationGet string = "Get" OperationGetAPIKeyByID string = "GetAPIKeyByID" OperationGetAPIKeys string = "GetAPIKeys" OperationGetAuthentication string = "GetAuthentication" OperationGetAuthenticationByUser string = "GetAuthenticationByUser" OperationGetByID string = "GetByID" OperationGetByIDs string = "GetByIDs" OperationGetByName string = "GetByName" OperationGetByPartialName string = "GetByPartialName" OperationGetByProjectID string = "GetByProjectID" OperationGetByUserID string = "GetByUserID" OperationGetChannels string = "GetChannels" OperationGetDeployments string = "GetDeployments" OperationGetProject string = "GetProject" OperationGetReleases string = "GetReleases" OperationGetSummary string = "GetSummary" OperationInstall string = "Install" OperationReplace string = "Replace" OperationSearchPackages string = "SearchPackages" OperationUpdate string = "Update" )
const ( ParameterAccessKey string = "accessKey" ParameterAccount string = "account" ParameterAccountResource string = "accountResource" ParameterAccountType string = "accountType" ParameterActionTemplate string = "actionTemplate" ParameterApplicationPassword string = "applicationPassword" ParameterArtifact string = "artifact" ParameterAPIKey string = "apiKey" ParameterAPIKeyID string = "apiKeyID" ParameterCertificate string = "certificate" ParameterCertificateID string = "certificateID" ParameterChannel string = "channel" ParameterEnvironment string = "environment" ParameterFeed string = "feed" ParameterID string = "id" ParameterIDs string = "ids" ParameterLibraryVariableSet string = "libraryVariableSet" ParameterMachinePolicy string = "machinePolicy" ParameterName string = "name" ParameterOctopusURL string = "octopusURL" ParameterPackage string = "package" ParameterPartialName string = "partialName" ParameterPath string = "path" ParameterPrivateKeyFile string = "privateKeyFile" ParameterProjectID string = "projectID" ParameterProject string = "project" ParameterRelease string = "release" ParameterReplacementCertificate string = "replacementCertificate" ParameterResource string = "resource" ParameterRunbook string = "runbook" ParameterSecretKey string = "secretKey" ParameterSling string = "sling" ParameterTagSet string = "tagSet" ParameterTeam string = "team" ParameterToken string = "token" ParameterUser string = "user" ParameterUserID string = "userID" ParameterUsername string = "username" ParameterWorker string = "worker" ParameterWorkerPool string = "workerPool" ParameterWorkerPoolResource string = "workerPoolResource" ParameterWorkerType string = "workerType" )
const ( ServiceAccountService string = "AccountService" ServiceActionTemplateService string = "ActionTemplateService" ServiceAPIKeyService string = "APIKeyService" ServiceArtifactService string = "ArtifactService" ServiceAuthenticationService string = "AuthenticationService" ServiceAzureEnvironmentService string = "AzureEnvironmentService" ServiceAzureDevOpsConnectivityCheckService string = "AzureDevOpsConnectivityCheckService" ServiceBuildInformationService string = "BuildInformationService" ServiceCertificateService string = "CertificateService" ServiceCertificateConfigurationService string = "CertificateConfigurationService" ServiceChannelService string = "ChannelService" ServiceCloudTemplateService string = "CloudTemplateService" ServiceCommunityActionTemplateService string = "CommunityActionTemplateService" ServiceConfigurationService string = "ConfigurationService" ServiceDashboardConfigurationService string = "DashboardConfigurationService" ServiceDashboardService string = "DashboardService" ServiceDeploymentService string = "DeploymentService" ServiceDeploymentProcessesService string = "DeploymentProcessesService" ServiceDynamicExtensionService string = "DynamicExtensionService" ServiceEnvironmentService string = "EnvironmentService" ServiceEventService string = "EventService" ServiceExternalSecurityGroupProviderService string = "ExternalSecurityGroupProviderService" ServiceFeaturesConfigurationService string = "FeaturesConfigurationService" ServiceFeedService string = "FeedService" ServiceHomeService string = "HomeService" ServiceIssueTrackerService string = "IssueTrackerService" ServiceInterruptionService string = "InterruptionService" ServiceInvitationService string = "InvitationService" ServiceJiraIntegrationService string = "JiraIntegrationService" ServiceLetsEncryptConfigurationService string = "LetsEncryptConfigurationService" ServiceLibraryVariableSetService string = "LibraryVariableSetService" ServiceLicenseService string = "LicenseService" ServiceLifecycleService string = "LifecycleService" ServiceMachinePolicyService string = "MachinePolicyService" ServiceMachineRoleService string = "MachineRoleService" ServiceMachineService string = "MachineService" ServiceMaintenanceConfigurationService string = "MaintenanceConfigurationService" ServiceMigrationService string = "MigrationService" ServiceNuGetService string = "NuGetService" ServiceOctopusPackageMetadataService string = "OctopusPackageMetadataService" ServiceOctopusServerNodeService string = "OctopusServerNodeService" ServicePackageService string = "PackageService" ServicePackageMetadataService string = "PackageMetadataService" ServicePerformanceConfigurationService string = "PerformanceConfigurationService" ServicePermissionService string = "PermissionService" ServiceProjectGroupService string = "ProjectGroupService" ServiceProjectService string = "ProjectService" ServiceProjectTriggerService string = "ProjectTriggerService" ServiceProxyService string = "ProxyService" ServiceReleaseService string = "ReleaseService" ServiceReportingService string = "ReportingService" ServiceRootService string = "RootService" ServiceRunbookProcessService string = "RunbookProcessService" ServiceRunbookRunService string = "RunbookRunService" ServiceRunbookSnapshotService string = "RunbookSnapshotService" ServiceRunbookService string = "RunbookService" ServiceScheduledProjectTriggerService string = "ScheduledProjectTriggerService" ServiceSchedulerService string = "SchedulerService" ServiceScopedUserRoleService string = "ScopedUserRoleService" ServiceServerConfigurationService string = "ServerConfigurationService" ServiceServerStatuService string = "ServerStatuService" ServiceSpaceService string = "SpaceService" ServiceSMTPConfigurationService string = "SMTPConfigurationService" ServiceSubscriptionService string = "SubscriptionService" ServiceTagSetService string = "TagSetService" ServiceTaskService string = "TaskService" ServiceTeamMembershipService string = "TeamMembershipService" ServiceTeamService string = "TeamService" ServiceTenantService string = "TenantService" ServiceTenantVariableService string = "TenantVariableService" ServiceUpgradeConfigurationService string = "UpgradeConfigurationService" ServiceUserOnboardingService string = "UserOnboardingService" ServiceUserService string = "UserService" ServiceUserRoleService string = "UserRoleService" ServiceVariableService string = "VariableService" ServiceWorkerPoolService string = "WorkerPoolService" ServiceWorkerService string = "WorkerService" ServiceWorkerToolsLatestImageService string = "WorkerToolsLatestImageService" )
const ( PackageAcquisitionLocationServer = "Server" PackageAcquisitionLocationExecutionTarget = "ExecutionTarget" PackageAcquisitionLocationNotAcquired = "NotAcquired" )
const ( FeedTypeAwsElasticContainerRegistry = FeedType("AwsElasticContainerRegistry") FeedTypeBuiltIn = FeedType("BuiltIn") FeedTypeDocker = FeedType("Docker") FeedTypeGitHub = FeedType("GitHub") FeedTypeHelm = FeedType("Helm") FeedTypeMaven = FeedType("Maven") FeedTypeNuGet = FeedType("NuGet") FeedTypeOctopusProject = FeedType("OctopusProject") )
const ( RetentionUnitDays string = "Days" RetentionUnitItems string = "Items" )
const ( SkipMachineBehaviorNone = SkipMachineBehavior("None") )
const ( TenantedDeploymentModeTenanted = TenantedDeploymentMode("Tenanted") TenantedDeploymentModeTenantedOrUntenanted = TenantedDeploymentMode("TenantedOrUntenanted") TenantedDeploymentModeUntenanted = TenantedDeploymentMode("Untenanted") )
const ManualInterventionDecline = "Abort"
const ManualInterverventionApprove = "Proceed"
Variables ¶
var ErrItemNotFound = errors.New("cannot find the item")
ErrItemNotFound is an OctopusDeploy error returned an item cannot be found.
var ValidMachineStatuses = []string{
"Online", "Offline", "Unknown", "NeedsUpgrade", "CalamariNeedsUpgrade", "Disabled",
}
ValidMachineStatuses provides options for valid machine status
var ValidProjectConnectivityPolicySkipMachineBehaviors = []SkipMachineBehavior{ SkipMachineBehaviorNone, SkipMachineBehaviorSkipUnavailableMachines, }
ValidProjectConnectivityPolicySkipMachineBehaviors provides options for "Skip Deployment Targets" - https://octopus.com/docs/deployment-patterns/elastic-and-transient-environments/deploying-to-transient-targets
var ValidProjectDefaultGuidedFailureModes = []string{
"EnvironmentDefault", "Off", "On",
}
ValidProjectDefaultGuidedFailureModes provides options for "Default failure mode" - https://octopus.com/docs/deployment-process/releases/guided-failures
Functions ¶
func APIErrorChecker ¶
func APIErrorChecker(urlPath string, resp *http.Response, wantedResponseCode int, slingError error, octopusDeployError *APIError) error
APIErrorChecker is a generic error handler for the OctopusDeploy API.
func FromTimeSpan ¶
func LoadNextPage ¶
func LoadNextPage(pagedResults PagedResults) (string, bool)
LoadNextPage checks if the next page should be loaded from the API. Returns the new path and a bool if the next page should be checked.
func NotAll ¶
func NotAll(fl validator.FieldLevel) bool
NotAll is the validation function for validating if the current field has a value of "all".
func PrettyJSON ¶
func PrettyJSON(data interface{}) string
func ToTimeSpan ¶
func ValidateLibraryVariableSetValues ¶
func ValidateLibraryVariableSetValues(LibraryVariableSet *LibraryVariableSet) error
ValidateLibraryVariableSetValues checks the values of a library variable set to see if they are suitable for sending to Octopus Deploy. Used when adding or updating library variable sets.
func ValidateMultipleProperties ¶
ValidateMultipleProperties returns the first error in a list of property validations
func ValidatePropertiesMatch ¶
func ValidatePropertiesMatch(firstProperty, firstPropertyName, secondProperty, secondPropertyName string) error
ValidatePropertiesMatch checks two values against each other
func ValidatePropertyValues ¶
ValidatePropertyValues returns an error if the given string is not in a slice of strings
func ValidateRequiredPropertyValue ¶
ValidateRequiredPropertyValue returns an error if the property value is empty
func ValidateRequiredSensitiveValue ¶
func ValidateRequiredSensitiveValue(propertyName string, sensitiveValue *SensitiveValue) error
func ValidateStringInSlice ¶
ValidateStringInSlice checks if a string is in the given slice
Types ¶
type APIError ¶
type APIError struct { Details string `json:"Details,omitempty"` ErrorMessage string `json:"ErrorMessage,omitempty"` Errors []string `json:"Errors,omitempty"` FullException string `json:"FullException,omitempty"` HelpLink string `json:"HelpLink,omitempty"` HelpText string `json:"HelpText,omitempty"` ParsedHelpLinks []string `json:"ParsedHelpLinks,omitempty"` }
APIError is a generic structure for containing errors for API operations.
type APIKey ¶
type APIKey struct { APIKey string `json:"ApiKey,omitempty"` Created *time.Time `json:"Created,omitempty"` Purpose string `json:"Purpose,omitempty"` UserID string `json:"UserId,omitempty"` // contains filtered or unexported fields }
APIKey represents an API key.
func (*APIKey) GetModifiedBy ¶
func (r *APIKey) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*APIKey) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type APIKeys ¶
type APIKeys struct { Items []*APIKey `json:"Items"` PagedResults }
APIKeys defines a collection of API keys with built-in support for paged results.
type AccountResource ¶
type AccountResource struct { AccessKey string `json:"AccessKey,omitempty"` AccountType AccountType `json:"AccountType"` ApplicationID *uuid.UUID `json:"ClientId,omitempty"` ApplicationPassword *SensitiveValue `json:"Password,omitempty"` AuthenticationEndpoint string `json:"ActiveDirectoryEndpointBaseUri,omitempty"` AzureEnvironment string `json:"AzureEnvironment,omitempty"` CertificateBytes *SensitiveValue `json:"CertificateBytes,omitempty"` CertificateThumbprint string `json:"CertificateThumbprint,omitempty"` Description string `json:"Description,omitempty"` EnvironmentIDs []string `json:"EnvironmentIds,omitempty"` ManagementEndpoint string `json:"ServiceManagementEndpointBaseUri,omitempty"` Name string `json:"Name" validate:"required,notall"` PrivateKeyFile *SensitiveValue `json:"PrivateKeyFile,omitempty"` PrivateKeyPassphrase *SensitiveValue `json:"PrivateKeyPassphrase,omitempty"` ResourceManagerEndpoint string `json:"ResourceManagementEndpointBaseUri,omitempty"` SecretKey *SensitiveValue `json:"SecretKey,omitempty"` StorageEndpointSuffix string `json:"ServiceManagementEndpointSuffix,omitempty"` SpaceID string `json:"SpaceId,omitempty"` SubscriptionID *uuid.UUID `json:"SubscriptionNumber,omitempty"` TenantedDeploymentMode TenantedDeploymentMode `json:"TenantedDeploymentParticipation"` TenantID *uuid.UUID `json:"TenantId,omitempty"` TenantIDs []string `json:"TenantIds,omitempty"` TenantTags []string `json:"TenantTags,omitempty"` Token *SensitiveValue `json:"Token,omitempty"` Username string `json:"Username,omitempty"` // contains filtered or unexported fields }
AccountResource represents account details used for deployments, including username/password, tokens, Azure and AWS credentials, and SSH key pairs.
func NewAccountResource ¶
func NewAccountResource(name string, accountType AccountType) *AccountResource
NewAccount creates and initializes an account resource with a name and type.
func ToAccountResource ¶
func ToAccountResource(account IAccount) (*AccountResource, error)
func (*AccountResource) GetAccountType ¶
func (a *AccountResource) GetAccountType() AccountType
GetAccountType returns the type of this account resource.
func (*AccountResource) GetDescription ¶
func (a *AccountResource) GetDescription() string
GetDescription returns the description of this account resource.
func (*AccountResource) GetEnvironmentIDs ¶
func (a *AccountResource) GetEnvironmentIDs() []string
func (*AccountResource) GetID ¶
func (r *AccountResource) GetID() string
GetID returns the ID value of the resource.
func (*AccountResource) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*AccountResource) GetModifiedBy ¶
func (r *AccountResource) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*AccountResource) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*AccountResource) GetName ¶
func (a *AccountResource) GetName() string
GetName returns the name of this account resource.
func (*AccountResource) GetSpaceID ¶
func (a *AccountResource) GetSpaceID() string
GetSpaceID returns the space ID of this account resource.
func (*AccountResource) GetTenantIDs ¶
func (a *AccountResource) GetTenantIDs() []string
func (*AccountResource) GetTenantTags ¶
func (a *AccountResource) GetTenantTags() []string
func (*AccountResource) GetTenantedDeploymentMode ¶
func (a *AccountResource) GetTenantedDeploymentMode() TenantedDeploymentMode
func (*AccountResource) SetDescription ¶
func (a *AccountResource) SetDescription(description string)
SetDescription sets the description of the account resource.
func (*AccountResource) SetName ¶
func (a *AccountResource) SetName(name string)
SetName sets the name of this account resource.
func (*AccountResource) SetSpaceID ¶
func (a *AccountResource) SetSpaceID(spaceID string)
SetSpaceID sets the space ID of this account resource.
func (*AccountResource) Validate ¶
func (a *AccountResource) Validate() error
Validate checks the state of the account resource and returns an error if invalid.
type AccountResources ¶
type AccountResources struct { Items []*AccountResource `json:"Items"` PagedResults }
AccountResources defines a collection of account resources with built-in support for paged results.
type AccountType ¶
type AccountType string
type AccountUsage ¶
type AccountUsage struct { DeploymentProcesses []*StepUsage `json:"DeploymentProcesses,omitempty"` LibraryVariableSets []*LibraryVariableSetUsageEntry `json:"LibraryVariableSets,omitempty"` ProjectVariableSets []*ProjectVariableSetUsage `json:"ProjectVariableSets,omitempty"` Releases []*ReleaseUsage `json:"Releases,omitempty"` RunbookProcesses []*RunbookStepUsage `json:"RunbookProcesses,omitempty"` RunbookSnapshots []*RunbookSnapshotUsage `json:"RunbookSnapshots,omitempty"` Targets []*TargetUsageEntry `json:"Targets,omitempty"` // contains filtered or unexported fields }
AccountUsage contains the projects and deployments which are using an account.
func NewAccountUsage ¶
func NewAccountUsage() *AccountUsage
NewAccountUsage initializes an AccountUsage.
func (*AccountUsage) GetID ¶
func (r *AccountUsage) GetID() string
GetID returns the ID value of the resource.
func (*AccountUsage) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*AccountUsage) GetModifiedBy ¶
func (r *AccountUsage) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*AccountUsage) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type Accounts ¶
type Accounts struct { Items []IAccount `json:"Items"` PagedResults }
Accounts defines a collection of accounts with built-in support for paged results.
func ToAccounts ¶
func ToAccounts(accountResources *AccountResources) *Accounts
func (*Accounts) MarshalJSON ¶
MarshalJSON returns an Accounts struct as its JSON encoding.
func (*Accounts) UnmarshalJSON ¶
UnmarshalJSON sets this Accounts struct to its representation in JSON.
type AccountsQuery ¶
type AccountsQuery struct { AccountType AccountType `uri:"accountType,omitempty" url:"accountType,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
AccountsQuery represents parameters to query the Accounts service.
type ActionTemplate ¶
type ActionTemplate struct { ActionType string `json:"ActionType" validate:"required"` CommunityActionTemplateID string `json:"CommunityActionTemplateId,omitempty"` Description string `json:"Description,omitempty"` Name string `json:"Name" validate:"required"` Packages []*PackageReference `json:"Packages,omitempty"` Parameters []*ActionTemplateParameter `json:"Parameters,omitempty"` Properties map[string]PropertyValue `json:"Properties,omitempty"` SpaceID string `json:"SpaceId,omitempty"` Version int32 `json:"Version,omitempty"` // contains filtered or unexported fields }
ActionTemplate represents an action template in Octopus.
func NewActionTemplate ¶
func NewActionTemplate(name string, actionType string) *ActionTemplate
NewActionTemplate creates and initializes an action template.
func (*ActionTemplate) GetID ¶
func (r *ActionTemplate) GetID() string
GetID returns the ID value of the resource.
func (*ActionTemplate) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*ActionTemplate) GetModifiedBy ¶
func (r *ActionTemplate) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*ActionTemplate) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*ActionTemplate) Validate ¶
func (a *ActionTemplate) Validate() error
Validate checks the state of the ActionTemplate and returns an error if invalid.
type ActionTemplateCategory ¶
type ActionTemplateCategory struct { DisplayOrder int32 `json:"DisplayOrder,omitempty"` ID string `json:"Id,omitempty"` Links map[string]string `json:"Links,omitempty"` Name string `json:"Name,omitempty"` }
ActionTemplateCategory represents an action template category.
type ActionTemplateParameter ¶
type ActionTemplateParameter struct { DefaultValue *PropertyValueResource `json:"DefaultValue,omitempty"` DisplaySettings map[string]string `json:"DisplaySettings,omitempty"` HelpText string `json:"HelpText,omitempty"` Label string `json:"Label,omitempty"` Name string `json:"Name,omitempty"` // contains filtered or unexported fields }
ActionTemplateParameter represents an action template parameter.
func NewActionTemplateParameter ¶
func NewActionTemplateParameter() *ActionTemplateParameter
func (*ActionTemplateParameter) GetID ¶
func (r *ActionTemplateParameter) GetID() string
GetID returns the ID value of the resource.
func (*ActionTemplateParameter) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*ActionTemplateParameter) GetModifiedBy ¶
func (r *ActionTemplateParameter) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*ActionTemplateParameter) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type ActionTemplateSearch ¶
type ActionTemplateSearch struct { Author string `json:"Author,omitempty"` Categories []string `json:"Categories"` Category string `json:"Category,omitempty"` CommunityActionTemplateID string `json:"CommunityActionTemplateId,omitempty"` Description string `json:"Description,omitempty"` HasUpdate bool `json:"HasUpdate,omitempty"` ID string `json:"Id,omitempty"` IsBuiltIn bool `json:"IsBuiltIn,omitempty"` IsInstalled bool `json:"IsInstalled,omitempty"` Keywords string `json:"Keywords,omitempty"` Links map[string]string `json:"Links,omitempty"` Name string `json:"Name,omitempty"` Type string `json:"Type,omitempty"` Website string `json:"Website,omitempty"` }
ActionTemplateSearch represents an action template search.
type ActionTemplates ¶
type ActionTemplates struct { Items []*ActionTemplate `json:"Items"` PagedResults }
ActionTemplates defines a collection of action templates with built-in support for paged results.
type ActionTemplatesQuery ¶
type ActionTemplatesQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
ActionTemplatesQuery represents parameters to query the ActionTemplates service.
type ActivityLogElement ¶
type ActivityLogElement struct { Category string `json:"Category,omitempty"` Detail string `json:"Detail,omitempty"` MessageText string `json:"MessageText,omitempty"` OccurredAt time.Time `json:"OccurredAt,omitempty"` }
ActivityLogElement represents an activity log element.
type ActivityLogEntry ¶
type ActivityLogEntry struct { Category string `` /* 150-byte string literal not displayed */ Detail string `json:"Detail,omitempty"` MessageText string `json:"MessageText,omitempty"` OccurredAt time.Time `json:"OccurredAt,omitempty"` }
ActivityLogEntry represents an activity log entry.
type AmazonWebServicesAccount ¶
type AmazonWebServicesAccount struct { AccessKey string `validate:"required"` SecretKey *SensitiveValue `validate:"required"` // contains filtered or unexported fields }
AmazonWebServicesAccount represents an Amazon Web Services (AWS) account.
func NewAmazonWebServicesAccount ¶
func NewAmazonWebServicesAccount(name string, accessKey string, secretKey *SensitiveValue, options ...func(*AmazonWebServicesAccount)) (*AmazonWebServicesAccount, error)
NewAmazonWebServicesAccount initializes and returns an AWS account with a name, access key, and secret key.
func (*AmazonWebServicesAccount) GetAccountType ¶
func (a *AmazonWebServicesAccount) GetAccountType() AccountType
GetAccountType returns the type of this account.
func (*AmazonWebServicesAccount) GetDescription ¶
func (a *AmazonWebServicesAccount) GetDescription() string
GetDescription returns the description of the account.
func (*AmazonWebServicesAccount) GetEnvironmentIDs ¶
func (a *AmazonWebServicesAccount) GetEnvironmentIDs() []string
func (*AmazonWebServicesAccount) GetName ¶
func (a *AmazonWebServicesAccount) GetName() string
GetName returns the name of the account.
func (*AmazonWebServicesAccount) GetSpaceID ¶
func (a *AmazonWebServicesAccount) GetSpaceID() string
GetSpaceID returns the space ID of this account.
func (*AmazonWebServicesAccount) GetTenantIDs ¶
func (a *AmazonWebServicesAccount) GetTenantIDs() []string
func (*AmazonWebServicesAccount) GetTenantTags ¶
func (a *AmazonWebServicesAccount) GetTenantTags() []string
func (*AmazonWebServicesAccount) GetTenantedDeploymentMode ¶
func (a *AmazonWebServicesAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
func (*AmazonWebServicesAccount) SetDescription ¶
func (a *AmazonWebServicesAccount) SetDescription(description string)
SetDescription sets the description of the account.
func (*AmazonWebServicesAccount) SetName ¶
func (a *AmazonWebServicesAccount) SetName(name string)
SetName sets the name of the account.
func (*AmazonWebServicesAccount) SetSpaceID ¶
func (a *AmazonWebServicesAccount) SetSpaceID(spaceID string)
SetSpaceID sets the space ID of this account.
func (*AmazonWebServicesAccount) Validate ¶
func (a *AmazonWebServicesAccount) Validate() error
Validate checks the state of this account and returns an error if invalid.
type Artifact ¶
type Artifact struct { Created *time.Time `json:"Created,omitempty"` Filename string `json:"Filename" validate:"required"` LogCorrelationID string `json:"LogCorrelationId,omitempty"` ServerTaskID string `json:"ServerTaskId,omitempty"` Source string `json:"Source,omitempty"` SpaceID string `json:"SpaceId,omitempty"` // contains filtered or unexported fields }
Artifact represents an artifact.
func NewArtifact ¶
NewArtifact creates and initializes an artifact.
func (*Artifact) GetID ¶
func (r *Artifact) GetID() string
GetID returns the ID value of the resource.
func (*Artifact) GetModifiedBy ¶
func (r *Artifact) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Artifact) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type Artifacts ¶
type Artifacts struct { Items []*Artifact `json:"Items"` PagedResults }
Artifacts defines a collection of artifacts with built-in support for paged results from the API.
type ArtifactsQuery ¶
type ArtifactsQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` Order string `uri:"order" url:"order,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Regarding string `uri:"regarding,omitempty" url:"regarding,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type Authentication ¶
type Authentication struct { AnyAuthenticationProvidersSupportPasswordManagement bool `json:"AnyAuthenticationProvidersSupportPasswordManagement"` AuthenticationProviders []*AuthenticationProviderElement `json:"AuthenticationProviders"` AutoLoginEnabled bool `json:"AutoLoginEnabled"` // contains filtered or unexported fields }
Authentication represents enabled authentication providers.
func NewAuthentication ¶
func NewAuthentication() *Authentication
func (*Authentication) GetID ¶
func (r *Authentication) GetID() string
GetID returns the ID value of the resource.
func (*Authentication) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*Authentication) GetModifiedBy ¶
func (r *Authentication) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Authentication) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type AuthenticationProviderElement ¶
type AuthenticationProviderElement struct { CSSLinks []string `json:"CSSLinks"` FormsLoginEnabled bool `json:"FormsLoginEnabled"` IdentityType string `json:"IdentityType,omitempty"` JavascriptLinks []string `json:"JavascriptLinks"` Links map[string]string `json:"Links,omitempty"` Name string `json:"Name,omitempty"` }
AuthenticationProviderElement represents an authentication provider element.
type AutoDeployReleaseOverride ¶
type AutoDeployReleaseOverride struct { EnvironmentID string `json:"EnvironmentId,omitempty"` ReleaseID string `json:"ReleaseId,omitempty"` TenantID string `json:"TenantId,omitempty"` }
AutoDeployReleaseOverride represents an auto-deploy release override.
type AwsElasticContainerRegistry ¶
type AwsElasticContainerRegistry struct { AccessKey string `json:"AccessKey,omitempty"` Region string `json:"Region"` SecretKey *SensitiveValue `json:"SecretKey,omitempty"` Feed }
AwsElasticContainerRegistry represents an Amazon Web Services (AWS) Elastic Container Registry (ECR).
func NewAwsElasticContainerRegistry ¶
func NewAwsElasticContainerRegistry(name string, accessKey string, secretKey *SensitiveValue, region string) *AwsElasticContainerRegistry
NewAwsElasticContainerRegistry creates and initializes an Amazon Web Services (AWS) Elastic Container Registry (ECR).
func (*AwsElasticContainerRegistry) GetID ¶
func (r *AwsElasticContainerRegistry) GetID() string
GetID returns the ID value of the resource.
func (*AwsElasticContainerRegistry) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*AwsElasticContainerRegistry) GetModifiedBy ¶
func (r *AwsElasticContainerRegistry) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*AwsElasticContainerRegistry) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*AwsElasticContainerRegistry) Validate ¶
func (a *AwsElasticContainerRegistry) Validate() error
Validate checks the state of this Amazon Web Services (AWS) Elastic Container Registry (ECR) and returns an error if invalid.
type AzureCloudServiceEndpoint ¶
type AzureCloudServiceEndpoint struct { AccountID string `json:"AccountId"` CloudServiceName string `json:"CloudServiceName"` DefaultWorkerPoolID string `json:"DefaultWorkerPoolId"` Slot string `json:"Slot"` StorageAccountName string `json:"StorageAccountName"` SwapIfPossible bool `json:"SwapIfPossible"` UseCurrentInstanceCount bool `json:"UseCurrentInstanceCount"` // contains filtered or unexported fields }
AzureCloudServiceEndpoint represents an Azure cloud service endpoint.
func NewAzureCloudServiceEndpoint ¶
func NewAzureCloudServiceEndpoint() *AzureCloudServiceEndpoint
NewAzureCloudServiceEndpoint creates and initializes a new Azure cloud service endpoint.
func (AzureCloudServiceEndpoint) GetAccountID ¶
func (a AzureCloudServiceEndpoint) GetAccountID() string
GetAccountID returns the account ID associated with this Azure cloud service endpoint.
func (AzureCloudServiceEndpoint) GetCommunicationStyle ¶
func (e AzureCloudServiceEndpoint) GetCommunicationStyle() string
GetCommunicationStyle returns the communication style of this endpoint.
func (AzureCloudServiceEndpoint) GetDefaultWorkerPoolID ¶
func (a AzureCloudServiceEndpoint) GetDefaultWorkerPoolID() string
GetDefaultWorkerPoolID returns the default worker pool ID of this Azure cloud service endpoint.
func (AzureCloudServiceEndpoint) SetDefaultWorkerPoolID ¶
func (a AzureCloudServiceEndpoint) SetDefaultWorkerPoolID(defaultWorkerPoolID string)
SetDefaultWorkerPoolID sets the default worker pool ID of this Azure cloud service endpoint.
type AzureServicePrincipalAccount ¶
type AzureServicePrincipalAccount struct { ApplicationID *uuid.UUID `validate:"required"` ApplicationPassword *SensitiveValue `validate:"required"` AuthenticationEndpoint string `validate:"required_with=AzureEnvironment,omitempty,uri"` AzureEnvironment string `validate:"omitempty,oneof=AzureCloud AzureChinaCloud AzureGermanCloud AzureUSGovernment"` ResourceManagerEndpoint string `validate:"required_with=AzureEnvironment,omitempty,uri"` SubscriptionID *uuid.UUID `validate:"required"` TenantID *uuid.UUID `validate:"required"` // contains filtered or unexported fields }
AzureServicePrincipalAccount represents an Azure service principal account.
func NewAzureServicePrincipalAccount ¶
func NewAzureServicePrincipalAccount(name string, subscriptionID uuid.UUID, tenantID uuid.UUID, applicationID uuid.UUID, applicationPassword *SensitiveValue, options ...func(*AzureServicePrincipalAccount)) (*AzureServicePrincipalAccount, error)
NewAzureServicePrincipalAccount creates and initializes an Azure service principal account.
func (*AzureServicePrincipalAccount) GetAccountType ¶
func (a *AzureServicePrincipalAccount) GetAccountType() AccountType
GetAccountType returns the type of this account.
func (*AzureServicePrincipalAccount) GetDescription ¶
func (a *AzureServicePrincipalAccount) GetDescription() string
GetDescription returns the description of the account.
func (*AzureServicePrincipalAccount) GetEnvironmentIDs ¶
func (a *AzureServicePrincipalAccount) GetEnvironmentIDs() []string
func (*AzureServicePrincipalAccount) GetName ¶
func (a *AzureServicePrincipalAccount) GetName() string
GetName returns the name of the account.
func (*AzureServicePrincipalAccount) GetSpaceID ¶
func (a *AzureServicePrincipalAccount) GetSpaceID() string
GetSpaceID returns the space ID of this account.
func (*AzureServicePrincipalAccount) GetTenantIDs ¶
func (a *AzureServicePrincipalAccount) GetTenantIDs() []string
func (*AzureServicePrincipalAccount) GetTenantTags ¶
func (a *AzureServicePrincipalAccount) GetTenantTags() []string
func (*AzureServicePrincipalAccount) GetTenantedDeploymentMode ¶
func (a *AzureServicePrincipalAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
func (*AzureServicePrincipalAccount) SetDescription ¶
func (a *AzureServicePrincipalAccount) SetDescription(description string)
SetDescription sets the description of the account.
func (*AzureServicePrincipalAccount) SetName ¶
func (a *AzureServicePrincipalAccount) SetName(name string)
SetName sets the name of the account.
func (*AzureServicePrincipalAccount) SetSpaceID ¶
func (a *AzureServicePrincipalAccount) SetSpaceID(spaceID string)
SetSpaceID sets the space ID of this account.
func (*AzureServicePrincipalAccount) Validate ¶
func (a *AzureServicePrincipalAccount) Validate() error
Validate checks the state of this Azure service principal account and returns an error if invalid.
type AzureSubscriptionAccount ¶
type AzureSubscriptionAccount struct { AzureEnvironment string `validate:"omitempty,oneof=AzureCloud AzureChinaCloud AzureGermanCloud AzureUSGovernment"` CertificateBytes *SensitiveValue CertificateThumbprint string ManagementEndpoint string `validate:"omitempty,uri"` StorageEndpointSuffix string `validate:"omitempty,hostname"` SubscriptionID *uuid.UUID `validate:"required"` // contains filtered or unexported fields }
AzureSubscriptionAccount represents an Azure subscription account.
func NewAzureSubscriptionAccount ¶
func NewAzureSubscriptionAccount(name string, subscriptionID uuid.UUID, options ...func(*AzureSubscriptionAccount)) (*AzureSubscriptionAccount, error)
NewAzureSubscriptionAccount creates and initializes an Azure subscription account with a name.
func (*AzureSubscriptionAccount) GetAccountType ¶
func (a *AzureSubscriptionAccount) GetAccountType() AccountType
GetAccountType returns the type of this account.
func (*AzureSubscriptionAccount) GetDescription ¶
func (a *AzureSubscriptionAccount) GetDescription() string
GetDescription returns the description of the account.
func (*AzureSubscriptionAccount) GetEnvironmentIDs ¶
func (a *AzureSubscriptionAccount) GetEnvironmentIDs() []string
func (*AzureSubscriptionAccount) GetName ¶
func (a *AzureSubscriptionAccount) GetName() string
GetName returns the name of the account.
func (*AzureSubscriptionAccount) GetSpaceID ¶
func (a *AzureSubscriptionAccount) GetSpaceID() string
GetSpaceID returns the space ID of this account.
func (*AzureSubscriptionAccount) GetTenantIDs ¶
func (a *AzureSubscriptionAccount) GetTenantIDs() []string
func (*AzureSubscriptionAccount) GetTenantTags ¶
func (a *AzureSubscriptionAccount) GetTenantTags() []string
func (*AzureSubscriptionAccount) GetTenantedDeploymentMode ¶
func (a *AzureSubscriptionAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
func (*AzureSubscriptionAccount) SetDescription ¶
func (a *AzureSubscriptionAccount) SetDescription(description string)
SetDescription sets the description of the account.
func (*AzureSubscriptionAccount) SetName ¶
func (a *AzureSubscriptionAccount) SetName(name string)
SetName sets the name of the account.
func (*AzureSubscriptionAccount) SetSpaceID ¶
func (a *AzureSubscriptionAccount) SetSpaceID(spaceID string)
SetSpaceID sets the space ID of this account.
func (*AzureSubscriptionAccount) Validate ¶
func (a *AzureSubscriptionAccount) Validate() error
Validate checks the state of this account and returns an error if invalid.
type AzureWebAppEndpoint ¶
type AzureWebAppEndpoint struct { ResourceGroupName string `json:"ResourceGroupName,omitempty"` WebAppName string `json:"WebAppName,omitempty"` WebAppSlotName int `json:"WebAppSlotName"` // contains filtered or unexported fields }
AzureWebAppEndpoint represents the an Azure web app-based endpoint.
func NewAzureWebAppEndpoint ¶
func NewAzureWebAppEndpoint() *AzureWebAppEndpoint
NewAzureWebAppEndpoint creates a new endpoint for Azure web apps.
func (AzureWebAppEndpoint) GetCommunicationStyle ¶
func (e AzureWebAppEndpoint) GetCommunicationStyle() string
GetCommunicationStyle returns the communication style of this endpoint.
type BuildInformation ¶
type BuildInformation struct { Branch string `json:"Branch,omitempty"` BuildEnvironment string `json:"BuildEnvironment,omitempty"` BuildNumber string `json:"BuildNumber,omitempty"` BuildURL string `json:"BuildUrl,omitempty"` Commits []*CommitDetails `json:"Commits"` Created time.Time `json:"Created,omitempty"` IncompleteDataWarning string `json:"IncompleteDataWarning,omitempty"` IssueTrackerName string `json:"IssueTrackerName,omitempty"` PackageID string `json:"PackageId,omitempty"` VcsCommitNumber string `json:"VcsCommitNumber,omitempty"` VcsCommitURL string `json:"VcsCommitUrl,omitempty"` VcsRoot string `json:"VcsRoot,omitempty"` VcsType string `json:"VcsType,omitempty"` Version string `json:"Version,omitempty"` WorkItems []*WorkItemLink `json:"WorkItems"` // contains filtered or unexported fields }
func NewBuildInformation ¶
func NewBuildInformation() *BuildInformation
func (*BuildInformation) GetID ¶
func (r *BuildInformation) GetID() string
GetID returns the ID value of the resource.
func (*BuildInformation) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*BuildInformation) GetModifiedBy ¶
func (r *BuildInformation) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*BuildInformation) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type BuildInformationBulkQuery ¶
type BuildInformationBulkQuery struct {
IDs []string `uri:"ids,omitempty" url:"ids,omitempty"`
}
type BuildInformationQuery ¶
type BuildInformationQuery struct { Filter string `uri:"filter,omitempty" url:"filter,omitempty"` Latest string `uri:"latest,omitempty" url:"latest,omitempty"` OverwriteMode string `uri:"overwriteMode,omitempty" url:"overwriteMode,omitempty"` PackageID string `uri:"packageId,omitempty" url:"packageId,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type BuiltInFeed ¶
type BuiltInFeed struct { DeleteUnreleasedPackagesAfterDays *int `json:"DeleteUnreleasedPackagesAfterDays,omitempty"` DownloadAttempts int `json:"DownloadAttempts"` DownloadRetryBackoffSeconds int `json:"DownloadRetryBackoffSeconds"` IsBuiltInRepoSyncEnabled bool `json:"IsBuiltInRepoSyncEnabled"` Feed }
BuiltInFeed represents a built-in feed.
func NewBuiltInFeed ¶
func NewBuiltInFeed(name string, feedURI string) *BuiltInFeed
NewBuiltInFeed creates and initializes a built-in feed.
func (*BuiltInFeed) GetID ¶
func (r *BuiltInFeed) GetID() string
GetID returns the ID value of the resource.
func (*BuiltInFeed) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*BuiltInFeed) GetModifiedBy ¶
func (r *BuiltInFeed) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*BuiltInFeed) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*BuiltInFeed) Validate ¶
func (b *BuiltInFeed) Validate() error
Validate checks the state of this built-in feed and returns an error if invalid.
type BuiltInFeedStatistics ¶
type BuiltInFeedStatistics struct { TotalPackages int32 `json:"TotalPackages,omitempty"` // contains filtered or unexported fields }
func (*BuiltInFeedStatistics) GetID ¶
func (r *BuiltInFeedStatistics) GetID() string
GetID returns the ID value of the resource.
func (*BuiltInFeedStatistics) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*BuiltInFeedStatistics) GetModifiedBy ¶
func (r *BuiltInFeedStatistics) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*BuiltInFeedStatistics) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type CertificateResource ¶
type CertificateResource struct { Archived string `json:"Archived,omitempty"` CertificateData *SensitiveValue `json:"CertificateData,omitempty" validate:"required"` CertificateDataFormat string `json:"CertificateDataFormat,omitempty"` EnvironmentIDs []string `json:"EnvironmentIds,omitempty"` HasPrivateKey bool `json:"HasPrivateKey,omitempty"` IsExpired bool `json:"IsExpired,omitempty"` IssuerCommonName string `json:"IssuerCommonName,omitempty"` IssuerDistinguishedName string `json:"IssuerDistinguishedName,omitempty"` IssuerOrganization string `json:"IssuerOrganization,omitempty"` Name string `json:"Name,omitempty" validate:"required"` NotAfter string `json:"NotAfter,omitempty"` NotBefore string `json:"NotBefore,omitempty"` Notes string `json:"Notes,omitempty"` Password *SensitiveValue `json:"Password,omitempty"` ReplacedBy string `json:"ReplacedBy,omitempty"` SerialNumber string `json:"SerialNumber,omitempty"` SignatureAlgorithmName string `json:"SignatureAlgorithmName,omitempty"` SubjectAlternativeNames []string `json:"SubjectAlternativeNames,omitempty"` SubjectDistinguishedName string `json:"SubjectDistinguishedName,omitempty"` SubjectCommonName string `json:"SubjectCommonName,omitempty"` SubjectOrganization string `json:"SubjectOrganization,omitempty"` SelfSigned bool `json:"SelfSigned,omitempty"` TenantedDeploymentMode TenantedDeploymentMode `json:"TenantedDeploymentParticipation"` TenantIDs []string `json:"TenantIds,omitempty"` TenantTags []string `json:"TenantTags,omitempty"` Thumbprint string `json:"Thumbprint,omitempty"` Version int `json:"Version,omitempty"` // contains filtered or unexported fields }
func NewCertificateResource ¶
func NewCertificateResource(name string, certificateData *SensitiveValue, password *SensitiveValue) *CertificateResource
NewCertificateResource initializes a certificate resource with a name and credentials.
func (*CertificateResource) GetID ¶
func (r *CertificateResource) GetID() string
GetID returns the ID value of the resource.
func (*CertificateResource) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*CertificateResource) GetModifiedBy ¶
func (r *CertificateResource) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*CertificateResource) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (CertificateResource) Validate ¶
func (c CertificateResource) Validate() error
Validate checks the state of the certificate resource and returns an error if invalid.
type CertificateResources ¶
type CertificateResources struct { Items []*CertificateResource `json:"Items"` PagedResults }
type CertificatesQuery ¶
type CertificatesQuery struct { Archived string `uri:"archived,omitempty" url:"archived,omitempty"` FirstResult string `uri:"firstResult,omitempty" url:"firstResult,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` OrderBy string `uri:"orderBy,omitempty" url:"orderBy,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Search string `uri:"search,omitempty" url:"search,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` Tenant string `uri:"tenant,omitempty" url:"tenant,omitempty"` }
type Channel ¶
type Channel struct { Description string `json:"Description,omitempty"` IsDefault bool `json:"IsDefault"` LifecycleID string `json:"LifecycleId,omitempty"` Name string `json:"Name" validate:"required,notblank,notall"` ProjectID string `json:"ProjectId" validate:"required,notblank"` Rules []ChannelRule `json:"Rules,omitempty"` TenantTags []string `json:"TenantTags,omitempty"` // contains filtered or unexported fields }
func (*Channel) GetID ¶
func (r *Channel) GetID() string
GetID returns the ID value of the resource.
func (*Channel) GetModifiedBy ¶
func (r *Channel) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Channel) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type ChannelRule ¶
type ChannelRule struct { Actions []string `json:"Actions,omitempty"` ID string `json:"Id,omitempty"` Tag string `json:"Tag,omitempty"` //Use the NuGet or Maven versioning syntax (depending on the feed type) //to specify the range of versions to include VersionRange string `json:"VersionRange,omitempty"` }
type Channels ¶
type Channels struct { Items []*Channel `json:"Items"` PagedResults }
Channels defines a collection of channels with built-in support for paged results.
type ChannelsQuery ¶
type Client ¶
type Client struct { Accounts *accountService ActionTemplates *actionTemplateService APIKeys *apiKeyService Artifacts *artifactService Authentication *authenticationService AzureDevOpsConnectivityCheck *azureDevOpsConnectivityCheckService AzureEnvironments *azureEnvironmentService BuildInformation *buildInformationService CertificateConfiguration *certificateConfigurationService Certificates *certificateService Channels *channelService CloudTemplate *cloudTemplateService CommunityActionTemplates *communityActionTemplateService Configuration *configurationService DashboardConfigurations *dashboardConfigurationService Dashboards *dashboardService DeploymentProcesses *deploymentProcessService Deployments *deploymentService DynamicExtensions *dynamicExtensionService Environments *environmentService Events *eventService ExternalSecurityGroupProviders *externalSecurityGroupProviderService FeaturesConfiguration *featuresConfigurationService Feeds *feedService Interruptions *interruptionService Invitations *invitationService IssueTrackers *issueTrackerService JiraIntegration *jiraIntegrationService LetsEncryptConfiguration *letsEncryptConfigurationService LibraryVariableSets *libraryVariableSetService Licenses *licenseService Lifecycles *lifecycleService MachinePolicies *machinePolicyService MachineRoles *machineRoleService Machines *machineService MaintenanceConfiguration *maintenanceConfigurationService Migrations *migrationService OctopusPackageMetadata *octopusPackageMetadataService OctopusServerNodes *octopusServerNodeService Packages *packageService PackageMetadata *packageMetadataService PerformanceConfiguration *performanceConfigurationService Permissions *permissionService ProjectGroups *projectGroupService Projects *projectService ProjectTriggers *projectTriggerService Proxies *proxyService Releases *releaseService Reporting *reportingService RunbookProcesses *runbookProcessService RunbookRuns *runbookRunService Runbooks *runbookService RunbookSnapshots *runbookSnapshotService Root *rootService ScheduledProjectTriggers *scheduledProjectTriggerService Scheduler *schedulerService ScopedUserRoles *scopedUserRoleService ServerConfiguration *serverConfigurationService ServerStatus *serverStatuService SMTPConfiguration *smtpConfigurationService Spaces *spaceService Subscriptions *subscriptionService TagSets *tagSetService Tasks *taskService TeamMembership *teamMembershipService Teams *teamService Tenants *tenantService TenantVariables *tenantVariableService UpgradeConfiguration *upgradeConfigurationService UserOnboarding *userOnboardingService UserRoles *userRoleService Users *userService Variables *variableService WorkerPools *workerPoolService Workers *workerService WorkerToolsLatestImages *workerToolsLatestImageService // contains filtered or unexported fields }
Client is an OctopusDeploy for making Octopus API requests.
type CloudRegionEndpoint ¶
type CloudRegionEndpoint struct { DefaultWorkerPoolID string `json:"DefaultWorkerPoolId"` // contains filtered or unexported fields }
CloudRegionEndpoint represents a cloud service endpoint.
func NewCloudRegionEndpoint ¶
func NewCloudRegionEndpoint() *CloudRegionEndpoint
NewCloudRegionEndpoint creates and initializes a new cloud service endpoint.
func (CloudRegionEndpoint) GetCommunicationStyle ¶
func (e CloudRegionEndpoint) GetCommunicationStyle() string
GetCommunicationStyle returns the communication style of this endpoint.
func (CloudRegionEndpoint) GetDefaultWorkerPoolID ¶
func (e CloudRegionEndpoint) GetDefaultWorkerPoolID() string
GetDefaultWorkerPoolID returns the default worker pool ID of this endpoint.
func (CloudRegionEndpoint) SetDefaultWorkerPoolID ¶
func (e CloudRegionEndpoint) SetDefaultWorkerPoolID(defaultWorkerPoolID string)
SetDefaultWorkerPoolID sets the default worker pool ID of this endpoint.
type CloudServiceEndpoint ¶
type CloudServiceEndpoint struct { CloudServiceName string `json:"CloudServiceName,omitempty"` Slot string `json:"Slot,omitempty"` StorageAccountName string `json:"StorageAccountName,omitempty"` SwapIfPossible bool `json:"SwapIfPossible"` UseCurrentInstanceCount bool `json:"UseCurrentInstanceCount"` // contains filtered or unexported fields }
func NewCloudServiceEndpoint ¶
func NewCloudServiceEndpoint() *CloudServiceEndpoint
func (CloudServiceEndpoint) GetCommunicationStyle ¶
func (e CloudServiceEndpoint) GetCommunicationStyle() string
GetCommunicationStyle returns the communication style of this endpoint.
type CloudTemplateQuery ¶
type CommitDetails ¶
type CommitDetails struct { Comment string `json:"Comment,omitempty"` ID string `json:"Id,omitempty"` LinkURL string `json:"LinkUrl,omitempty"` }
func NewCommitDetails ¶
func NewCommitDetails() *CommitDetails
type CommunicationStyle ¶
type CommunicationStyle string
const ( CommunicationStyleAzureCloudService CommunicationStyle = "AzureCloudService" CommunicationStyleAzureServiceFabricCluster CommunicationStyle = "AzureServiceFabricCluster" CommunicationStyleFtp CommunicationStyle = "Ftp" CommunicationStyleKubernetes CommunicationStyle = "Kubernetes" CommunicationStyleNone CommunicationStyle = "None" CommunicationStyleOfflineDrop CommunicationStyle = "OfflineDrop" CommunicationStyleSSH CommunicationStyle = "Ssh" CommunicationStyleTentacleActive CommunicationStyle = "TentacleActive" CommunicationStyleTentaclePassive CommunicationStyle = "TentaclePassive" )
type CommunityActionTemplate ¶
type CommunityActionTemplate struct { Author string `json:"Author,omitempty"` Description string `json:"Description,omitempty"` HistoryURL string `json:"HistoryUrl,omitempty"` Name string `json:"Name" validate:"required"` Parameters []ActionTemplateParameter `json:"Parameters"` Properties map[string]PropertyValueResource `json:"Properties,omitempty"` Type string `json:"Type,omitempty"` Version int32 `json:"Version,omitempty"` Website string `json:"Website,omitempty"` // contains filtered or unexported fields }
func NewCommunityActionTemplate ¶
func NewCommunityActionTemplate(name string) *CommunityActionTemplate
NewCommunityActionTemplate initializes a community action template.
func (*CommunityActionTemplate) GetID ¶
func (r *CommunityActionTemplate) GetID() string
GetID returns the ID value of the resource.
func (*CommunityActionTemplate) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*CommunityActionTemplate) GetModifiedBy ¶
func (r *CommunityActionTemplate) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*CommunityActionTemplate) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*CommunityActionTemplate) Validate ¶
func (c *CommunityActionTemplate) Validate() error
Validate checks the state of the lifecycle and returns an error if invalid.
type CommunityActionTemplates ¶
type CommunityActionTemplates struct { Items []*CommunityActionTemplate `json:"Items"` PagedResults }
type ConfigurationSection ¶
type ConfigurationSection struct { Description string `json:"Description,omitempty"` Name string `json:"Name,omitempty"` // contains filtered or unexported fields }
func NewConfigurationSection ¶
func NewConfigurationSection() *ConfigurationSection
func (*ConfigurationSection) GetID ¶
func (r *ConfigurationSection) GetID() string
GetID returns the ID value of the resource.
func (*ConfigurationSection) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*ConfigurationSection) GetModifiedBy ¶
func (r *ConfigurationSection) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*ConfigurationSection) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type ConfigurationSections ¶
type ConfigurationSections struct { Items []*ConfigurationSection `json:"Items"` PagedResults }
type ConnectivityCheck ¶
type ConnectivityCheck struct { DependsOnPropertyNames []string `json:"DependsOnPropertyNames"` Title string `json:"Title,omitempty"` URL string `json:"Url,omitempty"` }
func NewConnectivityCheck ¶
func NewConnectivityCheck() *ConnectivityCheck
type DashboardDynamicQuery ¶
type DashboardItem ¶
type DashboardItem struct { ChannelID string `json:"ChannelId,omitempty"` CompletedTime *time.Time `json:"CompletedTime,omitempty"` Created *time.Time `json:"Created,omitempty"` DeploymentID string `json:"DeploymentId,omitempty"` Duration string `json:"Duration,omitempty"` EnvironmentID string `json:"EnvironmentId,omitempty"` ErrorMessage string `json:"ErrorMessage,omitempty"` HasPendingInterruptions bool `json:"HasPendingInterruptions,omitempty"` HasWarningsOrErrors bool `json:"HasWarningsOrErrors,omitempty"` IsCompleted bool `json:"IsCompleted,omitempty"` IsCurrent bool `json:"IsCurrent,omitempty"` IsPrevious bool `json:"IsPrevious,omitempty"` ProjectID string `json:"ProjectId,omitempty"` QueueTime *time.Time `json:"QueueTime,omitempty"` ReleaseID string `json:"ReleaseId,omitempty"` ReleaseVersion string `json:"ReleaseVersion,omitempty"` StartTime *time.Time `json:"StartTime,omitempty"` // Enum: [Canceled Cancelling Executing Failed Queued Success TimedOut] State string `json:"State,omitempty"` TaskID string `json:"TaskId,omitempty"` TenantID string `json:"TenantId,omitempty"` }
type DashboardQuery ¶
type DashboardQuery struct { IncludeLatest bool `url:"highestLatestVersionPerProjectAndEnvironment"` ProjectID string `uri:"projectId,omitempty" url:"projectId,omitempty"` SelectedTags []string `uri:"selectedTags,omitempty" url:"selectedTags,omitempty"` SelectedTenants []string `uri:"selectedTenants,omitempty" url:"selectedTenants,omitempty"` ShowAll bool `uri:"showAll,omitempty" url:"showAll,omitempty"` ReleaseID string `uri:"releaseId,omitempty" url:"releaseId,omitempty"` }
type Deployment ¶
type Deployment struct { Changes []*ReleaseChanges `json:"Changes"` ChangesMarkdown string `json:"ChangesMarkdown,omitempty"` ChannelID string `json:"ChannelId,omitempty"` Comments string `json:"Comments,omitempty"` Created *time.Time `json:"Created,omitempty"` DeployedBy string `json:"DeployedBy,omitempty"` DeployedByID string `json:"DeployedById,omitempty"` DeployedToMachineIDs []string `json:"DeployedToMachineIds"` DeploymentProcessID string `json:"DeploymentProcessId,omitempty"` EnvironmentID *string `json:"EnvironmentId" validate:"required"` ExcludedMachineIDs []string `json:"ExcludedMachineIds"` FailureEncountered bool `json:"FailureEncountered,omitempty"` ForcePackageDownload bool `json:"ForcePackageDownload,omitempty"` ForcePackageRedeployment bool `json:"ForcePackageRedeployment,omitempty"` FormValues map[string]string `json:"FormValues,omitempty"` ManifestVariableSetID string `json:"ManifestVariableSetId,omitempty"` Name string `json:"Name,omitempty"` ProjectID string `json:"ProjectId,omitempty"` QueueTime *time.Time `json:"QueueTime,omitempty"` QueueTimeExpiry *time.Time `json:"QueueTimeExpiry,omitempty"` ReleaseID *string `json:"ReleaseId" validate:"required"` SkipActions []string `json:"SkipActions"` SpaceID string `json:"SpaceId,omitempty"` SpecificMachineIDs []string `json:"SpecificMachineIds"` TaskID string `json:"TaskId,omitempty"` TenantID string `json:"TenantId,omitempty"` TentacleRetentionPeriod *RetentionPeriod `json:"TentacleRetentionPeriod,omitempty"` UseGuidedFailure bool `json:"UseGuidedFailure,omitempty"` // contains filtered or unexported fields }
func NewDeployment ¶
func NewDeployment(name string, environmentID string, releaseID string) *Deployment
NewDeployment initializes a deployment with a name, environment ID, and release ID.
func (*Deployment) GetID ¶
func (r *Deployment) GetID() string
GetID returns the ID value of the resource.
func (*Deployment) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*Deployment) GetModifiedBy ¶
func (r *Deployment) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Deployment) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*Deployment) Validate ¶
func (d *Deployment) Validate() error
Validate checks the state of the deployment and returns an error if invalid.
type DeploymentAction ¶
type DeploymentAction struct { ActionType string `json:"ActionType"` CanBeUsedForProjectVersioning bool `json:"CanBeUsedForProjectVersioning"` Channels []string `json:"Channels,omitempty"` Environments []string `json:"Environments,omitempty"` ExcludedEnvironments []string `json:"ExcludedEnvironments,omitempty"` ID string `json:"Id,omitempty"` IsDisabled bool `json:"IsDisabled"` IsRequired bool `json:"IsRequired"` Name string `json:"Name"` Packages []PackageReference `json:"Packages,omitempty"` Properties map[string]string `json:"Properties"` // TODO: refactor to use the PropertyValueResource for handling sensitive values - https://blog.gopheracademy.com/advent-2016/advanced-encoding-decoding/ TenantTags []string `json:"TenantTags,omitempty"` WorkerPoolID string `json:"WorkerPoolId,omitempty"` ContainerImage string `json:"ContainerImage"` }
func NewDeploymentAction ¶
func NewDeploymentAction(name string) *DeploymentAction
NewDeploymentAction initializes a DeploymentAction with a name.
type DeploymentProcess ¶
type DeploymentProcess struct { LastSnapshotID string `json:"LastSnapshotId,omitempty"` ProjectID string `json:"ProjectId,omitempty"` Steps []DeploymentStep `json:"Steps,omitempty"` Version int32 `json:"Version"` // contains filtered or unexported fields }
func NewDeploymentProcess ¶
func NewDeploymentProcess(projectID string) *DeploymentProcess
NewDeploymentProcess initializes a deployment process.
func (*DeploymentProcess) GetID ¶
func (r *DeploymentProcess) GetID() string
GetID returns the ID value of the resource.
func (*DeploymentProcess) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*DeploymentProcess) GetModifiedBy ¶
func (r *DeploymentProcess) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*DeploymentProcess) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type DeploymentProcesses ¶
type DeploymentProcesses struct { Items []*DeploymentProcess `json:"Items"` PagedResults }
type DeploymentQuery ¶
type DeploymentStep ¶
type DeploymentStep struct { Actions []DeploymentAction `json:"Actions,omitempty"` Condition DeploymentStepConditionType `json:"Condition,omitempty"` // variable option adds a Property "Octopus.Action.ConditionVariableExpression" Name string `json:"Name"` PackageRequirement DeploymentStepPackageRequirement `json:"PackageRequirement,omitempty"` Properties map[string]string `json:"Properties"` // TODO: refactor to use the PropertyValueResource for handling sensitive values - https://blog.gopheracademy.com/advent-2016/advanced-encoding-decoding/ StartTrigger DeploymentStepStartTrigger `json:"StartTrigger,omitempty" validate:"required,oneof=StartAfterPrevious StartWithPrevious"` // contains filtered or unexported fields }
func NewDeploymentStep ¶
func NewDeploymentStep(name string) *DeploymentStep
NewDeploymentStep initializes a DeploymentStep with a name.
func (*DeploymentStep) GetID ¶
func (r *DeploymentStep) GetID() string
GetID returns the ID value of the resource.
func (*DeploymentStep) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*DeploymentStep) GetModifiedBy ¶
func (r *DeploymentStep) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*DeploymentStep) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (DeploymentStep) Validate ¶
func (d DeploymentStep) Validate() error
Validate checks the state of the deployment step and returns an error if invalid.
type DeploymentStepConditionType ¶
type DeploymentStepConditionType string
const ( DeploymentStepConditionTypeSuccess DeploymentStepConditionType = "Success" DeploymentStepConditionTypeFailure DeploymentStepConditionType = "Failure" DeploymentStepConditionTypeAlways DeploymentStepConditionType = "Always" DeploymentStepConditionTypeVariable DeploymentStepConditionType = "Variable" )
type DeploymentStepPackageRequirement ¶
type DeploymentStepPackageRequirement string
const ( DeploymentStepPackageRequirementLetOctopusDecide DeploymentStepPackageRequirement = "LetOctopusDecide" DeploymentStepPackageRequirementBeforePackageAcquisition DeploymentStepPackageRequirement = "BeforePackageAcquisition" DeploymentStepPackageRequirementAfterPackageAcquisition DeploymentStepPackageRequirement = "AfterPackageAcquisition" )
type DeploymentStepStartTrigger ¶
type DeploymentStepStartTrigger string
const ( DeploymentStepStartTriggerStartAfterPrevious DeploymentStepStartTrigger = "StartAfterPrevious" DeploymentStepStartTriggerStartWithPrevious DeploymentStepStartTrigger = "StartWithPrevious" )
type DeploymentTarget ¶
type DeploymentTarget struct { EnvironmentIDs []string `json:"EnvironmentIds"` Roles []string `json:"Roles"` SpaceID string `json:"SpaceId,omitempty"` TenantedDeploymentMode TenantedDeploymentMode `json:"TenantedDeploymentParticipation,omitempty"` TenantIDs []string `json:"TenantIds"` TenantTags []string `json:"TenantTags"` // contains filtered or unexported fields }
func NewDeploymentTarget ¶
func NewDeploymentTarget(name string, endpoint IEndpoint, environmentIDs []string, roles []string) *DeploymentTarget
func (*DeploymentTarget) MarshalJSON ¶
func (d *DeploymentTarget) MarshalJSON() ([]byte, error)
MarshalJSON returns a deployment target as its JSON encoding.
func (*DeploymentTarget) UnmarshalJSON ¶
func (resource *DeploymentTarget) UnmarshalJSON(b []byte) error
UnmarshalJSON sets this deployment target to its representation in JSON.
func (*DeploymentTarget) Validate ¶
func (d *DeploymentTarget) Validate() error
Validate checks the state of the deployment target and returns an error if invalid.
type DeploymentTargets ¶
type DeploymentTargets struct { Items []*DeploymentTarget `json:"Items"` PagedResults }
DeploymentTargets defines a collection of deployment targets with built-in support for paged results from the API.
type Deployments ¶
type Deployments struct { Items []*Deployment `json:"Items"` PagedResults }
Deployments defines a collection of deployment instances with built-in support for paged results.
type DeploymentsQuery ¶
type DeploymentsQuery struct { Channels string `uri:"channels,omitempty" url:"channels,omitempty"` 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"` 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 DiscoverMachineQuery ¶
type DiscoverWorkerQuery ¶
type DisplayInfo ¶
type DisplayInfo struct { ConnectivityCheck *ConnectivityCheck `json:"ConnectivityCheck,omitempty"` Description string `json:"Description,omitempty"` Label string `json:"Label,omitempty"` ListAPI *ListAPIMetadata `json:"ListApi,omitempty"` Options *OptionsMetadata `json:"Options,omitempty"` PropertyApplicability *PropertyApplicability `json:"PropertyApplicability,omitempty"` ReadOnly bool `json:"ReadOnly,omitempty"` Required bool `json:"Required,omitempty"` ShowCopyToClipboard bool `json:"ShowCopyToClipboard,omitempty"` }
func NewDisplayInfo ¶
func NewDisplayInfo() *DisplayInfo
type DockerContainerRegistry ¶
type DockerContainerRegistry struct { APIVersion string `json:"ApiVersion,omitempty"` FeedURI string `json:"FeedUri,omitempty"` RegistryPath string `json:"RegistryPath,omitempty"` Feed }
DockerContainerRegistry represents a Docker container registry.
func NewDockerContainerRegistry ¶
func NewDockerContainerRegistry(name string) *DockerContainerRegistry
NewDockerContainerRegistry creates and initializes a Docker container registry.
func (*DockerContainerRegistry) GetID ¶
func (r *DockerContainerRegistry) GetID() string
GetID returns the ID value of the resource.
func (*DockerContainerRegistry) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*DockerContainerRegistry) GetModifiedBy ¶
func (r *DockerContainerRegistry) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*DockerContainerRegistry) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*DockerContainerRegistry) Validate ¶
func (d *DockerContainerRegistry) Validate() error
Validate checks the state of this Docker container registry and returns an error if invalid.
type DynamicWorkerPool ¶
type DynamicWorkerPool struct { WorkerPoolType WorkerPoolType `json:"WorkerPoolType"` WorkerType WorkerType `json:"WorkerType"` WorkerPool }
func NewDynamicWorkerPool ¶
func NewDynamicWorkerPool(name string, workerType WorkerType) (*DynamicWorkerPool, error)
NewDynamicWorkerPool creates and initializes a dynamic worker pool.
func (*DynamicWorkerPool) GetID ¶
func (r *DynamicWorkerPool) GetID() string
GetID returns the ID value of the resource.
func (*DynamicWorkerPool) GetIsDefault ¶
func (d *DynamicWorkerPool) GetIsDefault() bool
func (*DynamicWorkerPool) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*DynamicWorkerPool) GetModifiedBy ¶
func (r *DynamicWorkerPool) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*DynamicWorkerPool) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*DynamicWorkerPool) GetWorkerPoolType ¶
func (d *DynamicWorkerPool) GetWorkerPoolType() WorkerPoolType
GetWorkerPoolType returns the worker pool type for this worker pool.
func (*DynamicWorkerPool) GetWorkerType ¶
func (d *DynamicWorkerPool) GetWorkerType() WorkerType
GetWorkerType returns the worker type for this worker pool.
func (*DynamicWorkerPool) Validate ¶
func (d *DynamicWorkerPool) Validate() error
Validate checks the state of the dynamic worker pool and returns an error if invalid.
type DynamicWorkerPools ¶
type DynamicWorkerPools struct { Items []*DynamicWorkerPool `json:"Items"` PagedResults }
type EndpointAuthentication ¶
type Environment ¶
type Environment struct { AllowDynamicInfrastructure bool `json:"AllowDynamicInfrastructure"` Description string `json:"Description,omitempty"` Name string `json:"Name" validate:"required"` SortOrder int `json:"SortOrder"` UseGuidedFailure bool `json:"UseGuidedFailure"` // contains filtered or unexported fields }
func NewEnvironment ¶
func NewEnvironment(name string) *Environment
func (*Environment) GetID ¶
func (r *Environment) GetID() string
GetID returns the ID value of the resource.
func (*Environment) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*Environment) GetModifiedBy ¶
func (r *Environment) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Environment) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*Environment) Validate ¶
func (e *Environment) Validate() error
Validate checks the state of the environment and returns an error if invalid.
type Environments ¶
type Environments struct { Items []*Environment `json:"Items"` PagedResults }
type EnvironmentsQuery ¶
type EnvironmentsQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type EnvironmentsSummaryQuery ¶
type EnvironmentsSummaryQuery struct { CommunicationStyles []string `uri:"commStyles,omitempty" url:"commStyles,omitempty"` HealthStatuses []string `uri:"healthStatuses,omitempty" url:"healthStatuses,omitempty"` HideEmptyEnvironments bool `uri:"hideEmptyEnvironments,omitempty" url:"hideEmptyEnvironments,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IsDisabled bool `uri:"isDisabled,omitempty" url:"isDisabled,omitempty"` MachinePartialName string `uri:"machinePartialName,omitempty" url:"machinePartialName,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Roles []string `uri:"roles,omitempty" url:"roles,omitempty"` ShellNames []string `uri:"shellNames,omitempty" url:"shellNames,omitempty"` TenantIDs []string `uri:"tenantIds,omitempty" url:"tenantIds,omitempty"` TenantTags []string `uri:"tenantTags,omitempty" url:"tenantTags,omitempty"` }
type EventCategoriesQuery ¶
type EventCategoriesQuery struct {
AppliesTo string `uri:"appliesTo" url:"appliesTo,omitempty"`
}
type EventGroupsQuery ¶
type EventGroupsQuery struct {
AppliesTo string `uri:"appliesTo" url:"appliesTo,omitempty"`
}
type EventsQuery ¶
type EventsQuery struct { AsCSV string `uri:"asCsv,omitempty" url:"asCsv,omitempty"` DocumentTypes []string `uri:"documentTypes,omitempty" url:"documentTypes,omitempty"` Environments []string `uri:"environments,omitempty" url:"environments,omitempty"` EventAgents []string `uri:"eventAgents,omitempty" url:"eventAgents,omitempty"` EventCategories []string `uri:"eventCategories,omitempty" url:"eventCategories,omitempty"` EventGroups []string `uri:"eventGroups,omitempty" url:"eventGroups,omitempty"` ExcludeDifference bool `uri:"excludeDifference,omitempty" url:"excludeDifference,omitempty"` From string `uri:"from,omitempty" url:"from,omitempty"` FromAutoID string `uri:"fromAutoId,omitempty" url:"fromAutoId,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IncludeSystem bool `uri:"includeSystem,omitempty" url:"includeSystem,omitempty"` Internal string `uri:"interal,omitempty" url:"interal,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` ProjectGroups []string `uri:"projectGroups,omitempty" url:"projectGroups,omitempty"` Projects []string `uri:"projects,omitempty" url:"projects,omitempty"` Regarding string `uri:"regarding,omitempty" url:"regarding,omitempty"` RegardingAny string `uri:"regardingAny,omitempty" url:"regardingAny,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Spaces []string `uri:"spaces,omitempty" url:"spaces,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` Tags []string `uri:"tags,omitempty" url:"tags,omitempty"` Tenants []string `uri:"tenants,omitempty" url:"tenants,omitempty"` To string `uri:"to,omitempty" url:"to,omitempty"` ToAutoID string `uri:"toAutoId,omitempty" url:"toAutoId,omitempty"` User string `uri:"user,omitempty" url:"user,omitempty"` Users []string `uri:"users,omitempty" url:"users,omitempty"` }
type ExtensionSettingsValues ¶
type ExtensionSettingsValues struct { ExtensionID string `json:"ExtensionId,omitempty"` Values interface{} `json:"Values,omitempty"` }
type ExternalUserSearchQuery ¶
type ExternalUserSearchQuery struct {
PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"`
}
type Feed ¶
type Feed struct { Name string `json:"Name" validate:"required,notblank"` FeedType FeedType `json:"FeedType"` SpaceID string `json:"SpaceId,omitempty"` PackageAcquisitionLocationOptions []string `json:"PackageAcquisitionLocationOptions,omitempty"` Password *SensitiveValue `json:"Password,omitempty"` Username string `json:"Username,omitempty"` // contains filtered or unexported fields }
Feed is the embedded struct used for all feeds.
func (*Feed) GetFeedType ¶
GetFeedType returns the type of this feed.
func (*Feed) GetModifiedBy ¶
func (r *Feed) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Feed) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type FeedResource ¶
type FeedResource struct { AccessKey string `json:"AccessKey,omitempty"` APIVersion string `json:"ApiVersion,omitempty"` DeleteUnreleasedPackagesAfterDays *int `json:"DeleteUnreleasedPackagesAfterDays,omitempty"` DownloadAttempts int `json:"DownloadAttempts"` DownloadRetryBackoffSeconds int `json:"DownloadRetryBackoffSeconds"` EnhancedMode bool `json:"EnhancedMode"` FeedType FeedType `json:"FeedType,omitempty"` FeedURI string `json:"FeedUri,omitempty"` IsBuiltInRepoSyncEnabled bool `json:"IsBuiltInRepoSyncEnabled,omitempty"` Name string `json:"Name"` Password *SensitiveValue `json:"Password,omitempty"` PackageAcquisitionLocationOptions []string `json:"PackageAcquisitionLocationOptions,omitempty"` Region string `json:"Region,omitempty"` RegistryPath string `json:"RegistryPath,omitempty"` SecretKey *SensitiveValue `json:"SecretKey,omitempty"` SpaceID string `json:"SpaceId,omitempty"` Username string `json:"Username,omitempty"` // contains filtered or unexported fields }
func NewFeedResource ¶
func NewFeedResource(name string, feedType FeedType) *FeedResource
func (*FeedResource) GetFeedType ¶
func (f *FeedResource) GetFeedType() FeedType
func (*FeedResource) GetID ¶
func (r *FeedResource) GetID() string
GetID returns the ID value of the resource.
func (*FeedResource) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*FeedResource) GetModifiedBy ¶
func (r *FeedResource) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*FeedResource) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*FeedResource) GetName ¶
func (f *FeedResource) GetName() string
func (*FeedResource) SetName ¶
func (f *FeedResource) SetName(name string)
func (FeedResource) Validate ¶
func (f FeedResource) Validate() error
Validate checks the state of the feed resource and returns an error if invalid.
type FeedResources ¶
type FeedResources struct { Items []*FeedResource `json:"Items"` PagedResults }
type Feeds ¶
type Feeds struct { Items []IFeed `json:"Items"` PagedResults }
type FeedsQuery ¶
type FeedsQuery struct { FeedType string `uri:"feedType,omitempty" url:"feedType,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type Form ¶
type Form struct { Elements []*FormElement `json:"Elements"` Values map[string]string `json:"Values,omitempty"` }
type FormElement ¶
type GitHubRepositoryFeed ¶
type GitHubRepositoryFeed struct { DownloadAttempts int `json:"DownloadAttempts"` DownloadRetryBackoffSeconds int `json:"DownloadRetryBackoffSeconds"` FeedURI string `json:"FeedUri,omitempty"` Feed }
GitHubRepositoryFeed represents a GitHub repository feed.
func NewGitHubRepositoryFeed ¶
func NewGitHubRepositoryFeed(name string) *GitHubRepositoryFeed
NewGitHubRepositoryFeed creates and initializes a GitHub repository feed.
func (*GitHubRepositoryFeed) GetID ¶
func (r *GitHubRepositoryFeed) GetID() string
GetID returns the ID value of the resource.
func (*GitHubRepositoryFeed) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*GitHubRepositoryFeed) GetModifiedBy ¶
func (r *GitHubRepositoryFeed) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*GitHubRepositoryFeed) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*GitHubRepositoryFeed) Validate ¶
func (g *GitHubRepositoryFeed) Validate() error
Validate checks the state of this GitHub repository feed and returns an error if invalid.
type HelmFeed ¶
HelmFeed represents a Helm feed.
func NewHelmFeed ¶
NewHelmFeed creates and initializes a Helm feed.
func (*HelmFeed) GetID ¶
func (r *HelmFeed) GetID() string
GetID returns the ID value of the resource.
func (*HelmFeed) GetModifiedBy ¶
func (r *HelmFeed) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*HelmFeed) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type IAccount ¶
type IAccount interface { GetAccountType() AccountType GetDescription() string GetEnvironmentIDs() []string GetTenantedDeploymentMode() TenantedDeploymentMode GetTenantIDs() []string GetTenantTags() []string SetDescription(string) IHasName IHasSpace IResource }
func ToAccount ¶
func ToAccount(accountResource *AccountResource) (IAccount, error)
func ToAccountArray ¶
func ToAccountArray(accountResources []*AccountResource) []IAccount
type IDynamicWorkerPool ¶
type IDynamicWorkerPool interface { GetWorkerType() WorkerType IWorkerPool }
type IEndpoint ¶
type IEndpoint interface {
GetCommunicationStyle() string
}
IEndpoint defines the interface for all endpoints.
type IEndpointWithAccount ¶
type IEndpointWithAccount interface {
GetAccountID() string
}
type IEndpointWithFingerprint ¶
type IEndpointWithFingerprint interface {
GetFingerprint() string
}
type IEndpointWithHostname ¶
type IEndpointWithHostname interface {
GetHost() string
}
type IEndpointWithProxy ¶
type IResource ¶
type IResource interface { GetID() string GetModifiedBy() string GetModifiedOn() *time.Time GetLinks() map[string]string Validate() error }
IResource defines the interface for all resources.
type IRunsOnAWorker ¶
IRunsOnAWorker defines the interface for all workers.
type IService ¶
type IService interface {
// contains filtered or unexported methods
}
IService defines the contract for all services that communicate with the Octopus API.
type IWorkerPool ¶
type IWorkerPool interface { GetWorkerPoolType() WorkerPoolType GetIsDefault() bool IHasName IResource }
type Identity ¶
type Identity struct { Claims map[string]IdentityClaim `json:"Claims,omitempty"` IdentityProviderName string `json:"IdentityProviderName,omitempty"` }
type IdentityClaim ¶
type Interruption ¶
type Interruption struct { CanTakeResponsibility bool `json:"CanTakeResponsibility,omitempty"` CorrelationID string `json:"CorrelationId,omitempty"` Created time.Time `json:"Created,omitempty"` Form *Form `json:"Form,omitempty"` HasResponsibility bool `json:"HasResponsibility"` IsLinkedToOtherInterruption bool `json:"IsLinkedToOtherInterruption"` IsPending bool `json:"IsPending"` RelatedDocumentIDs []string `json:"RelatedDocumentIds"` ResponsibleTeamIDs []string `json:"ResponsibleTeamIds"` ResponsibleUserID string `json:"ResponsibleUserId,omitempty"` SpaceID string `json:"SpaceId,omitempty"` TaskID string `json:"TaskId,omitempty"` Title string `json:"Title,omitempty"` // contains filtered or unexported fields }
func NewInterruption ¶
func NewInterruption() *Interruption
func (*Interruption) GetID ¶
func (r *Interruption) GetID() string
GetID returns the ID value of the resource.
func (*Interruption) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*Interruption) GetModifiedBy ¶
func (r *Interruption) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Interruption) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type InterruptionSubmitRequest ¶
type InterruptionSubmitRequest struct { Instructions string `json:"Instructions"` Notes string `json:"Notes"` Result string `json:"Result"` }
func NewInterruptionSubmitRequest ¶
func NewInterruptionSubmitRequest() *InterruptionSubmitRequest
type Interruptions ¶
type Interruptions struct { Items []*Interruption `json:"Items"` PagedResults }
type InterruptionsQuery ¶
type InterruptionsQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` PendingOnly bool `uri:"pendingOnly,omitempty" url:"pendingOnly,omitempty"` Regarding string `uri:"regarding,omitempty" url:"regarding,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type IssueTrackersQuery ¶
type KubernetesEndpoint ¶
type KubernetesEndpoint struct { Authentication EndpointAuthentication `json:"Authentication,omitempty"` ClusterCertificate string `json:"ClusterCertificate,omitempty"` ClusterURL *url.URL `json:"ClusterUrl" validate:"required,url"` CommunicationStyle string `json:"CommunicationStyle" validate:"required,eq=Kubernetes"` Container DeploymentActionContainer `json:"Container,omitempty"` DefaultWorkerPoolID string `json:"DefaultWorkerPoolId,omitempty"` Namespace string `json:"Namespace,omitempty"` ProxyID string `json:"ProxyId,omitempty"` RunningInContainer bool `json:"RunningInContainer"` SkipTLSVerification bool `json:"SkipTlsVerification"` // contains filtered or unexported fields }
func NewKubernetesEndpoint ¶
func NewKubernetesEndpoint(clusterURL url.URL) *KubernetesEndpoint
NewKubernetesEndpoint creates and initializes a new Kubernetes endpoint.
func (*KubernetesEndpoint) GetCommunicationStyle ¶
func (s *KubernetesEndpoint) GetCommunicationStyle() string
GetCommunicationStyle returns the communication style of this endpoint.
func (*KubernetesEndpoint) GetDefaultWorkerPoolID ¶
func (k *KubernetesEndpoint) GetDefaultWorkerPoolID() string
GetDefaultWorkerPoolID returns the default worker pool ID of this Kubernetes endpoint.
func (*KubernetesEndpoint) GetID ¶
func (r *KubernetesEndpoint) GetID() string
GetID returns the ID value of the resource.
func (*KubernetesEndpoint) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*KubernetesEndpoint) GetModifiedBy ¶
func (r *KubernetesEndpoint) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*KubernetesEndpoint) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*KubernetesEndpoint) GetProxyID ¶
func (k *KubernetesEndpoint) GetProxyID() string
GetProxyID returns the proxy ID associated with this Kubernetes endpoint.
func (*KubernetesEndpoint) MarshalJSON ¶
func (k *KubernetesEndpoint) MarshalJSON() ([]byte, error)
MarshalJSON returns a Kubernetes endpoint as its JSON encoding.
func (*KubernetesEndpoint) SetDefaultWorkerPoolID ¶
func (k *KubernetesEndpoint) SetDefaultWorkerPoolID(defaultWorkerPoolID string)
SetDefaultWorkerPoolID sets the default worker pool ID of this Kubernetes endpoint.
func (*KubernetesEndpoint) SetProxyID ¶
func (k *KubernetesEndpoint) SetProxyID(proxyID string)
SetProxyID sets the proxy ID associated with this Kubernetes endpoint.
func (*KubernetesEndpoint) UnmarshalJSON ¶
func (k *KubernetesEndpoint) UnmarshalJSON(data []byte) error
UnmarshalJSON sets this Kubernetes endpoint to its representation in JSON.
func (*KubernetesEndpoint) Validate ¶
func (k *KubernetesEndpoint) Validate() error
Validate checks the state of the Kubernetes endpoint and returns an error if invalid.
type Library ¶
type Library struct { LibraryVariableSetID string `json:"LibraryVariableSetId,omitempty"` LibraryVariableSetName string `json:"LibraryVariableSetName,omitempty"` Links map[string]string `json:"Links,omitempty"` Templates []*ActionTemplateParameter `json:"Templates"` Variables map[string]PropertyValueResource `json:"Variables,omitempty"` }
type LibraryVariableSet ¶
type LibraryVariableSet struct { ContentType string `json:"ContentType" validate:"required,oneof=ScriptModule Variables"` Description string `json:"Description,omitempty"` Name string `json:"Name" validate:"required"` SpaceID string `json:"SpaceId,omitempty"` Templates []*ActionTemplateParameter `json:"Templates,omitempty"` VariableSetID string `json:"VariableSetId,omitempty"` // contains filtered or unexported fields }
func NewLibraryVariableSet ¶
func NewLibraryVariableSet(name string) *LibraryVariableSet
func (*LibraryVariableSet) GetID ¶
func (r *LibraryVariableSet) GetID() string
GetID returns the ID value of the resource.
func (*LibraryVariableSet) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*LibraryVariableSet) GetModifiedBy ¶
func (r *LibraryVariableSet) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*LibraryVariableSet) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (LibraryVariableSet) Validate ¶
func (l LibraryVariableSet) Validate() error
Validate checks the state of the library variable set and returns an error if invalid.
type LibraryVariableSetUsageEntry ¶
type LibraryVariableSetUsageEntry struct { LibraryVariableSetID string `json:"LibraryVariableSetId,omitempty"` LibraryVariableSetName string `json:"LibraryVariableSetName,omitempty"` // contains filtered or unexported fields }
func NewLibraryVariableSetUsageEntry ¶
func NewLibraryVariableSetUsageEntry() *LibraryVariableSetUsageEntry
func (*LibraryVariableSetUsageEntry) GetID ¶
func (r *LibraryVariableSetUsageEntry) GetID() string
GetID returns the ID value of the resource.
func (*LibraryVariableSetUsageEntry) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*LibraryVariableSetUsageEntry) GetModifiedBy ¶
func (r *LibraryVariableSetUsageEntry) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*LibraryVariableSetUsageEntry) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type LibraryVariableSets ¶
type LibraryVariableSets struct { Items []*LibraryVariableSet `json:"Items"` PagedResults }
type LibraryVariablesQuery ¶
type LibraryVariablesQuery struct { ContentType string `uri:"contentType,omitempty" url:"contentType,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type Lifecycle ¶
type Lifecycle struct { Description string `json:"Description,omitempty"` Name string `json:"Name" validate:"required"` Phases []Phase `json:"Phases,omitempty"` ReleaseRetentionPolicy RetentionPeriod `json:"ReleaseRetentionPolicy,omitempty"` SpaceID string `json:"SpaceId,omitempty"` TentacleRetentionPolicy RetentionPeriod `json:"TentacleRetentionPolicy,omitempty"` // contains filtered or unexported fields }
func NewLifecycle ¶
func (*Lifecycle) GetID ¶
func (r *Lifecycle) GetID() string
GetID returns the ID value of the resource.
func (*Lifecycle) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*Lifecycle) GetModifiedBy ¶
func (r *Lifecycle) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Lifecycle) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type Lifecycles ¶
type Lifecycles struct { Items []*Lifecycle `json:"Items"` PagedResults }
type LifecyclesQuery ¶
type ListAPIMetadata ¶
type ListAPIMetadata struct { APIEndpoint string `json:"ApiEndpoint,omitempty"` SelectMode string `json:"SelectMode,omitempty"` }
func NewListAPIMetadata ¶
func NewListAPIMetadata() *ListAPIMetadata
type ListeningTentacleEndpoint ¶
type ListeningTentacleEndpoint struct { ProxyID string `json:"ProxyId,omitempty"` URI *url.URL `json:"Uri" validate:"required,uri"` // contains filtered or unexported fields }
func NewListeningTentacleEndpoint ¶
func NewListeningTentacleEndpoint(uri *url.URL, thumbprint string) *ListeningTentacleEndpoint
func (ListeningTentacleEndpoint) MarshalJSON ¶
func (l ListeningTentacleEndpoint) MarshalJSON() ([]byte, error)
func (*ListeningTentacleEndpoint) UnmarshalJSON ¶
func (l *ListeningTentacleEndpoint) UnmarshalJSON(b []byte) error
UnmarshalJSON sets this listening tentacle endpoint to its representation in JSON.
func (*ListeningTentacleEndpoint) Validate ¶
func (l *ListeningTentacleEndpoint) Validate() error
Validate checks the state of the listening tentacle endpoint and returns an error if invalid.
type MachineCleanupPolicy ¶
type MachineCleanupPolicy struct { DeleteMachinesBehavior string `json:"DeleteMachinesBehavior" validate:"required,oneof=DeleteUnavailableMachines DoNotDelete"` DeleteMachinesElapsedTimeSpan time.Duration `json:"DeleteMachinesElapsedTimeSpan,omitempty"` }
func NewMachineCleanupPolicy ¶
func NewMachineCleanupPolicy() *MachineCleanupPolicy
func (*MachineCleanupPolicy) MarshalJSON ¶
func (m *MachineCleanupPolicy) MarshalJSON() ([]byte, error)
MarshalJSON returns a machine policy as its JSON encoding.
func (*MachineCleanupPolicy) UnmarshalJSON ¶
func (m *MachineCleanupPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON sets this Kubernetes endpoint to its representation in JSON.
func (*MachineCleanupPolicy) Validate ¶
func (m *MachineCleanupPolicy) Validate() error
Validate checks the state of the machine policy and returns an error if invalid.
type MachineConnectionStatus ¶
type MachineConnectionStatus struct { CurrentTentacleVersion string `json:"CurrentTentacleVersion,omitempty"` LastChecked time.Time `json:"LastChecked,omitempty"` Logs []*ActivityLogElement `json:"Logs"` MachineID string `json:"MachineId,omitempty"` Status string `json:"Status,omitempty"` // contains filtered or unexported fields }
func NewMachineConnectionStatus ¶
func NewMachineConnectionStatus() *MachineConnectionStatus
func (*MachineConnectionStatus) GetID ¶
func (r *MachineConnectionStatus) GetID() string
GetID returns the ID value of the resource.
func (*MachineConnectionStatus) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*MachineConnectionStatus) GetModifiedBy ¶
func (r *MachineConnectionStatus) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*MachineConnectionStatus) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type MachineConnectivityPolicy ¶
type MachineConnectivityPolicy struct {
MachineConnectivityBehavior string `json:"MachineConnectivityBehavior" validate:"oneof=ExpectedToBeOnline MayBeOfflineAndCanBeSkipped"`
}
func NewMachineConnectivityPolicy ¶
func NewMachineConnectivityPolicy() *MachineConnectivityPolicy
type MachineHealthCheckPolicy ¶
type MachineHealthCheckPolicy struct { BashHealthCheckPolicy *MachineScriptPolicy `json:"BashHealthCheckPolicy" validate:"required"` HealthCheckCron string `json:"HealthCheckCron,omitempty"` HealthCheckCronTimezone string `json:"HealthCheckCronTimezone" validate:"required"` HealthCheckInterval time.Duration `json:"HealthCheckInterval,omitempty"` HealthCheckType string `json:"HealthCheckType" validate:"required,oneof=OnlyConnectivity RunScript"` PowerShellHealthCheckPolicy *MachineScriptPolicy `json:"PowerShellHealthCheckPolicy" validate:"required"` }
func NewMachineHealthCheckPolicy ¶
func NewMachineHealthCheckPolicy() *MachineHealthCheckPolicy
func (*MachineHealthCheckPolicy) MarshalJSON ¶
func (m *MachineHealthCheckPolicy) MarshalJSON() ([]byte, error)
MarshalJSON returns a machine health check policy as its JSON encoding.
func (*MachineHealthCheckPolicy) UnmarshalJSON ¶
func (m *MachineHealthCheckPolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON sets this machine health check policy to its representation in JSON.
func (*MachineHealthCheckPolicy) Validate ¶
func (m *MachineHealthCheckPolicy) Validate() error
Validate checks the state of the machine health check policy and returns an error if invalid.
type MachinePolicies ¶
type MachinePolicies struct { Items []*MachinePolicy `json:"Items"` PagedResults }
type MachinePoliciesQuery ¶
type MachinePolicy ¶
type MachinePolicy struct { ConnectionConnectTimeout time.Duration `json:"ConnectionConnectTimeout" validate:"required,min=10s"` ConnectionRetryCountLimit int32 `json:"ConnectionRetryCountLimit" validate:"required,gte=2"` ConnectionRetrySleepInterval time.Duration `json:"ConnectionRetrySleepInterval" validate:"required"` ConnectionRetryTimeLimit time.Duration `json:"ConnectionRetryTimeLimit" validate:"required,min=10s"` Description string `json:"Description,omitempty"` IsDefault bool `json:"IsDefault"` MachineCleanupPolicy *MachineCleanupPolicy `json:"MachineCleanupPolicy"` MachineConnectivityPolicy *MachineConnectivityPolicy `json:"MachineConnectivityPolicy"` MachineHealthCheckPolicy *MachineHealthCheckPolicy `json:"MachineHealthCheckPolicy"` MachineUpdatePolicy *MachineUpdatePolicy `json:"MachineUpdatePolicy"` Name string `json:"Name" validate:"required,notblank"` PollingRequestMaximumMessageProcessingTimeout time.Duration `json:"PollingRequestMaximumMessageProcessingTimeout" validate:"required"` PollingRequestQueueTimeout time.Duration `json:"PollingRequestQueueTimeout" validate:"required"` SpaceID string `json:"SpaceId,omitempty"` // contains filtered or unexported fields }
func NewMachinePolicy ¶
func NewMachinePolicy(name string) *MachinePolicy
func (*MachinePolicy) GetID ¶
func (r *MachinePolicy) GetID() string
GetID returns the ID value of the resource.
func (*MachinePolicy) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*MachinePolicy) GetModifiedBy ¶
func (r *MachinePolicy) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*MachinePolicy) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*MachinePolicy) MarshalJSON ¶
func (m *MachinePolicy) MarshalJSON() ([]byte, error)
MarshalJSON returns a machine policy as its JSON encoding.
func (*MachinePolicy) UnmarshalJSON ¶
func (m *MachinePolicy) UnmarshalJSON(data []byte) error
UnmarshalJSON sets this Kubernetes endpoint to its representation in JSON.
func (*MachinePolicy) Validate ¶
func (m *MachinePolicy) Validate() error
Validate checks the state of the machine policy and returns an error if invalid.
type MachineScriptPolicy ¶
type MachineScriptPolicy struct { RunType string `json:"RunType" validate:"required,oneof=InheritFromDefault Inline OnlyConnectivity"` ScriptBody *string `json:"ScriptBody"` }
func NewMachineScriptPolicy ¶
func NewMachineScriptPolicy() *MachineScriptPolicy
type MachineUpdatePolicy ¶
type MachineUpdatePolicy struct { CalamariUpdateBehavior string `json:"CalamariUpdateBehavior" validate:"required,oneof=UpdateAlways UpdateOnDeployment UpdateOnNewMachine"` TentacleUpdateAccountID string `json:"TentacleUpdateAccountId,omitempty"` TentacleUpdateBehavior string `json:"TentacleUpdateBehavior" validate:"required,oneof=NeverUpdate Update"` }
func NewMachineUpdatePolicy ¶
func NewMachineUpdatePolicy() *MachineUpdatePolicy
type MachinesQuery ¶
type MachinesQuery struct { CommunicationStyles []string `uri:"commStyles,omitempty" url:"commStyles,omitempty"` DeploymentID string `uri:"deploymentId,omitempty" url:"deploymentId,omitempty"` EnvironmentIDs []string `uri:"environmentIds,omitempty" url:"environmentIds,omitempty"` HealthStatuses []string `uri:"healthStatuses,omitempty" url:"healthStatuses,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IsDisabled bool `uri:"isDisabled,omitempty" url:"isDisabled,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Roles []string `uri:"roles,omitempty" url:"roles,omitempty"` ShellNames []string `uri:"shellNames,omitempty" url:"shellNames,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` TenantIDs []string `uri:"tenantIds,omitempty" url:"tenantIds,omitempty"` TenantTags []string `uri:"tenantTags,omitempty" url:"tenantTags,omitempty"` Thumbprint string `uri:"thumbprint,omitempty" url:"thumbprint,omitempty"` }
type MavenFeed ¶
type MavenFeed struct { DownloadAttempts int `json:"DownloadAttempts"` DownloadRetryBackoffSeconds int `json:"DownloadRetryBackoffSeconds"` FeedURI string `json:"FeedUri,omitempty"` Feed }
MavenFeed represents a Maven feed.
func NewMavenFeed ¶
NewMavenFeed creates and initializes a Maven feed.
func (*MavenFeed) GetID ¶
func (r *MavenFeed) GetID() string
GetID returns the ID value of the resource.
func (*MavenFeed) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*MavenFeed) GetModifiedBy ¶
func (r *MavenFeed) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*MavenFeed) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type Metadata ¶
type Metadata struct { Description string `json:"Description,omitempty"` Types []*TypeMetadata `json:"Types"` }
func NewMetadata ¶
func NewMetadata() *Metadata
type NamedReferenceItem ¶
type NamedReferenceItem struct { DisplayIDAndName bool `json:"DisplayIdAndName,omitempty"` DisplayName string `json:"DisplayName,omitempty"` ID string `json:"Id,omitempty"` }
func NewNamedReferenceItem ¶
func NewNamedReferenceItem() *NamedReferenceItem
type NuGetFeed ¶
type NuGetFeed struct { DownloadAttempts int `json:"DownloadAttempts"` DownloadRetryBackoffSeconds int `json:"DownloadRetryBackoffSeconds"` EnhancedMode bool `json:"EnhancedMode"` FeedURI string `json:"FeedUri,omitempty"` Feed }
NuGetFeed represents a NuGet feed.
func NewNuGetFeed ¶
NewNuGetFeed creates and initializes a NuGet feed.
func (*NuGetFeed) GetID ¶
func (r *NuGetFeed) GetID() string
GetID returns the ID value of the resource.
func (*NuGetFeed) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*NuGetFeed) GetModifiedBy ¶
func (r *NuGetFeed) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*NuGetFeed) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type OctopusProjectFeed ¶
type OctopusProjectFeed struct {
Feed
}
OctopusProjectFeed represents an Octopus project feed.
func NewOctopusProjectFeed ¶
func NewOctopusProjectFeed(name string, feedURI string) *OctopusProjectFeed
NewOctopusProjectFeed creates and initializes a Octopus project feed.
func (*OctopusProjectFeed) GetID ¶
func (r *OctopusProjectFeed) GetID() string
GetID returns the ID value of the resource.
func (*OctopusProjectFeed) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*OctopusProjectFeed) GetModifiedBy ¶
func (r *OctopusProjectFeed) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*OctopusProjectFeed) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*OctopusProjectFeed) Validate ¶
func (o *OctopusProjectFeed) Validate() error
Validate checks the state of this Octopus project feed and returns an error if invalid.
type OctopusServerNodeResource ¶
type OctopusServerNodeResource struct { IsInMaintenanceMode bool `json:"IsInMaintenanceMode,omitempty"` MaxConcurrentTasks int32 `json:"MaxConcurrentTasks,omitempty"` Name string `json:"Name,omitempty"` // contains filtered or unexported fields }
func NewOctopusServerNodeResource ¶
func NewOctopusServerNodeResource() *OctopusServerNodeResource
func (*OctopusServerNodeResource) GetID ¶
func (r *OctopusServerNodeResource) GetID() string
GetID returns the ID value of the resource.
func (*OctopusServerNodeResource) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*OctopusServerNodeResource) GetModifiedBy ¶
func (r *OctopusServerNodeResource) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*OctopusServerNodeResource) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type OfflineDropDestination ¶
type OfflineDropDestination struct { DestinationType string `json:"DestinationType validate="oneof=Artifact FileSystem"` DropFolderPath string `json:"DropFolderPath,omitempty"` }
func NewOfflineDropDestination ¶
func NewOfflineDropDestination() *OfflineDropDestination
type OfflineDropEndpoint ¶
type OfflineDropEndpoint struct { ApplicationsDirectory string `json:"ApplicationsDirectory,omitempty"` Destination *OfflineDropDestination `json:"Destination"` SensitiveVariablesEncryptionPassword SensitiveValue `json:"SensitiveVariablesEncryptionPassword"` OctopusWorkingDirectory string `json:"OctopusWorkingDirectory,omitempty"` // contains filtered or unexported fields }
func NewOfflineDropEndpoint ¶
func NewOfflineDropEndpoint() *OfflineDropEndpoint
func (OfflineDropEndpoint) GetCommunicationStyle ¶
func (e OfflineDropEndpoint) GetCommunicationStyle() string
GetCommunicationStyle returns the communication style of this endpoint.
type OptionsMetadata ¶
type OptionsMetadata struct { SelectMode string `json:"SelectMode,omitempty"` Values map[string]string `json:"Values,omitempty"` }
func NewOptionsMetadata ¶
func NewOptionsMetadata() *OptionsMetadata
type Package ¶
type Package struct { Description string `json:"Description,omitempty"` FeedID string `json:"FeedId,omitempty"` FileExtension string `json:"FileExtension,omitempty"` NuGetFeedID string `json:"NuGetFeedId,omitempty"` NuGetPackageID string `json:"NuGetPackageId,omitempty"` PackageID string `json:"PackageId,omitempty"` BuildInformation *BuildInformation `json:"PackageVersionBuildInformation,omitempty"` Published time.Time `json:"ReleaseNotes,omitempty"` Summary string `json:"Summary,omitempty"` Title string `json:"Title,omitempty"` Version string `json:"Version,omitempty"` // contains filtered or unexported fields }
func NewPackage ¶
func NewPackage() *Package
func (*Package) GetID ¶
func (r *Package) GetID() string
GetID returns the ID value of the resource.
func (*Package) GetModifiedBy ¶
func (r *Package) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Package) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type PackageDeltaUploadQuery ¶
type PackageDeltaUploadQuery struct { BaseVersion string `uri:"baseVersion,omitempty" url:"baseVersion,omitempty"` OverwriteMode string `uri:"overwriteMode,omitempty" url:"overwriteMode,omitempty"` PackageID string `uri:"packageId,omitempty" url:"packageId,omitempty"` Replace bool `uri:"replace,omitempty" url:"replace,omitempty"` }
type PackageDescription ¶
type PackageDescriptions ¶
type PackageDescriptions struct { Items []*PackageDescription `json:"Items"` PagedResults }
type PackageMetadataQuery ¶
type PackageMetadataQuery struct { Filter string `uri:"filter,omitempty" url:"filter,omitempty"` Latest string `uri:"latest,omitempty" url:"latest,omitempty"` OverwriteMode string `uri:"overwriteMode,omitempty" url:"overwriteMode,omitempty"` Replace bool `uri:"replace,omitempty" url:"replace,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type PackageNote ¶
type PackageNote struct { FeedID string `json:"FeedId,omitempty"` Notes *PackageNotesResult `json:"Notes,omitempty"` PackageID string `json:"PackageId,omitempty"` Version string `json:"Version,omitempty"` }
func NewPackageNote ¶
func NewPackageNote() *PackageNote
type PackageNotesListQuery ¶
type PackageNotesListQuery struct {
PackageIDs []string `uri:"packageIds,omitempty" url:"packageIds,omitempty"`
}
type PackageNotesResult ¶
type PackageNotesResult struct { DisplayMessage string `json:"DisplayMessage,omitempty"` FailureReason string `json:"FailureReason,omitempty"` Notes string `json:"Notes,omitempty"` Succeeded bool `json:"Succeeded,omitempty"` }
func NewPackageNotesResult ¶
func NewPackageNotesResult() *PackageNotesResult
type PackageReference ¶
type PackageReference struct { ID string `json:"Id,omitempty"` Name string `json:"Name,omitempty"` PackageID string `json:"PackageId,omitempty"` FeedID string `json:"FeedId"` AcquisitionLocation string `json:"AcquisitionLocation"` // This can be an expression Properties map[string]string `json:"Properties"` }
type PackageUploadQuery ¶
type PackageVersion ¶
type PackageVersion struct { FeedID string `json:"FeedId,omitempty"` PackageID string `json:"PackageId,omitempty"` Published time.Time `json:"Published,omitempty"` ReleaseNotes string `json:"ReleaseNotes,omitempty"` SizeBytes int64 `json:"SizeBytes,omitempty"` Title string `json:"Title,omitempty"` Version string `json:"Version,omitempty"` // contains filtered or unexported fields }
func NewPackageVersion ¶
func NewPackageVersion() *PackageVersion
func (*PackageVersion) GetID ¶
func (r *PackageVersion) GetID() string
GetID returns the ID value of the resource.
func (*PackageVersion) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*PackageVersion) GetModifiedBy ¶
func (r *PackageVersion) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*PackageVersion) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type Packages ¶
type Packages struct { Items []*Package `json:"Items"` PagedResults }
type PackagesBulkQuery ¶
type PackagesBulkQuery struct {
IDs []string `uri:"ids,omitempty" url:"ids,omitempty"`
}
type PackagesQuery ¶
type PackagesQuery struct { Filter string `uri:"filter,omitempty" url:"filter,omitempty"` IncludeNotes bool `uri:"includeNotes,omitempty" url:"includeNotes,omitempty"` Latest string `uri:"latest,omitempty" url:"latest,omitempty"` NuGetPackageID string `uri:"nuGetPackageId,omitempty" url:"nuGetPackageId,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type PagedResults ¶
type PermissionDescription ¶
type Phase ¶
type Phase struct { AutomaticDeploymentTargets []string `json:"AutomaticDeploymentTargets"` ID string `json:"Id,omitempty"` IsOptionalPhase bool `json:"IsOptionalPhase"` MinimumEnvironmentsBeforePromotion int32 `json:"MinimumEnvironmentsBeforePromotion"` Name string `json:"Name" validate:"required"` OptionalDeploymentTargets []string `json:"OptionalDeploymentTargets"` ReleaseRetentionPolicy *RetentionPeriod `json:"ReleaseRetentionPolicy"` TentacleRetentionPolicy *RetentionPeriod `json:"TentacleRetentionPolicy"` }
type PollingTentacleEndpoint ¶
type PollingTentacleEndpoint struct { URI *url.URL `json:"Uri" validate:"required,uri"` // contains filtered or unexported fields }
func NewPollingTentacleEndpoint ¶
func NewPollingTentacleEndpoint(uri *url.URL, thumbprint string) *PollingTentacleEndpoint
type Progression ¶
type Progression struct { ChannelEnvironments map[string][]ReferenceDataItem `json:"ChannelEnvironments,omitempty"` Environments []*ReferenceDataItem `json:"Environments"` Releases []*ReleaseProgression `json:"Releases"` // contains filtered or unexported fields }
func (*Progression) GetID ¶
func (r *Progression) GetID() string
GetID returns the ID value of the resource.
func (*Progression) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*Progression) GetModifiedBy ¶
func (r *Progression) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Progression) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type Project ¶
type Project struct { AutoCreateRelease bool `json:"AutoCreateRelease"` AutoDeployReleaseOverrides []*AutoDeployReleaseOverride `json:"AutoDeployReleaseOverrides,omitempty"` ClonedFromProjectID string `json:"ClonedFromProjectId,omitempty"` DefaultGuidedFailureMode string `json:"DefaultGuidedFailureMode,omitempty"` DefaultToSkipIfAlreadyInstalled bool `json:"DefaultToSkipIfAlreadyInstalled"` DeploymentChangesTemplate string `json:"DeploymentChangesTemplate,omitempty"` DeploymentProcessID string `json:"DeploymentProcessId,omitempty"` Description string `json:"Description,omitempty"` ExtensionSettings []*ExtensionSettingsValues `json:"ExtensionSettings,omitempty"` IncludedLibraryVariableSets []string `json:"IncludedLibraryVariableSetIds,omitempty"` IsDisabled bool `json:"IsDisabled"` IsDiscreteChannelRelease bool `json:"DiscreteChannelRelease"` IsVersionControlled bool `json:"IsVersionControlled"` LifecycleID string `json:"LifecycleId" validate:"required"` Name string `json:"Name" validate:"required"` ProjectConnectivityPolicy *ProjectConnectivityPolicy `json:"ProjectConnectivityPolicy,omitempty"` ProjectGroupID string `json:"ProjectGroupId" validate:"required"` ReleaseCreationStrategy *ReleaseCreationStrategy `json:"ReleaseCreationStrategy,omitempty"` ReleaseNotesTemplate string `json:"ReleaseNotesTemplate,omitempty"` Slug string `json:"Slug,omitempty"` SpaceID string `json:"SpaceId,omitempty"` Templates []*ActionTemplateParameter `json:"Templates,omitempty"` TenantedDeploymentMode TenantedDeploymentMode `json:"TenantedDeploymentMode"` VariableSetID string `json:"VariableSetId,omitempty"` VersionControlSettings *VersionControlSettings `json:"VersionControlSettings,omitempty"` VersioningStrategy VersioningStrategy `json:"VersioningStrategy"` // contains filtered or unexported fields }
func (*Project) GetID ¶
func (r *Project) GetID() string
GetID returns the ID value of the resource.
func (*Project) GetModifiedBy ¶
func (r *Project) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Project) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type ProjectConnectivityPolicy ¶
type ProjectConnectivityPolicy struct { AllowDeploymentsToNoTargets bool `json:"AllowDeploymentsToNoTargets,omitempty"` TargetRoles []string `json:"TargetRoles,omitempty"` SkipMachineBehavior SkipMachineBehavior `json:"SkipMachineBehavior,omitempty"` }
type ProjectGroup ¶
type ProjectGroup struct { Description string `json:"Description,omitempty"` EnvironmentIDs []string `json:"EnvironmentIds,omitempty"` Name string `json:"Name,omitempty" validate:"required"` RetentionPolicyID string `json:"RetentionPolicyId,omitempty"` // contains filtered or unexported fields }
func NewProjectGroup ¶
func NewProjectGroup(name string) *ProjectGroup
func (*ProjectGroup) GetID ¶
func (r *ProjectGroup) GetID() string
GetID returns the ID value of the resource.
func (*ProjectGroup) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*ProjectGroup) GetModifiedBy ¶
func (r *ProjectGroup) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*ProjectGroup) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type ProjectGroups ¶
type ProjectGroups struct { Items []*ProjectGroup `json:"Items"` PagedResults }
type ProjectGroupsQuery ¶
type ProjectPulseQuery ¶
type ProjectPulseQuery struct {
ProjectIDs []string `uri:"projectIds,omitempty" url:"projectIds,omitempty"`
}
type ProjectSummary ¶
type ProjectTrigger ¶
type ProjectTrigger struct { Action ProjectTriggerAction `json:"Action"` Description string `json:"Description,omitempty"` Filter ProjectTriggerFilter `json:"Filter"` IsDisabled bool `json:"IsDisabled,omitempty"` Name string `json:"Name"` ProjectID string `json:"ProjectId,omitempty"` SpaceID string `json:"SpaceId,omitempty"` // contains filtered or unexported fields }
func NewProjectDeploymentTargetTrigger ¶
func NewProjectDeploymentTargetTrigger(name, projectID string, shouldRedeploy bool, roles, eventGroups, eventCategories []string) *ProjectTrigger
func (*ProjectTrigger) AddEventCategories ¶
func (t *ProjectTrigger) AddEventCategories(eventCategories []string)
func (*ProjectTrigger) AddEventGroups ¶
func (t *ProjectTrigger) AddEventGroups(eventGroups []string)
func (*ProjectTrigger) GetID ¶
func (r *ProjectTrigger) GetID() string
GetID returns the ID value of the resource.
func (*ProjectTrigger) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*ProjectTrigger) GetModifiedBy ¶
func (r *ProjectTrigger) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*ProjectTrigger) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type ProjectTriggerAction ¶
type ProjectTriggerFilter ¶
type ProjectTriggerFilter struct { DateOfMonth string `json:"DateOfMonth"` DayNumberOfMonth string `json:"DayNumberOfMonth"` DayOfWeek string `json:"DayOfWeek"` EnvironmentIDs []string `json:"EnvironmentIds,omitempty"` EventCategories []string `json:"EventCategories,omitempty"` EventGroups []string `json:"EventGroups,omitempty"` FilterType string `json:"FilterType"` MonthlyScheduleType string `json:"MonthlyScheduleType"` Roles []string `json:"Roles"` StartTime string `json:"StartTime"` Timezone string `json:"Timezone"` }
type ProjectTriggers ¶
type ProjectTriggers struct { Items []*ProjectTrigger `json:"Items"` PagedResults }
type ProjectTriggersQuery ¶
type ProjectVariableSetUsage ¶
type ProjectVariableSetUsage struct { IsCurrentlyBeingUsedInProject bool `json:"IsCurrentlyBeingUsedInProject"` ProjectID string `json:"ProjectId,omitempty"` ProjectName string `json:"ProjectName,omitempty"` ProjectSlug string `json:"ProjectSlug,omitempty"` Releases []*ReleaseUsageEntry `json:"Releases"` RunbookSnapshots []*RunbookSnapshotUsageEntry `json:"RunbookSnapshots"` }
type ProjectedTeamReferenceDataItem ¶
type ProjectedTeamReferenceDataItem struct { ExternalSecurityGroups []NamedReferenceItem `json:"ExternalSecurityGroups"` ID string `json:"Id,omitempty"` IsDirectlyAssigned bool `json:"IsDirectlyAssigned,omitempty"` Name string `json:"Name,omitempty"` SpaceID string `json:"SpaceId,omitempty"` }
type Projects ¶
type Projects struct { Items []*Project `json:"Items"` PagedResults }
type ProjectsExperimentalSummariesQuery ¶
type ProjectsExperimentalSummariesQuery struct {
IDs []string `uri:"ids,omitempty" url:"ids,omitempty"`
}
type ProjectsQuery ¶
type ProjectsQuery struct { ClonedFromProjectID string `url:"clonedFromProjectId"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IsClone bool `uri:"clone,omitempty" url:"clone,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type PropertyApplicability ¶
type PropertyApplicability struct { DependsOnPropertyName string `json:"DependsOnPropertyName,omitempty"` DependsOnPropertyValue interface{} `json:"DependsOnPropertyValue,omitempty"` Mode string `` /* 149-byte string literal not displayed */ }
func NewPropertyApplicability ¶
func NewPropertyApplicability() *PropertyApplicability
func (PropertyApplicability) Validate ¶
func (p PropertyApplicability) Validate() error
Validate checks the state of the property applicability and returns an error if invalid.
type PropertyMetadata ¶
type PropertyMetadata struct { DisplayInfo *DisplayInfo `json:"DisplayInfo,omitempty"` Name string `json:"Name,omitempty"` Type string `json:"Type,omitempty"` }
func NewPropertyMetadata ¶
func NewPropertyMetadata() *PropertyMetadata
type PropertyValue ¶
type PropertyValue string
type PropertyValueResource ¶
type PropertyValueResource struct { *SensitiveValue *PropertyValue }
func (PropertyValueResource) MarshalJSON ¶
func (d PropertyValueResource) MarshalJSON() ([]byte, error)
func (*PropertyValueResource) UnmarshalJSON ¶
func (d *PropertyValueResource) UnmarshalJSON(data []byte) error
UnmarshalJSON sets this property value to its representation in JSON.
type ProxiesQuery ¶
type ReferenceDataItem ¶
type Release ¶
type Release struct { Assembled time.Time `json:"Assembled,omitempty"` BuildInformation []*ReleasePackageVersionBuildInformation `json:"BuildInformation,omitempty"` ChannelID string `json:"ChannelId,omitempty"` IgnoreChannelRules bool `json:"IgnoreChannelRules,omitempty"` LibraryVariableSetSnapshotIDs []string `json:"LibraryVariableSetSnapshotIds,omitempty"` ProjectDeploymentProcessSnapshotID string `json:"ProjectDeploymentProcessSnapshotId,omitempty"` ProjectID string `json:"ProjectId,omitempty"` ProjectVariableSetSnapshotID string `json:"ProjectVariableSetSnapshotId,omitempty"` ReleaseNotes string `json:"ReleaseNotes,omitempty"` SelectedPackages []*SelectedPackage `json:"SelectedPackages,omitempty"` SpaceID string `json:"SpaceId,omitempty"` Version string `json:"Version"` // contains filtered or unexported fields }
func (*Release) GetID ¶
func (r *Release) GetID() string
GetID returns the ID value of the resource.
func (*Release) GetModifiedBy ¶
func (r *Release) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Release) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type ReleaseChanges ¶
type ReleaseChanges struct { BuildInformation []*ReleasePackageVersionBuildInformation `json:"BuildInformation"` Commits []*CommitDetails `json:"Commits"` ReleaseNotes string `json:"ReleaseNotes,omitempty"` Version string `json:"Version,omitempty"` WorkItems []*WorkItemLink `json:"WorkItems"` }
type ReleaseCreationStrategy ¶
type ReleaseCreationStrategy struct { ChannelID string `json:"ChannelId,omitempty"` ReleaseCreationPackage *DeploymentActionPackage `json:"ReleaseCreationPackage,omitempty"` ReleaseCreationPackageStepID *string `json:"ReleaseCreationPackageStepId,omitempty"` }
type ReleasePackageVersionBuildInformation ¶
type ReleasePackageVersionBuildInformation struct { Branch string `json:"Branch,omitempty"` BuildEnvironment string `json:"BuildEnvironment,omitempty"` BuildNumber string `json:"BuildNumber,omitempty"` BuildURL string `json:"BuildUrl,omitempty"` Commits []*CommitDetails `json:"Commits"` PackageID string `json:"PackageId,omitempty"` VcsCommitNumber string `json:"VcsCommitNumber,omitempty"` VcsCommitURL string `json:"VcsCommitUrl,omitempty"` VcsRoot string `json:"VcsRoot,omitempty"` VcsType string `json:"VcsType,omitempty"` Version string `json:"Version,omitempty"` WorkItems []*WorkItemLink `json:"WorkItems"` }
type ReleaseProgression ¶
type ReleaseProgression struct { Channel *Channel `json:"Channel,omitempty"` Deployments map[string][]DashboardItem `json:"Deployments,omitempty"` HasUnresolvedDefect bool `json:"HasUnresolvedDefect,omitempty"` NextDeployments []string `json:"NextDeployments"` Release *Release `json:"Release,omitempty"` ReleaseRetentionPeriod *RetentionPeriod `json:"ReleaseRetentionPeriod,omitempty"` TentacleRetentionPeriod *RetentionPeriod `json:"TentacleRetentionPeriod,omitempty"` }
type ReleaseQuery ¶
type ReleaseUsage ¶
type ReleaseUsage struct { ProjectID string `json:"ProjectId,omitempty"` ProjectName string `json:"ProjectName,omitempty"` Releases []*ReleaseUsageEntry `json:"Releases"` }
type ReleaseUsageEntry ¶
type Releases ¶
type Releases struct { Items []*Release `json:"Items"` PagedResults }
Releases defines a collection of Release instance with built-in support for paged results from the API.
type ReleasesQuery ¶
type ReplacementCertificate ¶
type ReplacementCertificate struct { CertificateData string `json:"CertificateData,omitempty"` Password string `json:"Password,omitempty"` }
func NewReplacementCertificate ¶
func NewReplacementCertificate(certificateData string, password string) *ReplacementCertificate
type Resources ¶
type Resources struct { Items []*resource `json:"Items"` PagedResults }
type RetentionPeriod ¶
type RootResource ¶
type RootResource struct { Application string `json:"Application" validate:"required"` Version string `json:"Version" validate:"required"` APIVersion string `json:"ApiVersion" validate:"required"` InstallationID *uuid.UUID `json:"InstallationId" validate:"required"` IsEarlyAccessProgram bool `json:"IsEarlyAccessProgram"` HasLongTermSupport bool `json:"HasLongTermSupport"` // contains filtered or unexported fields }
func NewRootResource ¶
func NewRootResource() *RootResource
func (*RootResource) GetID ¶
func (r *RootResource) GetID() string
GetID returns the ID value of the resource.
func (*RootResource) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*RootResource) GetModifiedBy ¶
func (r *RootResource) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*RootResource) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*RootResource) Validate ¶
func (r *RootResource) Validate() error
Validate checks the state of the root resource and returns an error if invalid.
type Runbook ¶
type Runbook struct { ConnectivityPolicy *ProjectConnectivityPolicy `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"` // contains filtered or unexported fields }
func NewRunbook ¶
NewRunbook creates and initializes a runbook.
func (*Runbook) GetID ¶
func (r *Runbook) GetID() string
GetID returns the ID value of the resource.
func (*Runbook) GetModifiedBy ¶
func (r *Runbook) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Runbook) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
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 []*DeploymentStep `json:"Steps"` Version *int32 `json:"Version"` // contains filtered or unexported fields }
func NewRunbookProcess ¶
func NewRunbookProcess() *RunbookProcess
func (*RunbookProcess) GetID ¶
func (r *RunbookProcess) GetID() string
GetID returns the ID value of the resource.
func (*RunbookProcess) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*RunbookProcess) GetModifiedBy ¶
func (r *RunbookProcess) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*RunbookProcess) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type RunbookProcesses ¶
type RunbookProcesses struct { Items []*RunbookProcess `json:"Items"` PagedResults }
type RunbookProcessesQuery ¶
type RunbookRetentionPeriod ¶
type RunbookRetentionPeriod struct { QuantityToKeep int32 `json:"QuantityToKeep"` ShouldKeepForever bool `json:"ShouldKeepForever"` }
func NewRunbookRetentionPeriod ¶
func NewRunbookRetentionPeriod() *RunbookRetentionPeriod
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 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 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 []*StepUsageEntry `json:"Steps"` }
type Runbooks ¶
type Runbooks struct { Items []*Runbook `json:"Items"` 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"` }
type SSHEndpoint ¶
type SSHEndpoint struct { AccountID string `json:"AccountId,omitempty"` CommunicationStyle string `json:"CommunicationStyle" validate:"required,eq=Ssh"` DotNetCorePlatform string Fingerprint string Host string Port int ProxyID string `json:"ProxyId,omitempty"` URI *url.URL `json:"Uri"` // contains filtered or unexported fields }
SSHEndpoint contains the information necessary to communicate with an SSH endpoint. If a private key file is provided it will be used; otherwise we fall back to username/password.
func NewSSHEndpoint ¶
func NewSSHEndpoint(host string, port int, fingerprint string) *SSHEndpoint
NewSSHEndpoint creates and initializes a new SSH endpoint.
func (*SSHEndpoint) GetAccountID ¶
func (s *SSHEndpoint) GetAccountID() string
GetAccountID returns the account ID associated with this SSH endpoint.
func (*SSHEndpoint) GetCommunicationStyle ¶
func (s *SSHEndpoint) GetCommunicationStyle() string
GetCommunicationStyle returns the communication style of this endpoint.
func (*SSHEndpoint) GetFingerprint ¶
func (s *SSHEndpoint) GetFingerprint() string
GetFingerprint returns the fingerprint associated with this SSH endpoint.
func (*SSHEndpoint) GetHost ¶
func (s *SSHEndpoint) GetHost() string
GetHost returns the host associated with this SSH endpoint.
func (*SSHEndpoint) GetID ¶
func (r *SSHEndpoint) GetID() string
GetID returns the ID value of the resource.
func (*SSHEndpoint) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*SSHEndpoint) GetModifiedBy ¶
func (r *SSHEndpoint) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*SSHEndpoint) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*SSHEndpoint) GetProxyID ¶
func (s *SSHEndpoint) GetProxyID() string
GetProxyID returns the proxy ID associated with this SSH endpoint.
func (*SSHEndpoint) MarshalJSON ¶
func (s *SSHEndpoint) MarshalJSON() ([]byte, error)
func (*SSHEndpoint) SetProxyID ¶
func (s *SSHEndpoint) SetProxyID(proxyID string)
SetProxyID sets the proxy ID associated with this SSH endpoint.
func (*SSHEndpoint) UnmarshalJSON ¶
func (s *SSHEndpoint) UnmarshalJSON(b []byte) error
UnmarshalJSON sets this SSH endpoint to its representation in JSON.
func (*SSHEndpoint) Validate ¶
func (s *SSHEndpoint) Validate() error
Validate checks the state of the SSH endpoint and returns an error if invalid.
type SSHKeyAccount ¶
type SSHKeyAccount struct { PrivateKeyFile *SensitiveValue `validate:"required"` PrivateKeyPassphrase *SensitiveValue Username string `validate:"required"` // contains filtered or unexported fields }
SSHKeyAccount represents a SSH key pair account.
func NewSSHKeyAccount ¶
func NewSSHKeyAccount(name string, username string, privateKeyFile *SensitiveValue, options ...func(*SSHKeyAccount)) (*SSHKeyAccount, error)
NewSSHKeyAccount initializes and returns a SSH key pair account with a name, username, and private key file.
func (*SSHKeyAccount) GetAccountType ¶
func (a *SSHKeyAccount) GetAccountType() AccountType
GetAccountType returns the type of this account.
func (*SSHKeyAccount) GetDescription ¶
func (a *SSHKeyAccount) GetDescription() string
GetDescription returns the description of the account.
func (*SSHKeyAccount) GetEnvironmentIDs ¶
func (a *SSHKeyAccount) GetEnvironmentIDs() []string
func (*SSHKeyAccount) GetName ¶
func (a *SSHKeyAccount) GetName() string
GetName returns the name of the account.
func (*SSHKeyAccount) GetSpaceID ¶
func (a *SSHKeyAccount) GetSpaceID() string
GetSpaceID returns the space ID of this account.
func (*SSHKeyAccount) GetTenantIDs ¶
func (a *SSHKeyAccount) GetTenantIDs() []string
func (*SSHKeyAccount) GetTenantTags ¶
func (a *SSHKeyAccount) GetTenantTags() []string
func (*SSHKeyAccount) GetTenantedDeploymentMode ¶
func (a *SSHKeyAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
func (*SSHKeyAccount) SetDescription ¶
func (a *SSHKeyAccount) SetDescription(description string)
SetDescription sets the description of the account.
func (*SSHKeyAccount) SetName ¶
func (a *SSHKeyAccount) SetName(name string)
SetName sets the name of the account.
func (*SSHKeyAccount) SetSpaceID ¶
func (a *SSHKeyAccount) SetSpaceID(spaceID string)
SetSpaceID sets the space ID of this account.
func (*SSHKeyAccount) Validate ¶
func (s *SSHKeyAccount) Validate() error
Validate checks the state of this account and returns an error if invalid.
type SchedulerQuery ¶
type ScopeValue ¶
type ScopeValues ¶
type ScopeValues struct { Environments []ScopeValue `json:"Environments"` Machines []ScopeValue `json:"Machines"` Actions []ScopeValue `json:"Actions"` Roles []ScopeValue `json:"Roles"` Channels []ScopeValue `json:"Channels"` TenantTags []ScopeValue `json:"TenantTags"` }
type ScopedUserRolesQuery ¶
type ScopedUserRolesQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IncludeSystem bool `uri:"includeSystem,omitempty" url:"includeSystem,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Spaces []string `uri:"spaces,omitempty" url:"spaces,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type SearchPackagesQuery ¶
type SelectedPackage ¶
type SensitiveValue ¶
type SensitiveValue struct { HasValue bool `json:"HasValue"` NewValue string `json:"NewValue,omitempty"` }
func NewSensitiveValue ¶
func NewSensitiveValue(newValue string) *SensitiveValue
NewSensitiveValue creates and initializes a sensitive value.
type ServiceFabricEndpoint ¶
type ServiceFabricEndpoint struct { AadClientCredentialSecret string `json:"AadClientCredentialSecret,omitempty"` AadCredentialType string `json:"AadCredentialType,omitempty" validate:"omitempty,oneof=ClientCredential UserCredential"` AadUserCredentialUsername string `json:"AadUserCredentialUsername,omitempty"` AadUserCredentialPassword SensitiveValue `json:"AadUserCredentialPassword,omitempty"` CertificateStoreLocation string `json:"CertificateStoreLocation,omitempty"` CertificateStoreName string `json:"CertificateStoreName,omitempty"` ClientCertificateVariable string `json:"ClientCertVariable,omitempty"` ConnectionEndpoint string `json:"ConnectionEndpoint,omitempty"` SecurityMode string `json:"SecurityMode,omitempty" validate:"omitempty,oneof=Unsecure SecureClientCertificate SecureAzureAD"` ServerCertificateThumbprint string `json:"ServerCertThumbprint,omitempty"` // contains filtered or unexported fields }
func NewServiceFabricEndpoint ¶
func NewServiceFabricEndpoint() *ServiceFabricEndpoint
func (ServiceFabricEndpoint) GetCommunicationStyle ¶
func (e ServiceFabricEndpoint) GetCommunicationStyle() string
GetCommunicationStyle returns the communication style of this endpoint.
func (*ServiceFabricEndpoint) Validate ¶
func (s *ServiceFabricEndpoint) Validate() error
Validate checks the state of the service fabric endpoint and returns an error if invalid.
type SignInQuery ¶
type SignInQuery struct {
ReturnURL string `uri:"returnUrl,omitempty" url:"returnUrl,omitempty"`
}
type SkipMachineBehavior ¶
type SkipMachineBehavior string
type Space ¶
type Space struct { Description string `json:"Description,omitempty"` IsDefault bool `json:"IsDefault,omitempty"` Name string `json:"Name" validate:"required,max=20"` SpaceManagersTeamMembers []string `json:"SpaceManagersTeamMembers,omitempty"` SpaceManagersTeams []string `json:"SpaceManagersTeams,omitempty"` TaskQueueStopped bool `json:"TaskQueueStopped,omitempty"` // contains filtered or unexported fields }
func (*Space) GetModifiedBy ¶
func (r *Space) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Space) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type SpaceHomeQuery ¶
type SpaceHomeQuery struct {
SpaceID string `uri:"spaceId,omitempty" url:"spaceId,omitempty"`
}
type SpacePermissions ¶
type SpacePermissions struct { AccountCreate []UserPermissionRestriction `json:"AccountCreate"` AccountDelete []UserPermissionRestriction `json:"AccountDelete"` AccountEdit []UserPermissionRestriction `json:"AccountEdit"` AccountView []UserPermissionRestriction `json:"AccountView"` ActionTemplateCreate []UserPermissionRestriction `json:"ActionTemplateCreate"` ActionTemplateDelete []UserPermissionRestriction `json:"ActionTemplateDelete"` ActionTemplateEdit []UserPermissionRestriction `json:"ActionTemplateEdit"` ActionTemplateView []UserPermissionRestriction `json:"ActionTemplateView"` AdministerSystem []UserPermissionRestriction `json:"AdministerSystem"` ArtifactCreate []UserPermissionRestriction `json:"ArtifactCreate"` ArtifactDelete []UserPermissionRestriction `json:"ArtifactDelete"` ArtifactEdit []UserPermissionRestriction `json:"ArtifactEdit"` ArtifactView []UserPermissionRestriction `json:"ArtifactView"` BuildInformationAdminister []UserPermissionRestriction `json:"BuildInformationAdminister"` BuildInformationPush []UserPermissionRestriction `json:"BuildInformationPush"` BuiltInFeedAdminister []UserPermissionRestriction `json:"BuiltInFeedAdminister"` BuiltInFeedDownload []UserPermissionRestriction `json:"BuiltInFeedDownload"` BuiltInFeedPush []UserPermissionRestriction `json:"BuiltInFeedPush"` CertificateCreate []UserPermissionRestriction `json:"CertificateCreate"` CertificateDelete []UserPermissionRestriction `json:"CertificateDelete"` CertificateEdit []UserPermissionRestriction `json:"CertificateEdit"` CertificateExportPrivateKey []UserPermissionRestriction `json:"CertificateExportPrivateKey"` CertificateView []UserPermissionRestriction `json:"CertificateView"` ConfigureServer []UserPermissionRestriction `json:"ConfigureServer"` DefectReport []UserPermissionRestriction `json:"DefectReport"` DefectResolve []UserPermissionRestriction `json:"DefectResolve"` DeploymentCreate []UserPermissionRestriction `json:"DeploymentCreate"` DeploymentDelete []UserPermissionRestriction `json:"DeploymentDelete"` DeploymentView []UserPermissionRestriction `json:"DeploymentView"` EnvironmentCreate []UserPermissionRestriction `json:"EnvironmentCreate"` EnvironmentDelete []UserPermissionRestriction `json:"EnvironmentDelete"` EnvironmentEdit []UserPermissionRestriction `json:"EnvironmentEdit"` EnvironmentView []UserPermissionRestriction `json:"EnvironmentView"` EventView []UserPermissionRestriction `json:"EventView"` FeedEdit []UserPermissionRestriction `json:"FeedEdit"` FeedView []UserPermissionRestriction `json:"FeedView"` InterruptionSubmit []UserPermissionRestriction `json:"InterruptionSubmit"` InterruptionView []UserPermissionRestriction `json:"InterruptionView"` InterruptionViewSubmitResponsible []UserPermissionRestriction `json:"InterruptionViewSubmitResponsible"` LibraryVariableSetCreate []UserPermissionRestriction `json:"LibraryVariableSetCreate"` LibraryVariableSetDelete []UserPermissionRestriction `json:"LibraryVariableSetDelete"` LibraryVariableSetEdit []UserPermissionRestriction `json:"LibraryVariableSetEdit"` LibraryVariableSetView []UserPermissionRestriction `json:"LibraryVariableSetView"` LifecycleCreate []UserPermissionRestriction `json:"LifecycleCreate"` LifecycleDelete []UserPermissionRestriction `json:"LifecycleDelete"` LifecycleEdit []UserPermissionRestriction `json:"LifecycleEdit"` LifecycleView []UserPermissionRestriction `json:"LifecycleView"` MachineCreate []UserPermissionRestriction `json:"MachineCreate"` MachineDelete []UserPermissionRestriction `json:"MachineDelete"` MachineEdit []UserPermissionRestriction `json:"MachineEdit"` MachinePolicyCreate []UserPermissionRestriction `json:"MachinePolicyCreate"` MachinePolicyDelete []UserPermissionRestriction `json:"MachinePolicyDelete"` MachinePolicyEdit []UserPermissionRestriction `json:"MachinePolicyEdit"` MachinePolicyView []UserPermissionRestriction `json:"MachinePolicyView"` MachineView []UserPermissionRestriction `json:"MachineView"` ProcessEdit []UserPermissionRestriction `json:"ProcessEdit"` ProcessView []UserPermissionRestriction `json:"ProcessView"` ProjectCreate []UserPermissionRestriction `json:"ProjectCreate"` ProjectDelete []UserPermissionRestriction `json:"ProjectDelete"` ProjectEdit []UserPermissionRestriction `json:"ProjectEdit"` ProjectGroupCreate []UserPermissionRestriction `json:"ProjectGroupCreate"` ProjectGroupDelete []UserPermissionRestriction `json:"ProjectGroupDelete"` ProjectGroupEdit []UserPermissionRestriction `json:"ProjectGroupEdit"` ProjectGroupView []UserPermissionRestriction `json:"ProjectGroupView"` ProjectView []UserPermissionRestriction `json:"ProjectView"` ProxyCreate []UserPermissionRestriction `json:"ProxyCreate"` ProxyDelete []UserPermissionRestriction `json:"ProxyDelete"` ProxyEdit []UserPermissionRestriction `json:"ProxyEdit"` ProxyView []UserPermissionRestriction `json:"ProxyView"` ReleaseCreate []UserPermissionRestriction `json:"ReleaseCreate"` ReleaseDelete []UserPermissionRestriction `json:"ReleaseDelete"` ReleaseEdit []UserPermissionRestriction `json:"ReleaseEdit"` ReleaseView []UserPermissionRestriction `json:"ReleaseView"` RunbookEdit []UserPermissionRestriction `json:"RunbookEdit"` RunbookRunCreate []UserPermissionRestriction `json:"RunbookRunCreate"` RunbookRunDelete []UserPermissionRestriction `json:"RunbookRunDelete"` RunbookRunView []UserPermissionRestriction `json:"RunbookRunView"` RunbookView []UserPermissionRestriction `json:"RunbookView"` SpaceCreate []UserPermissionRestriction `json:"SpaceCreate"` SpaceDelete []UserPermissionRestriction `json:"SpaceDelete"` SpaceEdit []UserPermissionRestriction `json:"SpaceEdit"` SpaceView []UserPermissionRestriction `json:"SpaceView"` SubscriptionCreate []UserPermissionRestriction `json:"SubscriptionCreate"` SubscriptionDelete []UserPermissionRestriction `json:"SubscriptionDelete"` SubscriptionEdit []UserPermissionRestriction `json:"SubscriptionEdit"` SubscriptionView []UserPermissionRestriction `json:"SubscriptionView"` TagSetCreate []UserPermissionRestriction `json:"TagSetCreate"` TagSetDelete []UserPermissionRestriction `json:"TagSetDelete"` TagSetEdit []UserPermissionRestriction `json:"TagSetEdit"` TaskCancel []UserPermissionRestriction `json:"TaskCancel"` TaskCreate []UserPermissionRestriction `json:"TaskCreate"` TaskEdit []UserPermissionRestriction `json:"TaskEdit"` TaskView []UserPermissionRestriction `json:"TaskView"` TeamCreate []UserPermissionRestriction `json:"TeamCreate"` TeamDelete []UserPermissionRestriction `json:"TeamDelete"` TeamEdit []UserPermissionRestriction `json:"TeamEdit"` TeamView []UserPermissionRestriction `json:"TeamView"` TenantCreate []UserPermissionRestriction `json:"TenantCreate"` TenantDelete []UserPermissionRestriction `json:"TenantDelete"` TenantEdit []UserPermissionRestriction `json:"TenantEdit"` TenantView []UserPermissionRestriction `json:"TenantView"` TriggerCreate []UserPermissionRestriction `json:"TriggerCreate"` TriggerDelete []UserPermissionRestriction `json:"TriggerDelete"` TriggerEdit []UserPermissionRestriction `json:"TriggerEdit"` TriggerView []UserPermissionRestriction `json:"TriggerView"` UserEdit []UserPermissionRestriction `json:"UserEdit"` UserInvite []UserPermissionRestriction `json:"UserInvite"` UserRoleEdit []UserPermissionRestriction `json:"UserRoleEdit"` UserRoleView []UserPermissionRestriction `json:"UserRoleView"` UserView []UserPermissionRestriction `json:"UserView"` VariableEdit []UserPermissionRestriction `json:"VariableEdit"` VariableEditUnscoped []UserPermissionRestriction `json:"VariableEditUnscoped"` VariableView []UserPermissionRestriction `json:"VariableView"` VariableViewUnscoped []UserPermissionRestriction `json:"VariableViewUnscoped"` WorkerEdit []UserPermissionRestriction `json:"WorkerEdit"` WorkerView []UserPermissionRestriction `json:"WorkerView"` }
type Spaces ¶
type Spaces struct { Items []*Space `json:"Items"` PagedResults }
type SpacesQuery ¶
type SpacesQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type StaticWorkerPool ¶
type StaticWorkerPool struct { WorkerPoolType WorkerPoolType `json:"WorkerPoolType"` WorkerPool }
func NewStaticWorkerPool ¶
func NewStaticWorkerPool(name string) (*StaticWorkerPool, error)
NewStaticWorkerPool creates and initializes a static worker pool.
func (*StaticWorkerPool) GetID ¶
func (r *StaticWorkerPool) GetID() string
GetID returns the ID value of the resource.
func (*StaticWorkerPool) GetIsDefault ¶
func (s *StaticWorkerPool) GetIsDefault() bool
func (*StaticWorkerPool) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*StaticWorkerPool) GetModifiedBy ¶
func (r *StaticWorkerPool) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*StaticWorkerPool) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*StaticWorkerPool) GetWorkerPoolType ¶
func (s *StaticWorkerPool) GetWorkerPoolType() WorkerPoolType
GetWorkerPoolType returns the worker type for this worker pool.
func (*StaticWorkerPool) Validate ¶
func (s *StaticWorkerPool) Validate() error
Validate checks the state of the static worker pool and returns an error if invalid.
type StaticWorkerPools ¶
type StaticWorkerPools struct { Items []*StaticWorkerPool `json:"Items"` PagedResults }
type StepUsage ¶
type StepUsage struct { ProjectID string `json:"ProjectId,omitempty"` ProjectName string `json:"ProjectName,omitempty"` ProjectSlug string `json:"ProjectSlug,omitempty"` Steps []*StepUsageEntry `json:"Steps"` }
type StepUsageEntry ¶
type SubscriptionsQuery ¶
type SubscriptionsQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Spaces []string `uri:"spaces,omitempty" url:"spaces,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type TagSet ¶
type TagSet struct { Name string `json:"Name"` Tags []Tag `json:"Tags,omitempty"` // contains filtered or unexported fields }
func (*TagSet) GetModifiedBy ¶
func (r *TagSet) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*TagSet) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type TagSets ¶
type TagSets struct { Items []*TagSet `json:"Items"` PagedResults }
type TagSetsQuery ¶
type TargetUsageEntry ¶
type TasksQuery ¶
type TasksQuery struct { Environment string `uri:"environment,omitempty" url:"environment,omitempty"` HasPendingInterruptions bool `uri:"hasPendingInterruptions,omitempty" url:"hasPendingInterruptions,omitempty"` HasWarningsOrErrors bool `uri:"hasWarningsOrErrors,omitempty" url:"hasWarningsOrErrors,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IncludeSystem bool `uri:"includeSystem,omitempty" url:"includeSystem,omitempty"` IsActive bool `uri:"active,omitempty" url:"active,omitempty"` IsRunning bool `uri:"running,omitempty" url:"running,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` Node string `uri:"node,omitempty" url:"node,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Project string `uri:"project,omitempty" url:"project,omitempty"` Runbook string `uri:"runbook,omitempty" url:"runbook,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Spaces []string `uri:"spaces,omitempty" url:"spaces,omitempty"` States []string `uri:"states,omitempty" url:"states,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` Tenant string `uri:"tenant,omitempty" url:"tenant,omitempty"` }
type Team ¶
type Team struct { CanBeDeleted bool `json:"CanBeDeleted,omitempty"` CanBeRenamed bool `json:"CanBeRenamed,omitempty"` CanChangeMembers bool `json:"CanChangeMembers,omitempty"` CanChangeRoles bool `json:"CanChangeRoles,omitempty"` Description string `json:"Description,omitempty"` ExternalSecurityGroups []*NamedReferenceItem `json:"ExternalSecurityGroups"` MemberUserIDs []string `json:"MemberUserIds"` Name string `json:"Name" validate:"required"` SpaceID string `json:"SpaceId,omitempty"` // contains filtered or unexported fields }
func (*Team) GetModifiedBy ¶
func (r *Team) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Team) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type TeamMembershipQuery ¶
type Teams ¶
type Teams struct { Items []*Team `json:"Items"` PagedResults }
Teams defines a collection of teams with built-in support for paged results.
type TeamsQuery ¶
type TeamsQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IncludeSystem bool `uri:"includeSystem,omitempty" url:"includeSystem,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Spaces []string `uri:"spaces,omitempty" url:"spaces,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type Tenant ¶
type Tenant struct { ClonedFromTenantID string `json:"ClonedFromTenantId"` Description string `json:"Description"` Name string `json:"Name" validate:"required"` ProjectEnvironments map[string][]string `json:"ProjectEnvironments,omitempty"` SpaceID string `json:"SpaceId"` TenantTags []string `json:"TenantTags,omitempty"` // contains filtered or unexported fields }
func (*Tenant) GetModifiedBy ¶
func (r *Tenant) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Tenant) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type TenantVariablesQuery ¶
type TenantVariablesQuery struct {
ProjectID string `uri:"projectId,omitempty" url:"projectId,omitempty"`
}
type TenantedDeploymentMode ¶
type TenantedDeploymentMode string
type Tenants ¶
type Tenants struct { Items []*Tenant `json:"Items"` PagedResults }
type TenantsMissingVariablesQuery ¶
type TenantsMissingVariablesQuery struct { EnvironmentID []string `uri:"environmentId,omitempty" url:"environmentId,omitempty"` IncludeDetails bool `uri:"includeDetails,omitempty" url:"includeDetails,omitempty"` ProjectID string `uri:"projectId,omitempty" url:"projectId,omitempty"` TenantID string `uri:"tenantId,omitempty" url:"tenantId,omitempty"` }
type TenantsQuery ¶
type TenantsQuery struct { ClonedFromTenantID string `uri:"clonedFromTenantId,omitempty" url:"clonedFromTenantId,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IsClone bool `uri:"clone,omitempty" url:"clone,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` ProjectID string `uri:"projectId,omitempty" url:"projectId,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Tags []string `uri:"tags,omitempty" url:"tags,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type TentacleVersionDetails ¶
type TentacleVersionDetails struct { UpgradeLocked bool `json:"UpgradeLocked"` UpgradeSuggested bool `json:"UpgradeSuggested"` UpgradeRequired bool `json:"UpgradeRequired"` Version *string `json:"Version"` }
func NewTentacleVersionDetails ¶
func NewTentacleVersionDetails(version *string, upgradeLocked bool, upgradeSuggested bool, upgradeRequired bool) *TentacleVersionDetails
NewTentacleVersionDetails creates and initializes tentacle version details.
type TokenAccount ¶
type TokenAccount struct { Token *SensitiveValue `json:"Token,omitempty" validate:"required"` // contains filtered or unexported fields }
TokenAccount represents a token account.
func NewTokenAccount ¶
func NewTokenAccount(name string, token *SensitiveValue, options ...func(*TokenAccount)) (*TokenAccount, error)
NewTokenAccount creates and initializes a token account with a name and token.
func (*TokenAccount) GetAccountType ¶
func (a *TokenAccount) GetAccountType() AccountType
GetAccountType returns the type of this account.
func (*TokenAccount) GetDescription ¶
func (a *TokenAccount) GetDescription() string
GetDescription returns the description of the account.
func (*TokenAccount) GetEnvironmentIDs ¶
func (a *TokenAccount) GetEnvironmentIDs() []string
func (*TokenAccount) GetName ¶
func (a *TokenAccount) GetName() string
GetName returns the name of the account.
func (*TokenAccount) GetSpaceID ¶
func (a *TokenAccount) GetSpaceID() string
GetSpaceID returns the space ID of this account.
func (*TokenAccount) GetTenantIDs ¶
func (a *TokenAccount) GetTenantIDs() []string
func (*TokenAccount) GetTenantTags ¶
func (a *TokenAccount) GetTenantTags() []string
func (*TokenAccount) GetTenantedDeploymentMode ¶
func (a *TokenAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
func (*TokenAccount) SetDescription ¶
func (a *TokenAccount) SetDescription(description string)
SetDescription sets the description of the account.
func (*TokenAccount) SetName ¶
func (a *TokenAccount) SetName(name string)
SetName sets the name of the account.
func (*TokenAccount) SetSpaceID ¶
func (a *TokenAccount) SetSpaceID(spaceID string)
SetSpaceID sets the space ID of this account.
func (*TokenAccount) Validate ¶
func (t *TokenAccount) Validate() error
Validate checks the state of this account and returns an error if invalid.
type TriggerAction ¶
type TriggerAction struct { ActionType string `json:"ActionType" validate:"required,oneof=AutoDeploy DeployLatestRelease DeployNewRelease RunRunbook"` // contains filtered or unexported fields }
func NewTriggerAction ¶
func NewTriggerAction() *TriggerAction
func (*TriggerAction) GetID ¶
func (r *TriggerAction) GetID() string
GetID returns the ID value of the resource.
func (*TriggerAction) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*TriggerAction) GetModifiedBy ¶
func (r *TriggerAction) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*TriggerAction) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type TypeMetadata ¶
type TypeMetadata struct { Name string `json:"Name,omitempty"` Properties []*PropertyMetadata `json:"Properties"` }
func NewTypeMetadata ¶
func NewTypeMetadata() *TypeMetadata
type User ¶
type User struct { CanPasswordBeEdited bool `json:"CanPasswordBeEdited,omitempty"` DisplayName string `json:"DisplayName,omitempty"` EmailAddress string `json:"EmailAddress,omitempty"` Identities []Identity `json:"Identities,omitempty"` IsActive bool `json:"IsActive,omitempty"` IsRequestor bool `json:"IsRequestor,omitempty"` IsService bool `json:"IsService,omitempty"` Password string `json:"Password,omitempty" validate:"max=20"` Username string `json:"Username,omitempty"` // contains filtered or unexported fields }
User represents a user in Octopus.
func (*User) GetModifiedBy ¶
func (r *User) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*User) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type UserAuthentication ¶
type UserAuthentication struct { AuthenticationProviders []AuthenticationProviderElement CanCurrentUserEditIdentitiesForUser bool Links map[string]string }
UserAuthentication represents enabled authentication providers and whether the current user can edit logins for the given user.
type UserPermissionRestriction ¶
type UserPermissionRestriction struct { RestrictedToEnvironmentIds []string `json:"RestrictedToEnvironmentIds"` RestrictedToProjectGroupIds []string `json:"RestrictedToProjectGroupIds"` RestrictedToProjectIds []string `json:"RestrictedToProjectIds"` RestrictedToTenantIds []string `json:"RestrictedToTenantIds"` SpaceID string `json:"SpaceId,omitempty"` }
type UserPermissionSet ¶
type UserPermissionSet struct { ID string `json:"Id"` IsPermissionsComplete bool `json:"IsPermissionsComplete,omitempty"` IsTeamsComplete bool `json:"IsTeamsComplete,omitempty"` Links map[string]string `json:"Links,omitempty"` SpacePermissions SpacePermissions `json:"SpacePermissions,omitempty"` SystemPermissions []string `json:"SystemPermissions"` Teams []ProjectedTeamReferenceDataItem `json:"Teams"` }
type UserRolesQuery ¶
type UsernamePasswordAccount ¶
type UsernamePasswordAccount struct { Username string Password *SensitiveValue // contains filtered or unexported fields }
UsernamePasswordAccount represents a username/password account.
func NewUsernamePasswordAccount ¶
func NewUsernamePasswordAccount(name string, options ...func(*UsernamePasswordAccount)) (*UsernamePasswordAccount, error)
NewUsernamePasswordAccount creates and initializes a username/password account with a name.
func (*UsernamePasswordAccount) GetAccountType ¶
func (a *UsernamePasswordAccount) GetAccountType() AccountType
GetAccountType returns the type of this account.
func (*UsernamePasswordAccount) GetDescription ¶
func (a *UsernamePasswordAccount) GetDescription() string
GetDescription returns the description of the account.
func (*UsernamePasswordAccount) GetEnvironmentIDs ¶
func (a *UsernamePasswordAccount) GetEnvironmentIDs() []string
func (*UsernamePasswordAccount) GetName ¶
func (a *UsernamePasswordAccount) GetName() string
GetName returns the name of the account.
func (*UsernamePasswordAccount) GetSpaceID ¶
func (a *UsernamePasswordAccount) GetSpaceID() string
GetSpaceID returns the space ID of this account.
func (*UsernamePasswordAccount) GetTenantIDs ¶
func (a *UsernamePasswordAccount) GetTenantIDs() []string
func (*UsernamePasswordAccount) GetTenantTags ¶
func (a *UsernamePasswordAccount) GetTenantTags() []string
func (*UsernamePasswordAccount) GetTenantedDeploymentMode ¶
func (a *UsernamePasswordAccount) GetTenantedDeploymentMode() TenantedDeploymentMode
func (*UsernamePasswordAccount) SetDescription ¶
func (a *UsernamePasswordAccount) SetDescription(description string)
SetDescription sets the description of the account.
func (*UsernamePasswordAccount) SetName ¶
func (a *UsernamePasswordAccount) SetName(name string)
SetName sets the name of the account.
func (*UsernamePasswordAccount) SetSpaceID ¶
func (a *UsernamePasswordAccount) SetSpaceID(spaceID string)
SetSpaceID sets the space ID of this account.
func (*UsernamePasswordAccount) Validate ¶
func (u *UsernamePasswordAccount) Validate() error
Validate checks the state of this account and returns an error if invalid.
type Users ¶
type Users struct { Items []*User `json:"Items"` PagedResults }
Users defines a collection of users with built-in support for paged results.
type UsersQuery ¶
type Variable ¶
type Variable struct { Description string `json:"Description"` IsEditable bool `json:"IsEditable"` IsSensitive bool `json:"IsSensitive"` Name string `json:"Name"` Prompt *VariablePromptOptions `json:"Prompt"` Scope *VariableScope `json:"Scope,omitempty"` Type string `json:"Type"` Value string `json:"Value"` // contains filtered or unexported fields }
func NewVariable ¶
func NewVariable(name, valuetype, value, description string, scope *VariableScope, sensitive bool) *Variable
func (*Variable) GetID ¶
func (r *Variable) GetID() string
GetID returns the ID value of the resource.
func (*Variable) GetModifiedBy ¶
func (r *Variable) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Variable) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type VariableNamesQuery ¶
type VariablePreviewQuery ¶
type VariablePreviewQuery struct { Action string `uri:"action,omitempty" url:"action,omitempty"` Channel string `uri:"channel,omitempty" url:"channel,omitempty"` Environment string `uri:"environment,omitempty" url:"environment,omitempty"` Machine string `uri:"machine,omitempty" url:"machine,omitempty"` Project string `uri:"project,omitempty" url:"project,omitempty"` Role string `uri:"role,omitempty" url:"role,omitempty"` Runbook string `uri:"runbook,omitempty" url:"runbook,omitempty"` Tenant string `uri:"tenant,omitempty" url:"tenant,omitempty"` }
type VariablePromptOptions ¶
type VariableScope ¶
type VariableScope struct { Project []string `json:"Project,omitempty"` Environment []string `json:"Environment,omitempty"` Machine []string `json:"Machine,omitempty"` Role []string `json:"Role,omitempty"` TargetRole []string `json:"TargetRole,omitempty"` Action []string `json:"Action,omitempty"` User []string `json:"User,omitempty"` Private []string `json:"Private,omitempty"` Channel []string `json:"Channel,omitempty"` TenantTag []string `json:"TenantTag,omitempty"` Tenant []string `json:"Tenant,omitempty"` }
func NewVariableScope ¶
func NewVariableScope() *VariableScope
NewVariableScope initializes a variable scope.
type VariableScopeValues ¶
type VariableScopeValues struct { Actions []*ReferenceDataItem `json:"Actions"` Channels []*ReferenceDataItem `json:"Channels"` Environments []*ReferenceDataItem `json:"Environments"` Machines []*ReferenceDataItem `json:"Machines"` Processes []*ProcessReferenceDataItem `json:"Processes"` Roles []*ReferenceDataItem `json:"Roles"` TenantTags []*ReferenceDataItem `json:"TenantTags"` }
type VariableSet ¶
type VariableSet struct { OwnerID string `json:"OwnerId,omitempty"` ScopeValues *VariableScopeValues `json:"ScopeValues,omitempty"` SpaceID string `json:"SpaceId,omitempty"` Variables []*Variable `json:"Variables"` Version int32 `json:"Version,omitempty"` // contains filtered or unexported fields }
func NewVariableSet ¶
func NewVariableSet() *VariableSet
func (*VariableSet) GetID ¶
func (r *VariableSet) GetID() string
GetID returns the ID value of the resource.
func (*VariableSet) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*VariableSet) GetModifiedBy ¶
func (r *VariableSet) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*VariableSet) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
type VariablesQuery ¶
type VariablesQuery struct {
IDs []string `uri:"ids,omitempty" url:"ids,omitempty"`
}
type VersionControlSettings ¶
type VersionControlSettings struct { DefaultBranch string `json:"DefaultBranch,omitempty"` Password *SensitiveValue `json:"Password,omitempty"` URL string `json:"Url,omitempty"` Username string `json:"Username,omitempty"` }
type VersionRuleTestQuery ¶
type VersionRuleTestQuery struct { FeetType string `uri:"feetType,omitempty" url:"feetType,omitempty"` PreReleaseTag string `uri:"preReleaseTag,omitempty" url:"preReleaseTag,omitempty"` Version string `uri:"version,omitempty" url:"version,omitempty"` VersionRange string `uri:"versionRange,omitempty" url:"versionRange,omitempty"` }
type VersioningStrategy ¶
type VersioningStrategy struct { DonorPackage *DeploymentActionPackage `json:"DonorPackage,omitempty"` DonorPackageStepID *string `json:"DonorPackageStepId,omitempty"` Template string `json:"Template,omitempty"` }
type WorkItemLink ¶
type WorkItemLink struct { Description string `json:"Description,omitempty"` ID string `json:"Id,omitempty"` LinkURL string `json:"LinkUrl,omitempty"` Source string `json:"Source,omitempty"` }
func NewWorkItemLink ¶
func NewWorkItemLink() *WorkItemLink
type Worker ¶
type Worker struct { SpaceID string `json:"SpaceId,omitempty"` WorkerPoolIDs []string `json:"WorkerPoolIds,omitempty"` // contains filtered or unexported fields }
func (*Worker) GetSpaceID ¶
GetSpaceID returns the space ID that is associated with this worker.
func (*Worker) MarshalJSON ¶
MarshalJSON returns a worker as its JSON encoding.
func (*Worker) SetSpaceID ¶
SetSpaceID sets the space ID that is associated with this worker.
func (*Worker) UnmarshalJSON ¶
UnmarshalJSON sets this worker to its representation in JSON.
type WorkerPool ¶
type WorkerPool struct { CanAddWorkers bool `json:"CanAddWorkers"` Description string `json:"Description,omitempty"` IsDefault bool `json:"IsDefault"` Name string `json:"Name" validate:"required,notblank"` SpaceID string `json:"SpaceId,omitempty" validate:"omitempty,notblank"` SortOrder int `json:"SortOrder"` // contains filtered or unexported fields }
WorkerPool is the embedded struct used for all worker pools.
func (*WorkerPool) GetID ¶
func (r *WorkerPool) GetID() string
GetID returns the ID value of the resource.
func (*WorkerPool) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*WorkerPool) GetModifiedBy ¶
func (r *WorkerPool) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*WorkerPool) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*WorkerPool) GetName ¶
func (w *WorkerPool) GetName() string
GetName returns the name of the worker pool.
func (*WorkerPool) SetName ¶
func (w *WorkerPool) SetName(name string)
SetName sets the name of the worker pool.
func (*WorkerPool) Validate ¶
func (w *WorkerPool) Validate() error
Validate checks the state of the worker pool and returns an error if invalid.
type WorkerPoolResource ¶
type WorkerPoolResource struct { CanAddWorkers bool `json:"CanAddWorkers"` Description string `json:"Description,omitempty"` IsDefault bool `json:"IsDefault"` Name string `json:"Name" validate:"required,notblank"` SpaceID string `json:"SpaceId,omitempty" validate:"omitempty,notblank"` SortOrder int `json:"SortOrder"` WorkerPoolType WorkerPoolType `json:"WorkerPoolType"` WorkerType WorkerType `json:"WorkerType"` // contains filtered or unexported fields }
func (*WorkerPoolResource) GetID ¶
func (r *WorkerPoolResource) GetID() string
GetID returns the ID value of the resource.
func (*WorkerPoolResource) GetIsDefault ¶
func (w *WorkerPoolResource) GetIsDefault() bool
func (*WorkerPoolResource) GetLinks ¶
GetLinks returns the associated links with the value of this resource.
func (*WorkerPoolResource) GetModifiedBy ¶
func (r *WorkerPoolResource) GetModifiedBy() string
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*WorkerPoolResource) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*WorkerPoolResource) GetName ¶
func (w *WorkerPoolResource) GetName() string
GetName returns the name of the worker pool resource.
func (*WorkerPoolResource) GetWorkerPoolType ¶
func (w *WorkerPoolResource) GetWorkerPoolType() WorkerPoolType
GetWorkerPoolType returns the worker type for this worker pool resource.
func (*WorkerPoolResource) GetWorkerType ¶
func (w *WorkerPoolResource) GetWorkerType() WorkerType
GetWorkerType returns the worker type for this worker pool resource.
func (*WorkerPoolResource) SetName ¶
func (w *WorkerPoolResource) SetName(name string)
SetName sets the name of the worker pool resource.
func (*WorkerPoolResource) Validate ¶
func (w *WorkerPoolResource) Validate() error
Validate checks the state of the worker pool resource and returns an error if invalid.
type WorkerPoolResources ¶
type WorkerPoolResources struct { Items []*WorkerPoolResource `json:"Items"` PagedResults }
type WorkerPoolType ¶
type WorkerPoolType string
const ( WorkerPoolTypeDynamic WorkerPoolType = "DynamicWorkerPool" WorkerPoolTypeStatic WorkerPoolType = "StaticWorkerPool" )
type WorkerPools ¶
type WorkerPools struct { Items []IWorkerPool `json:"Items"` PagedResults }
type WorkerPoolsQuery ¶
type WorkerPoolsQuery struct { IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` }
type WorkerPoolsSummaryQuery ¶
type WorkerPoolsSummaryQuery struct { CommunicationStyles []string `uri:"commStyles,omitempty" url:"commStyles,omitempty"` HealthStatuses []string `uri:"healthStatuses,omitempty" url:"healthStatuses,omitempty"` HideEmptyWorkerPools bool `uri:"hideEmptyWorkerPools,omitempty" url:"hideEmptyWorkerPools,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IsDisabled bool `uri:"isDisabled,omitempty" url:"isDisabled,omitempty"` MachinePartialName string `uri:"machinePartialName,omitempty" url:"machinePartialName,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` ShellNames []string `uri:"shellNames,omitempty" url:"shellNames,omitempty"` }
type WorkerType ¶
type WorkerType string
const ( WorkerTypeUbuntu1804 WorkerType = "Ubuntu1804" WorkerTypeUbuntuDefault WorkerType = "UbuntuDefault" WorkerTypeWindows2016 WorkerType = "Windows2016" WorkerTypeWindows2019 WorkerType = "Windows2019" WorkerTypeUWindowsDefault WorkerType = "WindowsDefault" )
type Workers ¶
type Workers struct { Items []*Worker `json:"Items"` PagedResults }
Workers defines a collection of workers with built-in support for paged results.
type WorkersQuery ¶
type WorkersQuery struct { CommunicationStyles []string `uri:"commStyles,omitempty" url:"commStyles,omitempty"` HealthStatuses []string `uri:"healthStatuses,omitempty" url:"healthStatuses,omitempty"` IDs []string `uri:"ids,omitempty" url:"ids,omitempty"` IsDisabled bool `uri:"isDisabled,omitempty" url:"isDisabled,omitempty"` Name string `uri:"name,omitempty" url:"name,omitempty"` PartialName string `uri:"partialName,omitempty" url:"partialName,omitempty"` ShellNames []string `uri:"shellNames,omitempty" url:"shellNames,omitempty"` Skip int `uri:"skip,omitempty" url:"skip,omitempty"` Take int `uri:"take,omitempty" url:"take,omitempty"` Thumbprint string `uri:"thumbprint,omitempty" url:"thumbprint,omitempty"` WorkerPoolIDs []string `uri:"workerPoolIds" url:"workerPoolIds,omitempty"` }
Source Files
¶
- account.go
- account_resource.go
- account_service.go
- account_types.go
- account_usage.go
- account_utilities.go
- accounts.go
- action_template.go
- action_template_category.go
- action_template_parameter.go
- action_template_search.go
- action_template_service.go
- activity_log_element.go
- activity_log_entry.go
- amazon_web_services_account.go
- api_key.go
- api_key_service.go
- artifact.go
- artifact_service.go
- authentication.go
- authentication_provider_element.go
- authentication_service.go
- auto_deploy_release_override.go
- aws_elastic_container_registry.go
- azure_cloud_service_endpoint.go
- azure_devops_connectivity_check_service.go
- azure_devops_environment_service.go
- azure_service_principal_account.go
- azure_subscription_account.go
- azure_web_app_endpoint.go
- build_information.go
- build_information_service.go
- built_in_feed.go
- built_in_feed_statistics.go
- certificate.go
- certificate_configuration_service.go
- certificate_service.go
- channel.go
- channel_rule.go
- channel_service.go
- cloud_region_endpoint.go
- cloud_service_endpoint.go
- cloud_template_service.go
- commit_details.go
- communication_style_types.go
- community_action_template.go
- community_action_template_service.go
- configuration_section.go
- configuration_service.go
- connectivity_check.go
- constants_action_types.go
- constants_api_replies.go
- constants_client.go
- constants_feeds.go
- constants_links.go
- constants_operations.go
- constants_parameters.go
- constants_services.go
- constants_types.go
- control.go
- dashboard_configuration_service.go
- dashboard_item.go
- dashboard_service.go
- deployment.go
- deployment_action.go
- deployment_action_container.go
- deployment_action_package.go
- deployment_process.go
- deployment_process_service.go
- deployment_service.go
- deployment_step.go
- deployment_step_condition_types.go
- deployment_step_package_requirement.go
- deployment_step_start_trigger.go
- deployment_target.go
- display_info.go
- docker_container_registry.go
- duration_formatter.go
- dynamic_extension_service.go
- dynamic_worker_pool.go
- endpoint.go
- endpoint_authentication.go
- environment.go
- environment_service.go
- event_service.go
- extension_settings_values.go
- external_security_group_provider_service.go
- feature_configuration.go
- feed.go
- feed_resource.go
- feed_service.go
- feed_types.go
- form.go
- form_element.go
- github_feed.go
- helm_feed.go
- identity.go
- identity_claim.go
- interfaces.go
- interruption.go
- interruption_service.go
- interruption_submit_request.go
- invitation_service.go
- issue_tracker_service.go
- jira_integration_service.go
- kubernetes_endpoint.go
- lets_encrypt_configuration_service.go
- library.go
- library_variable_set.go
- library_variable_set_service.go
- library_variable_set_usage_entry.go
- licenses_service.go
- lifecycle.go
- lifecycle_service.go
- links.go
- list_api_metadata.go
- listening_tentacle_endpoint.go
- machine.go
- machine_cleanup_policy.go
- machine_connection_status.go
- machine_connectivity_policy.go
- machine_health_check_policy.go
- machine_policy.go
- machine_policy_service.go
- machine_role_service.go
- machine_script_policy.go
- machine_service.go
- machine_tentacle_version_details.go
- machine_update_policy.go
- maintenance_configuration_service.go
- maven_feed.go
- metadata.go
- migration_service.go
- named_reference_item.go
- not_all_validator.go
- nuget_feed.go
- nuget_service.go
- octopus_package_metadata_service.go
- octopus_project_feed.go
- octopus_server_node.go
- octopus_server_nodes_service.go
- octopusdeploy.go
- offline_drop_destination.go
- offline_drop_endpoint.go
- options_metadata.go
- package.go
- package_description.go
- package_metadata_service.go
- package_note.go
- package_notes_result.go
- package_reference.go
- package_service.go
- package_version.go
- paged_results.go
- performance_configuration_service.go
- permission_description.go
- permission_service.go
- phase.go
- polling_tentacle_endpoint.go
- process_reference_data_item.go
- progression.go
- project.go
- project_connectivity_policy.go
- project_group.go
- project_group_service.go
- project_service.go
- project_summary.go
- project_trigger.go
- project_trigger_action.go
- project_trigger_filter.go
- project_trigger_service.go
- project_variable_set_usage.go
- projected_team_reference_data_item.go
- property_applicability.go
- property_metadata.go
- property_value_resource.go
- proxy_service.go
- queries.go
- reference_data_item.go
- release.go
- release_changes.go
- release_creation_strategy.go
- release_package_version_build_information.go
- release_progression.go
- release_service.go
- release_usage.go
- release_usage_entry.go
- releases.go
- replacement_certificate.go
- reporting_service.go
- resource.go
- retention_period.go
- root_resource.go
- root_service.go
- runbook.go
- runbook_process.go
- runbook_process_service.go
- runbook_retention_period.go
- runbook_run_service.go
- runbook_service.go
- runbook_snapshot_service.go
- runbook_snapshot_usage.go
- runbook_snapshot_usage_entry.go
- runbook_step_usage.go
- scheduled_project_triggers_service.go
- scheduler_service.go
- scope_value.go
- scoped_user_role_service.go
- selected_package.go
- sensitive_value.go
- server_configuration_service.go
- server_status_service.go
- service.go
- service_fabric_endpoint.go
- skip_machine_behavior.go
- smtp_configuration_service.go
- space.go
- space_permissions.go
- space_service.go
- ssh_endpoint.go
- ssh_key_account.go
- static_worker_pool.go
- step_usage.go
- step_usage_entry.go
- subscription_service.go
- tag.go
- tag_set.go
- tag_set_service.go
- target_usage_entry.go
- task_service.go
- team.go
- team_membership_service.go
- team_service.go
- tenant.go
- tenant_service.go
- tenant_variable_service.go
- tenanted_deployment_mode_types.go
- tentacle_endpoint.go
- tentacle_version_details.go
- test_helpers.go
- token_account.go
- trigger_action.go
- type_metadata.go
- upgrade_configuration_service.go
- user.go
- user_authentication.go
- user_onboarding_service.go
- user_permission_restriction.go
- user_permission_set.go
- user_role_service.go
- user_service.go
- username_password_account.go
- util.go
- utilities.go
- valid_values.go
- variable_prompt_options.go
- variable_scope.go
- variable_scope_values.go
- variable_service.go
- variable_set.go
- variables.go
- version_control_settings.go
- versioning_strategy.go
- work_item_link.go
- worker.go
- worker_pool.go
- worker_pool_resource.go
- worker_pool_service.go
- worker_pool_types.go
- worker_service.go
- worker_tools_latest_images_service.go
- worker_types.go