get_deployment

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var SourceDataTypes = storage.NewDiscriminatedMapper(func(sd SourceData) string { return sd.Kind() })

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	AppID            string    `json:"app_id"`
	DeploymentNumber int       `json:"deployment_number"`
	Environment      string    `json:"environment"`
	Source           Source    `json:"source"`
	State            State     `json:"state"`
	RequestedAt      time.Time `json:"requested_at"`
	RequestedBy      User      `json:"requested_by"`
}

type Query

type Query struct {
	bus.Query[Deployment]

	AppID            string `json:"-"`
	DeploymentNumber int    `json:"-"`
}

Retrieve a deployment detail.

func (Query) Name_

func (Query) Name_() string

type Service

type Service struct {
	Name  string              `json:"name"`
	Image string              `json:"image"`
	Url   monad.Maybe[string] `json:"url"`
}

type Services

type Services []Service

func (*Services) Scan

func (s *Services) Scan(value any) error

type Source

type Source struct {
	Discriminator string     `json:"discriminator"`
	Data          SourceData `json:"data"`
}

type SourceData

type SourceData interface {
	Kind() string
}

type State

type State struct {
	Status     uint8                  `json:"status"`
	Services   monad.Maybe[Services]  `json:"services"`
	ErrCode    monad.Maybe[string]    `json:"error_code"`
	StartedAt  monad.Maybe[time.Time] `json:"started_at"`
	FinishedAt monad.Maybe[time.Time] `json:"finished_at"`
}

type User

type User struct {
	ID    string `json:"id"`
	Email string `json:"email"`
}

Jump to

Keyboard shortcuts

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