types

package
v1.121.0 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ByCreated

type ByCreated []*SupportBundle

func (ByCreated) Len

func (a ByCreated) Len() int

func (ByCreated) Less

func (a ByCreated) Less(i, j int) bool

func (ByCreated) Swap

func (a ByCreated) Swap(i, j int)

type FileTree

type FileTree struct {
	Nodes []FileTreeNode `json:",inline"`
}

type FileTreeNode

type FileTreeNode struct {
	Name     string         `json:"name"`
	Path     string         `json:"path"`
	Children []FileTreeNode `json:"children,omitempty"`
}

type SupportBundle

type SupportBundle struct {
	ID         string                `json:"id"`
	Slug       string                `json:"slug"`
	AppID      string                `json:"appId"`
	Name       string                `json:"name"`
	Size       float64               `json:"size"`
	Status     SupportBundleStatus   `json:"status"`
	TreeIndex  string                `json:"treeIndex,omitempty"`
	CreatedAt  time.Time             `json:"createdAt"`
	UpdatedAt  *time.Time            `json:"updatedAt"`
	UploadedAt *time.Time            `json:"uploadedAt"`
	SharedAt   *time.Time            `json:"sharedAt"`
	IsArchived bool                  `json:"isArchived"`
	Progress   SupportBundleProgress `json:"progress"`
	URI        string                `json:"uri"`
	RedactURIs []string              `json:"redactURIs"`

	BundleSpec          *troubleshootv1beta2.SupportBundle `json:"-"`
	AdditionalRedactors *troubleshootv1beta2.Redactor      `json:"-"`
	Analysis            *SupportBundleAnalysis             `json:"-"`
}

type SupportBundleAnalysis

type SupportBundleAnalysis struct {
	Insights  []SupportBundleInsight `json:"insights"`
	CreatedAt time.Time              `json:"createdAt"`
}

type SupportBundleInsight

type SupportBundleInsight struct {
	Key             string                  `json:"key"`
	Severity        string                  `json:"severity"`
	Primary         string                  `json:"primary"`
	Detail          string                  `json:"detail"`
	Icon            string                  `json:"icon"`
	IconKey         string                  `json:"iconKey"`
	DesiredPosition float64                 `json:"desiredPosition"`
	InvolvedObject  *corev1.ObjectReference `json:"involvedObject"`
}

type SupportBundleProgress

type SupportBundleProgress struct {
	CollectorCount      int    `json:"collectorCount"`
	CollectorsCompleted int    `json:"collectorsCompleted"`
	Message             string `json:"message"`
}

TODO(dan): analyzer progress

type SupportBundleStatus

type SupportBundleStatus string
const (
	BUNDLE_FAILED   SupportBundleStatus = "failed"
	BUNDLE_UPLOADED SupportBundleStatus = "uploaded"
	BUNDLE_RUNNING  SupportBundleStatus = "running"
)

type TroubleshootOptions

type TroubleshootOptions struct {
	Origin        string
	InCluster     bool
	DisableUpload bool
}

Jump to

Keyboard shortcuts

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