lib

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Clean

func Clean() error

Types

type Build

type Build struct {
	Service      Service
	ArtifactPath string
}

func BuildOutdatedServices

func BuildOutdatedServices(bs common.BlobStorage) ([]Build, error)

func BuildServices

func BuildServices(bs common.BlobStorage, servicePaths []string) ([]Build, error)

type Checksum

type Checksum struct {
	Service  *Service
	Checksum string
}

func ComputeChecksums

func ComputeChecksums(servicePaths []string) ([]Checksum, error)

type PushStatus

type PushStatus string
const (
	StatusSuccessful PushStatus = "successful"
	StatusFailed     PushStatus = "failed"
)

type Pushed

type Pushed struct {
	Artifact string
	Status   PushStatus
	Key      *string
	Err      error
}

func PushAllArtifacts

func PushAllArtifacts(bs common.BlobStorage) ([]Pushed, error)

func PushArtifacts

func PushArtifacts(bs common.BlobStorage, artifacts []string) []Pushed

type Service

type Service struct {
	Path string
	Spec specification.Spec
}

func LoadService

func LoadService(path string) (*Service, error)

func LoadServices

func LoadServices(opts ...loadOption) ([]Service, error)

type ServiceState

type ServiceState struct {
	Service       *Service
	LocalChecksum string
	Checksum      string
	Version       int
}

func GetServiceState

func GetServiceState(bs common.BlobStorage, service *Service) (*ServiceState, error)

func GetServicesState

func GetServicesState(bs common.BlobStorage, services []Service) ([]ServiceState, error)

func List

func List(bs common.BlobStorage) ([]ServiceState, error)

func (ServiceState) Diff

func (s ServiceState) Diff() bool

Jump to

Keyboard shortcuts

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