Documentation ¶
Index ¶
- Constants
- func CollectAvailableImages(inst *instance.Instance, updateable []*ServiceUpdate) (instance.ImageMap, error)
- func LockedServices(config instance.Config) flux.ServiceIDSet
- func NewStageTimer(stage string) *metrics.Timer
- func PrintResults(out io.Writer, results flux.ReleaseResult, verbose bool)
- type ExcludeFilter
- type IncludeFilter
- type LockedFilter
- type ReleaseContext
- func (rc *ReleaseContext) Clean()
- func (rc *ReleaseContext) CloneRepo() error
- func (rc *ReleaseContext) CommitAndPush(msg string) error
- func (rc *ReleaseContext) FindDefinedServices() ([]*ServiceUpdate, error)
- func (rc *ReleaseContext) PushChanges(updates []*ServiceUpdate, spec *flux.ReleaseSpec) error
- func (rc *ReleaseContext) RepoPath() string
- func (rc *ReleaseContext) SelectServices(results flux.ReleaseResult, logStatus statusFn, filters ...ServiceFilter) ([]*ServiceUpdate, error)
- type Releaser
- type ServiceFilter
- type ServiceUpdate
- type SpecificImageFilter
Constants ¶
View Source
const ( Locked = "locked" NotIncluded = "not included" Excluded = "excluded" DifferentImage = "a different image" NotInCluster = "not running in cluster" NotInRepo = "not found in repository" ImageNotFound = "cannot find one or more images" ImageUpToDate = "image(s) up to date" )
View Source
const FluxDaemonName = "fluxd"
View Source
const FluxServiceName = "fluxsvc"
Variables ¶
This section is empty.
Functions ¶
func CollectAvailableImages ¶
func CollectAvailableImages(inst *instance.Instance, updateable []*ServiceUpdate) (instance.ImageMap, error)
CollectAvailableImages is a convenient shim to `instance.CollectAvailableImages`.
func LockedServices ¶
func LockedServices(config instance.Config) flux.ServiceIDSet
func NewStageTimer ¶
func PrintResults ¶
func PrintResults(out io.Writer, results flux.ReleaseResult, verbose bool)
Types ¶
type ExcludeFilter ¶
func (*ExcludeFilter) Filter ¶
func (f *ExcludeFilter) Filter(u ServiceUpdate) flux.ServiceResult
type IncludeFilter ¶
func (*IncludeFilter) Filter ¶
func (f *IncludeFilter) Filter(u ServiceUpdate) flux.ServiceResult
type LockedFilter ¶
func (*LockedFilter) Filter ¶
func (f *LockedFilter) Filter(u ServiceUpdate) flux.ServiceResult
type ReleaseContext ¶
func NewReleaseContext ¶
func NewReleaseContext(inst *instance.Instance) *ReleaseContext
func (*ReleaseContext) Clean ¶
func (rc *ReleaseContext) Clean()
func (*ReleaseContext) CloneRepo ¶
func (rc *ReleaseContext) CloneRepo() error
func (*ReleaseContext) CommitAndPush ¶
func (rc *ReleaseContext) CommitAndPush(msg string) error
func (*ReleaseContext) FindDefinedServices ¶
func (rc *ReleaseContext) FindDefinedServices() ([]*ServiceUpdate, error)
func (*ReleaseContext) PushChanges ¶
func (rc *ReleaseContext) PushChanges(updates []*ServiceUpdate, spec *flux.ReleaseSpec) error
func (*ReleaseContext) RepoPath ¶
func (rc *ReleaseContext) RepoPath() string
func (*ReleaseContext) SelectServices ¶
func (rc *ReleaseContext) SelectServices(results flux.ReleaseResult, logStatus statusFn, filters ...ServiceFilter) ([]*ServiceUpdate, error)
SelectServices finds the services that exist both in the definition files and the running platform.
ServiceFilter's can be provided to filter the found services. Be careful about the ordering of the filters. Filters that are earlier in the slice will have higher priority (they are run first).
type Releaser ¶
type Releaser struct {
// contains filtered or unexported fields
}
func NewReleaser ¶
type ServiceFilter ¶
type ServiceFilter interface {
Filter(ServiceUpdate) flux.ServiceResult
}
type ServiceUpdate ¶
type SpecificImageFilter ¶
func (*SpecificImageFilter) Filter ¶
func (f *SpecificImageFilter) Filter(u ServiceUpdate) flux.ServiceResult
Click to show internal directories.
Click to hide internal directories.