v1alpha1

package
v1.46.1 Latest Latest
Warning

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

Go to latest
Published: May 24, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	PhasePending    = "Pending"
	PhaseDeployed   = "Deployed"
	PhaseSuperseded = "Superseded"
	PhaseSuspended  = "Suspended"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Duration

type Duration struct {
	time.Duration
}

Duration custom type for appropriate json marshalling / unmarshalling (like "15m")

func (Duration) MarshalJSON

func (d Duration) MarshalJSON() ([]byte, error)

func (*Duration) UnmarshalJSON

func (d *Duration) UnmarshalJSON(b []byte) error

type ExternalModuleRelease

type ExternalModuleRelease struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec ExternalModuleReleaseSpec `json:"spec"`

	Status ExternalModuleReleaseStatus `json:"status,omitempty"`
}

ExternalModuleRelease is a ExternalModule release object.

type ExternalModuleReleaseKind

type ExternalModuleReleaseKind struct{}

func (*ExternalModuleReleaseKind) GroupVersionKind

func (f *ExternalModuleReleaseKind) GroupVersionKind() schema.GroupVersionKind

func (*ExternalModuleReleaseKind) SetGroupVersionKind

func (f *ExternalModuleReleaseKind) SetGroupVersionKind(_ schema.GroupVersionKind)

type ExternalModuleReleaseSpec

type ExternalModuleReleaseSpec struct {
	ModuleName   string            `json:"moduleName"`
	Version      *semver.Version   `json:"version,omitempty"`
	ApplyAfter   *time.Time        `json:"applyAfter,omitempty"`
	Requirements map[string]string `json:"requirements,omitempty"`
}

type ExternalModuleReleaseStatus

type ExternalModuleReleaseStatus struct {
	Phase          string    `json:"phase,omitempty"`
	Approved       bool      `json:"approved"`
	TransitionTime time.Time `json:"transitionTime,omitempty"`
	Message        string    `json:"message"`
}

func (*ExternalModuleReleaseStatus) GetObjectKind

func (in *ExternalModuleReleaseStatus) GetObjectKind() schema.ObjectKind

type ExternalModuleSource

type ExternalModuleSource struct {
	metav1.TypeMeta `json:",inline"`
	// Standard object's metadata.
	// More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata
	// +optional
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// Spec defines the behavior of an ExternalModuleSource.
	Spec ExternalModuleSourceSpec `json:"spec"`

	// Status of an ExternalModuleSource.
	Status ExternalModuleSourceStatus `json:"status,omitempty"`
}

type ExternalModuleSourceSpec

type ExternalModuleSourceSpec struct {
	Registry struct {
		Repo      string `json:"repo"`
		DockerCFG string `json:"dockerCfg"`
	} `json:"registry"`
	ReleaseChannel string `json:"releaseChannel"`
}

type ExternalModuleSourceStatus

type ExternalModuleSourceStatus struct {
	SyncTime         time.Time     `json:"syncTime"`
	ModulesCount     int           `json:"modulesCount"`
	AvailableModules []string      `json:"availableModules"`
	Msg              string        `json:"message"`
	ModuleErrors     []ModuleError `json:"moduleErrors"`
}

type ModuleError

type ModuleError struct {
	Name  string `json:"name"`
	Error string `json:"error"`
}

Jump to

Keyboard shortcuts

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