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: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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