deployment

package
v0.0.0-...-8bea463 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 20, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ApplicationOrderFieldDeploymentTime application.ApplicationOrderField = "DEPLOYMENT_TIME"
	JobOrderFieldDeploymentTime         job.JobOrderField                 = "DEPLOYMENT_TIME"
)

Variables

This section is empty.

Functions

func NewLoaderContext

func NewLoaderContext(ctx context.Context, client hookd.Client) context.Context

Types

type ChangeDeploymentKeyInput

type ChangeDeploymentKeyInput struct {
	// The name of the team to update the deploy key for.
	TeamSlug slug.Slug `json:"team"`
}

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

func InfoForWorkload(ctx context.Context, workload workload.Workload) (*DeploymentInfo, error)

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 ChangeDeploymentKey(ctx context.Context, teamSlug slug.Slug) (*DeploymentKey, error)

func KeyForTeam

func KeyForTeam(ctx context.Context, teamSlug slug.Slug) (*DeploymentKey, error)

func (DeploymentKey) ID

func (d DeploymentKey) ID() ident.Ident

func (DeploymentKey) IsNode

func (DeploymentKey) IsNode()

type DeploymentResource

type DeploymentResource struct {
	Group     string `json:"group"`
	Kind      string `json:"kind"`
	Name      string `json:"name"`
	Version   string `json:"version"`
	Namespace string `json:"namespace"`
}

type DeploymentStatus

type DeploymentStatus struct {
	Status  string    `json:"status"`
	Message *string   `json:"message,omitempty"`
	Created time.Time `json:"created"`
}

type TeamDeployKeyUpdatedActivityLogEntry

type TeamDeployKeyUpdatedActivityLogEntry struct {
	activitylog.GenericActivityLogEntry
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL