status

package
v2.33.1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Name = "status"
)

Variables

This section is empty.

Functions

func IsInvalidConfig

func IsInvalidConfig(err error) bool

IsInvalidConfig asserts invalidConfigError.

func IsWrongStatusError added in v2.4.0

func IsWrongStatusError(err error) bool

IsWrongStatusError asserts wrongStatusError.

Types

type Config

type Config struct {
	CtrlClient  client.Client
	HelmClients *clientpair.ClientPair
	K8sClient   kubernetes.Interface
	Logger      micrologger.Logger

	HTTPClientTimeout time.Duration
}

Config represents the configuration used to create a new status resource.

type Request added in v2.4.0

type Request struct {
	AppVersion   string  `json:"app_version"`
	LastDeployed v1.Time `json:"last_deployed"`
	Reason       string  `json:"reason"`
	Status       string  `json:"status"`
	Version      string  `json:"version"`
}

type Resource

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

Resource implements the status resource.

func New

func New(config Config) (*Resource, error)

New creates a new configured status resource.

func (*Resource) EnsureCreated

func (r *Resource) EnsureCreated(ctx context.Context, obj interface{}) error

func (*Resource) EnsureDeleted

func (r *Resource) EnsureDeleted(ctx context.Context, obj interface{}) error

EnsureDeleted is not implemented for the status resource.

func (*Resource) Name

func (r *Resource) Name() string

Jump to

Keyboard shortcuts

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