Documentation ¶
Index ¶
- Constants
- func NewLoaderContext(ctx context.Context, client hookd.Client) context.Context
- type ChangeDeploymentKeyInput
- type ChangeDeploymentKeyPayload
- type Deployment
- type DeploymentConnection
- type DeploymentEdge
- type DeploymentInfo
- type DeploymentKey
- type DeploymentResource
- type DeploymentStatus
- type TeamDeployKeyUpdatedActivityLogEntry
Constants ¶
View Source
const ( ApplicationOrderFieldDeploymentTime application.ApplicationOrderField = "DEPLOYMENT_TIME" JobOrderFieldDeploymentTime job.JobOrderField = "DEPLOYMENT_TIME" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ChangeDeploymentKeyPayload ¶
type ChangeDeploymentKeyPayload struct { // The updated deploy key. DeploymentKey *DeploymentKey `json:"deploymentKey,omitempty"` }
type Deployment ¶
type Deployment struct { Resources []*DeploymentResource `json:"resources"` Statuses []*DeploymentStatus `json:"statuses"` Created time.Time `json:"created"` Repository string `json:"repository"` ExternalID string `json:"-"` TeamSlug slug.Slug `json:"-"` EnvironmentName string `json:"-"` }
func (Deployment) ID ¶
func (d Deployment) ID() ident.Ident
func (Deployment) IsNode ¶
func (Deployment) IsNode()
type DeploymentConnection ¶
type DeploymentConnection = pagination.Connection[*Deployment]
func ListForTeam ¶
func ListForTeam(ctx context.Context, teamSlug slug.Slug, page *pagination.Pagination) (*DeploymentConnection, error)
func ListForWorkload ¶
func ListForWorkload(ctx context.Context, teamSlug slug.Slug, environmentName, workloadName string, workloadType workload.Type, page *pagination.Pagination) (*DeploymentConnection, error)
type DeploymentEdge ¶
type DeploymentEdge = pagination.Edge[*Deployment]
type DeploymentInfo ¶
type DeploymentInfo struct { Deployer *string `json:"deployer,omitempty"` Timestamp *time.Time `json:"timestamp,omitempty"` CommitSha *string `json:"commitSha,omitempty"` URL *string `json:"url,omitempty"` TeamSlug slug.Slug `json:"-"` EnvironmentName string `json:"-"` WorkloadName string `json:"-"` WorkloadType workload.Type `json:"-"` }
func InfoForWorkload ¶
type DeploymentKey ¶
type DeploymentKey struct { // The actual key. Key string `json:"key"` // The date the deployment key was created. Created time.Time `json:"created"` // The date the deployment key expires. Expires time.Time `json:"expires"` TeamSlug slug.Slug `json:"-"` }
Deployment key type.
func ChangeDeploymentKey ¶
func KeyForTeam ¶
func (DeploymentKey) ID ¶
func (d DeploymentKey) ID() ident.Ident
func (DeploymentKey) IsNode ¶
func (DeploymentKey) IsNode()
type DeploymentResource ¶
type DeploymentStatus ¶
type TeamDeployKeyUpdatedActivityLogEntry ¶
type TeamDeployKeyUpdatedActivityLogEntry struct {
activitylog.GenericActivityLogEntry
}
Click to show internal directories.
Click to hide internal directories.