service

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 18, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChillService

type ChillService interface {
	GetBuildTag() string
	UpdateDependencies(ctx cache.LocalCacheContext) error
}

type Dependency

type Dependency interface {
	GetName() string
	GetVersion() constraint.Constraint
	GetSpecificVersion() *version.Version
	SetSpecificVersion(*version.Version) error
	Cache() cache.CachedSource
}

type IncrementalConfig

type IncrementalConfig interface {
	ApplyIdempotent(c *ProjectConfig) error
}

type LocalDependency

type LocalDependency struct {
	Name            string
	Path            string
	Version         constraint.Constraint
	SpecificVersion *version.Version
}

func (*LocalDependency) Cache

func (ld *LocalDependency) Cache() cache.CachedSource

func (*LocalDependency) GetName

func (ld *LocalDependency) GetName() string

func (*LocalDependency) GetSpecificVersion

func (ld *LocalDependency) GetSpecificVersion() *version.Version

func (*LocalDependency) GetVersion

func (ld *LocalDependency) GetVersion() constraint.Constraint

func (*LocalDependency) SetSpecificVersion

func (ld *LocalDependency) SetSpecificVersion(v *version.Version) error

type ProjectConfig

type ProjectConfig struct {
	Name           string
	Registry       string
	Clients        map[string]string
	BaseVersion    *version.Version
	CurrentVersion *version.Version
	Stage          Stage
	Integration    string
	Dependencies   map[Dependency]bool
	TrafficTargets map[version.Version]int
	Secrets        []string
}

func (*ProjectConfig) ApplyIdempotent

func (pc *ProjectConfig) ApplyIdempotent(c *ProjectConfig) error

func (*ProjectConfig) GetBuildTag

func (pc *ProjectConfig) GetBuildTag(forceLocal bool) (string, bool)

func (*ProjectConfig) GetTrafficTargets

func (pc *ProjectConfig) GetTrafficTargets() (map[version.Version]int, error)

func (*ProjectConfig) UpdateDependencies

func (pc *ProjectConfig) UpdateDependencies(ctx cache.LocalCacheContext) error

type RemoteDependency

type RemoteDependency struct {
	Name            string
	Git             string
	Version         constraint.Constraint
	SpecificVersion *version.Version
}

func (*RemoteDependency) Cache

func (rd *RemoteDependency) Cache() cache.CachedSource

func (*RemoteDependency) GetName

func (rd *RemoteDependency) GetName() string

func (*RemoteDependency) GetSpecificVersion

func (rd *RemoteDependency) GetSpecificVersion() *version.Version

func (*RemoteDependency) GetVersion

func (rd *RemoteDependency) GetVersion() constraint.Constraint

func (*RemoteDependency) SetSpecificVersion

func (rd *RemoteDependency) SetSpecificVersion(v *version.Version) error

type Stage

type Stage int
const (
	StageDevelopment Stage = iota
	StageProduction
	StageMajor
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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