target

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DeploymentLabels

func DeploymentLabels(app *fleet.Bundle) map[string]string

func IsUnavailable

func IsUnavailable(target *fleet.BundleDeployment) bool

func MaxUnavailable

func MaxUnavailable(targets []*Target) (int, error)

func Unavailable

func Unavailable(targets []*Target) (count int)

Types

type Manager

type Manager struct {
	// contains filtered or unexported fields
}

func (*Manager) BundleForDeployment

func (m *Manager) BundleForDeployment(bd *fleet.BundleDeployment) (string, string)

func (*Manager) BundlesForCluster

func (m *Manager) BundlesForCluster(cluster *fleet.Cluster) (result []*fleet.Bundle, _ error)

func (*Manager) ClusterGroup

func (m *Manager) ClusterGroup(cluster *fleet.Cluster) (*fleet.ClusterGroup, error)

func (*Manager) Targets

func (m *Manager) Targets(fleetBundle *fleet.Bundle) (result []*Target, _ error)

type Target

type Target struct {
	Deployment   *fleet.BundleDeployment
	ClusterGroup *fleet.ClusterGroup
	Cluster      *fleet.Cluster
	Bundle       *fleet.Bundle
	Target       *fleet.BundleTarget
	Options      fleet.BundleDeploymentOptions
	DeploymentID string
}

func (*Target) AssignNewDeployment

func (t *Target) AssignNewDeployment()

func (*Target) IsPaused

func (t *Target) IsPaused() bool

func (*Target) Message

func (t *Target) Message() string

func (*Target) State

func (t *Target) State() fleet.BundleState

Jump to

Keyboard shortcuts

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