feedback

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2022 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CurrentStatus

type CurrentStatus string
const (
	StatusConditionNotStarted CurrentStatus = "Not Started"
	StatusConditionInProgress CurrentStatus = "In Progress"
	StatusConditionFinished   CurrentStatus = "Finished"
)

type Feedback

type Feedback interface {
	Initialize(ctx context.Context, groups []string) error
	SetCondition(ctx context.Context, name string, currentStatus CurrentStatus) error
}

func NewFeedback

func NewFeedback(logger log.Logger, client *client.Client, u *unstructured.Unstructured) Feedback

type Status

type Status struct {
	Conditions []*StatusCondition `json:"conditions"`
}

type StatusCondition

type StatusCondition struct {
	LastTransitionTime metav1.Time   `json:"lastTransitionTime"`
	Name               string        `json:"name"`
	CurrentStatus      CurrentStatus `json:"currentStatus"`
}

+k8s:deepcopy-gen=true

func (*StatusCondition) DeepCopy

func (in *StatusCondition) DeepCopy() *StatusCondition

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new StatusCondition.

func (*StatusCondition) DeepCopyInto

func (in *StatusCondition) DeepCopyInto(out *StatusCondition)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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