Documentation
¶
Index ¶
- func HashData(data string) string
- type App
- type AppReference
- type Artifact
- type AzureContainerRegistryConfiguration
- type Build
- type Condition
- type ConnectedAccounts
- type Connection
- type ConnectionEntity
- type ConnectionOrganizationIntegration
- type ContainerRegistry
- type Deployment
- type DeploymentApp
- type DeploymentAppSettings
- type DeploymentPipeline
- type DeploymentRun
- type DeploymentStep
- type DeploymentTask
- type ElemMatch
- type Env
- type Environment
- type ExecutionContext
- type Member
- type NewBuild
- type Organization
- type OrganizationReference
- type PaginatedResponse
- type Project
- type ProjectEnvironmentReference
- type ProjectEnvironmentWithWildCardReference
- type ProjectReference
- type Request
- type Rule
- type Secret
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type App ¶
type App struct { ID string `json:"id"` AlternateId string `json:"alternateId"` Name string `json:"name"` Organization OrganizationReference `json:"organization"` Project ProjectReference `json:"project"` }
type AppReference ¶
type AzureContainerRegistryConfiguration ¶
type AzureContainerRegistryConfiguration struct { RegistryId string `json:"registryId"` RegistryName string `json:"registryName"` TenantId string `json:"tenantId"` Secrets struct { Auth struct { Server string `json:"server"` Username string `json:"username"` EncryptedPassword string `json:"encryptedPassword"` } `json:"auth"` } `json:"secrets"` }
type Build ¶
type Build struct { Id string `json:"id"` Organization OrganizationReference `json:"organization"` Project ProjectReference `json:"project"` ProjectEnvironment ProjectEnvironmentWithWildCardReference `json:"projectEnvironment"` App AppReference `json:"app"` Tags []string `json:"tags;omitempty"` CommitSha string `json:"commitSha"` Artifact Artifact `json:"artifact"` }
type Condition ¶
type Condition struct { ConnectedAccounts *ConnectedAccounts `json:"connectedAccounts,omitempty"` ID string `json:"id,omitempty"` OrganizationID string `json:"organization.id,omitempty"` }
type ConnectedAccounts ¶
type ConnectedAccounts struct {
ElemMatch *ElemMatch `json:"$elemMatch"`
}
type Connection ¶
type Connection[T AzureContainerRegistryConfiguration] struct { Id string `json:"id"` Type string `json:"type"` Entity ConnectionEntity `json:"entity"` OrganizationIntegration ConnectionOrganizationIntegration `json:"organizationIntegration"` Config T `json:"config"` Status string `json:"status"` Organization OrganizationReference `json:"organization"` Project ProjectReference `json:"project"` }
type ConnectionEntity ¶
type ContainerRegistry ¶
type Deployment ¶
type Deployment struct { ID string `json:"id"` Name string `json:"name"` Description string `json:"description"` Organization OrganizationReference `json:"organization"` Apps []DeploymentApp `json:"apps"` }
type DeploymentApp ¶
type DeploymentApp struct { Project ProjectReference `json:"project"` App AppReference `json:"app"` DeploymentSettings DeploymentAppSettings `json:"deploymentSettings"` }
type DeploymentAppSettings ¶
type DeploymentAppSettings struct { ProjectEnvironment ProjectEnvironmentReference `json:"projectEnvironment"` Scale string `json:"scale"` Hostname string `json:"hostname"` Availability string `json:"availability"` Path string `json:"path"` }
type DeploymentPipeline ¶
type DeploymentPipeline struct {
Steps []DeploymentStep `json:"steps"`
}
type DeploymentRun ¶
type DeploymentRun struct { ID string `json:"id"` Status string `json:"status"` DeploymentId string `json:"deploymentId"` DeploymentSnapshot Deployment `json:"deploymentSnapshot"` Organization OrganizationReference `json:"organization"` Pipeline DeploymentPipeline `json:"pipeline"` }
type DeploymentStep ¶
type DeploymentStep struct { ID string `json:"id"` Status string `json:"status"` Type string `json:"type"` Name string `json:"name"` ParallelSteps []DeploymentStep `json:"parallelSteps,omitempty"` Tasks []DeploymentTask `json:"tasks,omitempty"` }
type DeploymentTask ¶
type Env ¶
type Env struct { Size string `json:"size"` CountVariables int `json:"countVariables"` Data string `json:"data"` ID *string `json:"id,omitempty"` Version *int `json:"version,omitempty"` ProjectEnv *ProjectEnvironmentReference `json:"projectEnvironment,omitempty"` SecretKeyID *int64 `json:"secretKeyId,omitempty"` Published *time.Time `json:"published,omitempty"` }
func (*Env) DecryptVarsAndSaveIntoFile ¶
type Environment ¶
type Environment struct { ID string `json:"id"` AlternateID string `json:"alternateId"` Name string `json:"name"` Color string `json:"color"` Organization OrganizationReference `json:"organization"` Project ProjectReference `json:"project"` }
type ExecutionContext ¶
type Member ¶
type Member struct { ID string `json:"id"` Name string `json:"name"` Email string `json:"email"` Organization OrganizationReference `json:"organization"` Rules []Rule `json:"rules"` }
type Organization ¶
type OrganizationReference ¶
type PaginatedResponse ¶
type ProjectReference ¶
type Secret ¶
type Secret struct { SecretKeyId int64 `json:"secret_key_id"` Base64SecretKey string `json:"secret_key"` }
func GenerateSecret ¶
GenerateSecret creates a new Secret with a randomly generated key
Click to show internal directories.
Click to hide internal directories.