Documentation
¶
Index ¶
- type Account
- type Action
- type ActionPackage
- type AuthenticationResource
- type AzureCloudServiceEndpointResource
- type AzureCloudServiceResource
- type AzureServiceFabricEndpointResource
- type AzureServiceFabricResource
- type AzureWebAppEndpointResource
- type AzureWebAppResource
- type BashHealthCheckPolicy
- type Branch
- type Certificate
- type CertificateChain
- type Channel
- type Claim
- type CloudRegionEndpointResource
- type CloudRegionResource
- type CommunityStepTemplate
- type Container
- type ConversionState
- type Credentials
- type DeploymentActionContainerResource
- type DeploymentProcess
- type Dn
- type DonorPackage
- type Email
- type Environment
- type ErrorResponse
- type Extension
- type Feed
- type GeneralCollection
- type GitCredentials
- type GitCredentialsDetails
- type GitDependency
- type Identity
- type KubernetesEndpointResource
- type KubernetesTentacleEndpointResource
- type LibraryVariable
- type LibraryVariableSet
- type Lifecycle
- type ListeningEndpointResource
- type ListeningTentacleEndpointResource
- type Machine
- type MachineCleanupPolicy
- type MachineConnectivityPolicy
- type MachineEndpointResource
- type MachineHealthCheckPolicy
- type MachinePolicy
- type MachineUpdatePolicy
- type NameId
- type NamedResource
- type OfflineDropEndpointDestinationResource
- type OfflineDropEndpointResource
- type OfflineDropResource
- type Package
- type PersistenceSettings
- type Phase
- type Policy
- type PollingEndpointResource
- type PollingTentacleEndpointResource
- type PowerShellHealthCheckPolicy
- type Project
- type ProjectConnectivityPolicy
- type ProjectGroup
- type ProjectTrigger
- type ProjectTriggerAction
- type ProjectTriggerFilter
- type ProjectTriggerFilterPackage
- type ProjectVariable
- type Prompt
- type Role
- type Rule
- type RunRetentionPolicy
- type Runbook
- type RunbookProcess
- type Scope
- type Secret
- type Space
- type SshConnectionDeploymentTargetEndpoint
- type SshEndpointResource
- type Step
- type StepTemplate
- type StepTemplateParameterDisplaySettings
- type StepTemplateParameters
- type Tag
- type TagSet
- type Target
- type TargetResource
- type Team
- type Template
- type Tenant
- type TenantVariable
- type TentacleVersionDetails
- type User
- type Variable
- type VariableSet
- type VersioningStrategy
- type WorkerPool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Account ¶
type Account struct {
Id string
Name string
Slug *string
Description *string
SpaceId string
EnvironmentIds []string
TenantedDeploymentParticipation *string
TenantIds []string
TenantTags []string
AccountType string
// token
Token Secret
// aws
AccessKey *string
SecretKey Secret
// azure
SubscriptionNumber *string
ClientId *string
TenantId *string
Password Secret
AzureEnvironment *string
ResourceManagementEndpointBaseUri *string
ActiveDirectoryEndpointBaseUri *string
// azure subscription
ServiceManagementEndpointBaseUri *string
ServiceManagementEndpointSuffix *string
CertificateBytes Secret
CertificateThumbprint *string
// username
Username *string
// google
JsonKey Secret
}
type Action ¶
type Action struct {
Id string
Name *string
Slug *string
ActionType *string
Notes *string
IsDisabled bool
CanBeUsedForProjectVersioning bool
IsRequired bool
WorkerPoolId string
Container Container
WorkerPoolVariable *string
Environments []string
ExcludedEnvironments []string
Channels []string
TenantTags []string
Packages []Package
Condition *string
Properties map[string]any
Inputs map[string]any
GitDependencies []GitDependency
}
type ActionPackage ¶
type AuthenticationResource ¶
type AuthenticationResource struct {
AuthenticationType string
// KubernetesCertificateAuthenticationResource
ClientCertificate *string
// KubernetesPodServiceAuthenticationResource
TokenPath *string
// KubernetesStandardAccountAuthenticationResource
AccountId *string
// KubernetesAzureAuthenticationResource and KubernetesAwsAuthenticationResource
ClusterName *string
ClusterResourceGroup *string
// KubernetesAwsAuthenticationResource
UseInstanceRole *bool
AssumeRole *bool
AssumedRoleArn *string
AssumedRoleSession *string
AssumeRoleSessionDurationSeconds *int
AssumeRoleExternalId *string
// KubernetesGoogleCloudAuthenticationResource
UseVmServiceAccount *bool
ImpersonateServiceAccount *bool
ServiceAccountEmails *string
Project *string
Region *string
Zone *string
}
type AzureCloudServiceResource ¶
type AzureCloudServiceResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint string
Uri string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint AzureCloudServiceEndpointResource
}
type AzureServiceFabricEndpointResource ¶
type AzureServiceFabricEndpointResource struct {
CommunicationStyle string
ConnectionEndpoint string
SecurityMode string
ServerCertThumbprint string
ClientCertVariable string
CertificateStoreLocation string
CertificateStoreName string
AadCredentialType string
AadClientCredentialSecret string
AadUserCredentialUsername string
AadUserCredentialPassword Secret
DefaultWorkerPoolId string
}
type AzureServiceFabricResource ¶
type AzureServiceFabricResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint string
Uri string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint AzureServiceFabricEndpointResource
}
type AzureWebAppResource ¶
type AzureWebAppResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint string
Uri string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint AzureWebAppEndpointResource
}
type BashHealthCheckPolicy ¶
type Certificate ¶
type Certificate struct {
Id string
SpaceId string
Name string
Description *string
TenantedDeploymentParticipation string
EnvironmentIds []string
TenantIds []string
TenantTags []string
CertificateDataFormat string
Archived string
ReplacedBy string
SubjectDistinguishedName string
SubjectCommonName string
SubjectOrganization string
IssuerDistinguishedName string
IssuerCommonName string
IssuerOrganization string
SelfSigned bool
Thumbprint string
NotAfter string
NotBefore string
Notes string
IsExpired bool
HasPrivateKey bool
Version int
SerialNumber string
SignatureAlgorithmName string
SubjectAlternativeNames []string
CertificateChain []CertificateChain
}
type CertificateChain ¶ added in v0.1.829
type CloudRegionResource ¶
type CloudRegionResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint string
Uri string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint CloudRegionEndpointResource
}
type CommunityStepTemplate ¶ added in v0.1.1204
type CommunityStepTemplate struct {
Id string `json:"Id"`
Name string `json:"Name"`
Type string `json:"Type"`
Author string `json:"Author"`
Description string `json:"Description"`
Website string `json:"Website"`
HistoryUrl string `json:"HistoryUrl"`
Properties map[string]string `json:"Properties"`
Parameters []StepTemplateParameters `json:"Parameters"`
Version int `json:"Version"`
StepPackageId string `json:"StepPackageId"`
}
type ConversionState ¶
type ConversionState struct {
VariablesAreInGit bool
}
type Credentials ¶
type DeploymentProcess ¶
type DonorPackage ¶
type Environment ¶
type ErrorResponse ¶ added in v0.1.927
type ErrorResponse struct {
ErrorMessage string
}
type Feed ¶
type Feed struct {
Id string
SpaceId string
Name string
Slug *string
FeedType *string
FeedUri *string
Username *string
Password *Secret
PackageAcquisitionLocationOptions []string
RetentionPolicyId *string
DownloadAttempts *int
DownloadRetryBackoffSeconds *int
// Docker
RegistryPath *string
ApiVersion *string
// ECR
AccessKey *string
SecretKey *Secret
Region *string
// Nuget
EnhancedMode bool
}
type GeneralCollection ¶
type GitCredentials ¶
type GitCredentials struct {
Id string
SpaceId string
Name string
Description *string
Details GitCredentialsDetails
}
type GitCredentialsDetails ¶
type GitDependency ¶ added in v0.1.1114
type KubernetesEndpointResource ¶
type KubernetesEndpointResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint *string
Uri *string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint KubernetesTentacleEndpointResource
}
type KubernetesTentacleEndpointResource ¶
type KubernetesTentacleEndpointResource struct {
CommunicationStyle string
ClusterCertificate *string
ClusterCertificatePath *string
ClusterUrl *string
Namespace *string
SkipTlsVerification *string
ProxyId *string
DefaultWorkerPoolId *string
Container DeploymentActionContainerResource
Authentication AuthenticationResource
}
KubernetesTentacleEndpointResource is based on KubernetesEndpointResource from the client library
type LibraryVariable ¶
type LibraryVariableSet ¶
type ListeningEndpointResource ¶
type ListeningEndpointResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint string
Uri string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint ListeningTentacleEndpointResource
}
type ListeningTentacleEndpointResource ¶
type ListeningTentacleEndpointResource struct {
CommunicationStyle string
Uri string
ProxyId string
TentacleVersionDetails TentacleVersionDetails
}
ListeningTentacleEndpointResource is based on ListeningTentacleEndpointResource from the client library
type Machine ¶ added in v0.1.433
type Machine struct {
NameId
Endpoint MachineEndpointResource
}
Machine is a minimal representation capturing the common fields required to distinguish and identify a target
type MachineCleanupPolicy ¶
type MachineConnectivityPolicy ¶
type MachineConnectivityPolicy struct {
MachineConnectivityBehavior string
}
type MachineEndpointResource ¶ added in v0.1.433
type MachineEndpointResource struct {
CommunicationStyle string
}
type MachineHealthCheckPolicy ¶
type MachineHealthCheckPolicy struct {
HealthCheckInterval *string
HealthCheckCron *string
HealthCheckCronTimezone *string
HealthCheckType *string
PowerShellHealthCheckPolicy PowerShellHealthCheckPolicy
BashHealthCheckPolicy BashHealthCheckPolicy
}
type MachinePolicy ¶
type MachinePolicy struct {
Id string
Name string
SpaceId string
Description *string
IsDefault bool
PollingRequestQueueTimeout string
PollingRequestMaximumMessageProcessingTimeout string
ConnectionRetrySleepInterval string
ConnectionRetryCountLimit *int
ConnectionRetryTimeLimit string
ConnectionConnectTimeout string
MachineHealthCheckPolicy MachineHealthCheckPolicy
MachineConnectivityPolicy MachineConnectivityPolicy
MachineCleanupPolicy MachineCleanupPolicy
MachineUpdatePolicy MachineUpdatePolicy
}
type MachineUpdatePolicy ¶
type NamedResource ¶ added in v0.1.989
type NamedResource interface {
GetName() string
}
type OfflineDropEndpointResource ¶
type OfflineDropEndpointResource struct {
CommunicationStyle string
Destination OfflineDropEndpointDestinationResource
ApplicationsDirectory string
OctopusWorkingDirectory string
}
type OfflineDropResource ¶
type OfflineDropResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint string
Uri string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint OfflineDropEndpointResource
}
type PersistenceSettings ¶
type PersistenceSettings struct {
Type string
Url string
Credentials Credentials
DefaultBranch string
BasePath string
ProtectedDefaultBranch bool
ProtectedBranchNamePatterns []string
ConversionState ConversionState
}
type PollingEndpointResource ¶
type PollingEndpointResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint string
Uri string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint PollingTentacleEndpointResource
}
type PollingTentacleEndpointResource ¶
type PollingTentacleEndpointResource struct {
CommunicationStyle string
Uri string
TentacleVersionDetails TentacleVersionDetails
}
PollingTentacleEndpointResource is based on PollingTentacleEndpointResource from the client library
type Project ¶
type Project struct {
NameId
Slug *string
Description *string
AutoCreateRelease bool
DefaultGuidedFailureMode *string
DefaultToSkipIfAlreadyInstalled bool
DiscreteChannelRelease bool
IsDisabled bool
IsVersionControlled bool
LifecycleId string
ProjectGroupId string
DeploymentProcessId *string
TenantedDeploymentMode *string
ProjectConnectivityPolicy ProjectConnectivityPolicy
Templates []Template
VariableSetId *string
IncludedLibraryVariableSetIds []string
PersistenceSettings PersistenceSettings
VersioningStrategy VersioningStrategy
}
func (Project) HasCacConfigured ¶
type ProjectGroup ¶
type ProjectTrigger ¶
type ProjectTrigger struct {
Id string
Name string
Description *string
ProjectId string
IsDisabled bool
Filter ProjectTriggerFilter
Action ProjectTriggerAction
}
type ProjectTriggerAction ¶
type ProjectTriggerAction struct {
ActionType string
RunbookId *string
ShouldRedeployWhenMachineHasBeenDeployedTo bool
Id *string
LastModifiedOn *string
LastModifiedBy *string
SourceEnvironmentIds []string
EnvironmentIds []string
DestinationEnvironmentId *string
EnvironmentId *string
ShouldRedeployWhenReleaseIsCurrent *bool
ChannelId *string
TenantIds []string
TenantTags []string
}
type ProjectTriggerFilter ¶
type ProjectTriggerFilter struct {
FilterType string
EnvironmentIds []string
Roles []string
EventGroups []string
EventCategories []string
DaysOfWeek []string
Timezone *string
Id *string
LastModifiedOn *string
LastModifiedBy *string
Packages []ProjectTriggerFilterPackage
StartTime *string
MonthlyScheduleType *string
DateOfMonth *string
DayNumberOfMonth *string
DayOfWeek *string
Interval *string
RunAfter *string
RunUntil *string
CronExpression *string
HourInterval *int
MinuteInterval *int
}
type ProjectTriggerFilterPackage ¶ added in v0.1.1112
type ProjectVariable ¶
type Rule ¶
type Rule struct {
VersionRange *string
Tag *string
ActionPackages []ActionPackage
Actions []string
}
type RunRetentionPolicy ¶
type Runbook ¶
type Runbook struct {
NameId
Slug *string
Description *string
RunbookProcessId *string
PublishedRunbookSnapshotId *string
ProjectId string
MultiTenancyMode *string
ConnectivityPolicy ProjectConnectivityPolicy
EnvironmentScope *string
Environments []string
DefaultGuidedFailureMode *string
RunRetentionPolicy RunRetentionPolicy
ForcePackageDownload bool
}
type RunbookProcess ¶
type Scope ¶
type Scope struct {
Environment []string
Role []string
Machine []string
Channel []string
TenantTag []string
Action []string
ProcessOwner []string
}
func (*Scope) ScopeDescription ¶ added in v0.1.940
type SshConnectionDeploymentTargetEndpoint ¶
type SshConnectionDeploymentTargetEndpoint struct {
CommunicationStyle string
AccountId string
Host string
Port int
Fingerprint string
ProxyId string
DotNetCorePlatform string
}
SshConnectionDeploymentTargetEndpoint is based on SshEndpointResource from the client library
type SshEndpointResource ¶
type SshEndpointResource struct {
Target
Id string
Name string
Roles []string
TenantIds []string
TenantTags []string
TenantedDeploymentParticipation string
Thumbprint *string
Uri *string
IsDisabled bool
MachinePolicyId string
HealthStatus string
HasLatestCalamari bool
StatusSummary string
IsInProcess bool
OperatingSystem string
ShellName string
ShellVersion string
Architecture string
Endpoint SshConnectionDeploymentTargetEndpoint
}
type StepTemplate ¶ added in v0.1.1204
type StepTemplate struct {
Id string `json:"Id"`
SpaceId *string `json:"SpaceId"`
Version *int `json:"Version"`
Name string `json:"Name"`
Description string `json:"Description"`
ActionType string `json:"ActionType"`
Packages []Package `json:"Packages"`
GitDependencies []string `json:"GitDependencies"`
Properties map[string]string `json:"Properties"`
LastModifiedBy string `json:"LastModifiedBy"`
Category string `json:"Category"`
StepPackageId string `json:"StepPackageId"`
Parameters []StepTemplateParameters `json:"Parameters"`
CommunityActionTemplateId *string `json:"CommunityActionTemplateId"`
}
type StepTemplateParameterDisplaySettings ¶ added in v0.1.1204
type StepTemplateParameterDisplaySettings struct {
OctopusControlType string `json:"Octopus.ControlType"`
}
type StepTemplateParameters ¶ added in v0.1.1204
type Target ¶ added in v0.1.1080
func (Target) GetEnvironmentIds ¶ added in v0.1.1080
type TargetResource ¶ added in v0.1.1080
type TargetResource interface {
GetEnvironmentIds() []string
}
type Template ¶
type Template struct {
Id string
Name *string
Label *string
HelpText *string
DefaultValue any
DisplaySettings map[string]string
}
func (Template) GetDefaultValueString ¶ added in v0.1.617
type TenantVariable ¶
type TenantVariable struct {
TenantId string
SpaceId string
TenantName string
ConcurrencyToken string
ProjectVariables map[string]ProjectVariable
LibraryVariables map[string]LibraryVariable
}
type TentacleVersionDetails ¶
type VariableSet ¶
type VersioningStrategy ¶
type VersioningStrategy struct {
Template string
DonorPackageStepId *string
DonorPackage *DonorPackage
}
Source Files
¶
- octopus_account.go
- octopus_azure_cloud_service_deployment_target.go
- octopus_azure_service_fabric_cluster_deployment_target.go
- octopus_azure_web_app_deployment_target.go
- octopus_branch.go
- octopus_certificate.go
- octopus_channel.go
- octopus_cloud_region_deployment_target.go
- octopus_collection.go
- octopus_deployment_process.go
- octopus_environment.go
- octopus_error.go
- octopus_feed.go
- octopus_gitcredential.go
- octopus_kubernetes_cluster_deployment_target.go
- octopus_library_variable_set.go
- octopus_lifecycle.go
- octopus_listening_tentacle_deployment_target.go
- octopus_machine.go
- octopus_machine_policy.go
- octopus_name_id.go
- octopus_offline_package_drop_deployment_target.go
- octopus_polling_tentacle_deployment_target.go
- octopus_project.go
- octopus_project_group.go
- octopus_project_trigger.go
- octopus_role.go
- octopus_runbook.go
- octopus_runbook_process.go
- octopus_space.go
- octopus_ssh_connection_deployment_target.go
- octopus_step_template.go
- octopus_tag_set.go
- octopus_target.go
- octopus_team.go
- octopus_tenant.go
- octopus_tenant_variable.go
- octopus_user.go
- octopus_variable_set.go
- octopus_worker_pool.go
Click to show internal directories.
Click to hide internal directories.