types

package
v1.82.0 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 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 App

type App struct {
	ID                    string         `json:"id"`
	Slug                  string         `json:"slug"`
	Name                  string         `json:"name"`
	License               string         `json:"license"`
	IsAirgap              bool           `json:"isAirgap"`
	CurrentSequence       int64          `json:"currentSequence"`
	UpstreamURI           string         `json:"upstreamUri"`
	IconURI               string         `json:"iconUri"`
	UpdatedAt             *time.Time     `json:"createdAt"`
	CreatedAt             time.Time      `json:"updatedAt"`
	LastUpdateCheckAt     *time.Time     `json:"lastUpdateCheckAt"`
	HasPreflight          bool           `json:"hasPreflight"`
	IsConfigurable        bool           `json:"isConfigurable"`
	SnapshotTTL           string         `json:"snapshotTtl"`
	SnapshotSchedule      string         `json:"snapshotSchedule"`
	RestoreInProgressName string         `json:"restoreInProgressName"`
	RestoreUndeployStatus UndeployStatus `json:"restoreUndeloyStatus"`
	UpdateCheckerSpec     string         `json:"updateCheckerSpec"`
	AutoDeploy            AutoDeploy     `json:"autoDeploy"`
	IsGitOps              bool           `json:"isGitOps"`
	InstallState          string         `json:"installState"`
	LastLicenseSync       string         `json:"lastLicenseSync"`
	ChannelChanged        bool           `json:"channelChanged"`
}

func (*App) GetCurrentSequence

func (a *App) GetCurrentSequence() int64

func (*App) GetID

func (a *App) GetID() string

func (*App) GetIsAirgap

func (a *App) GetIsAirgap() bool

func (*App) GetSlug

func (a *App) GetSlug() string

type AppType

type AppType interface {
	GetID() string
	GetSlug() string
	GetCurrentSequence() int64
	GetIsAirgap() bool
}

type AutoDeploy

type AutoDeploy string
const (
	AutoDeployDisabled              AutoDeploy = "disabled"
	AutoDeploySemverPatch           AutoDeploy = "semver-patch"
	AutoDeploySemverMinorPatch      AutoDeploy = "semver-minor-patch"
	AutoDeploySemverMajorMinorPatch AutoDeploy = "semver-major-minor-patch"
	AutoDeploySequence              AutoDeploy = "sequence"
)

type HelmApp

type HelmApp struct {
	Release           helmrelease.Release
	Labels            map[string]string
	Version           int64 // populated from labels
	Namespace         string
	IsConfigurable    bool
	ChartPath         string
	CreationTimestamp time.Time

	// TODO: This is values the user is editing on the Config screen. This is a temporary solution while we figure out the UX.
	TempConfigValues map[string]kotsv1beta1.ConfigValue
}

func (*HelmApp) GetCurrentSequence

func (a *HelmApp) GetCurrentSequence() int64

func (*HelmApp) GetID

func (a *HelmApp) GetID() string

func (*HelmApp) GetIsAirgap

func (a *HelmApp) GetIsAirgap() bool

func (*HelmApp) GetSlug

func (a *HelmApp) GetSlug() string

type UndeployStatus

type UndeployStatus string
const (
	UndeployInProcess UndeployStatus = "in_process"
	UndeployCompleted UndeployStatus = "completed"
	UndeployFailed    UndeployStatus = "failed"
	UndeployReset     UndeployStatus = ""
)

Jump to

Keyboard shortcuts

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