types

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

shared types for support bundle controller and manager

Index

Constants

View Source
const (
	SupportBundleStateNone       = SupportBundleState("")
	SupportBundleStateGenerating = SupportBundleState("generating")
	SupportBundleStateReady      = SupportBundleState("ready")
	SupportBundleStateError      = SupportBundleState("error")

	// labels
	SupportBundleLabelKey = "rancher/supportbundle"
	KubevirtDrainKey      = "kubevirt.io/drain"

	SupportBundleManager = "support-bundle-manager"
	SupportBundleAgent   = "support-bundle-agent"

	PodCreationTimeout      = 5 * time.Minute
	PodCreationWaitInterval = time.Second
)
View Source
const (
	ManagerPhaseInit          = ManagerPhase("init")
	ManagerPhaseClusterBundle = ManagerPhase("cluster bundle")
	ManagerPhaseNodeBundle    = ManagerPhase("node bundle")
	ManagerPhasePackaging     = ManagerPhase("package")
	ManagerPhaseDone          = ManagerPhase("done")
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ManagerPhase added in v0.0.3

type ManagerPhase string

type ManagerStatus

type ManagerStatus struct {
	Phase        ManagerPhase
	Error        bool
	ErrorMessage string
	Progress     int
	FileName     string
	FileSize     int64
}

type SupportBundle added in v0.0.3

type SupportBundle struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   SupportBundleSpec   `json:"spec,omitempty"`
	Status SupportBundleStatus `json:"status,omitempty"`
}

type SupportBundleSpec added in v0.0.3

type SupportBundleSpec struct {
	IssueURL    string `json:"issueURL"`
	Description string `json:"description"`
}

type SupportBundleState added in v0.0.3

type SupportBundleState string

type SupportBundleStatus added in v0.0.3

type SupportBundleStatus struct {
	State    SupportBundleState `json:"state,omitempty"`
	Progress int                `json:"progress,omitempty"`
	FileName string             `json:"fileName,omitempty"`
	FileSize int64              `json:"fileSize,omitempty"`
}

Jump to

Keyboard shortcuts

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