tkgpackagedatamodel

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

nolint

nolint

Index

Constants

View Source
const (
	ClusterRoleBindingName              = "%s-%s-cluster-rolebinding"
	ClusterRoleName                     = "%s-%s-cluster-role"
	DefaultAPIVersion                   = "install.package.carvel.dev/v1alpha1"
	DefaultPollInterval                 = 1 * time.Second
	DefaultPollTimeout                  = 5 * time.Minute
	DefaultRepositoryImageTag           = "latest"
	DefaultRepositoryImageTagConstraint = ">0.0.0"
	ErrPackageNotInstalled              = "package install does not exist in the namespace"
	ErrRepoNotExists                    = "package repository does not exist in the namespace"
	KindClusterRole                     = "ClusterRole"
	KindClusterRoleBinding              = "ClusterRoleBinding"
	KindNamespace                       = "Namespace"
	KindPackageInstall                  = "PackageInstall"
	KindPackageRepository               = "PackageRepository"
	KindSecret                          = "Secret"
	KindSecretExport                    = "SecretExport"
	KindServiceAccount                  = "ServiceAccount"
	SecretGenAPINotAvailable            = "secret plugin can not be used as '%s' API is not available in the cluster"
	SecretGenGVR                        = "secretgen.carvel.dev/v1alpha1"
	SecretName                          = "%s-%s-values"
	ServiceAccountName                  = "%s-%s-sa"
	ShortDescriptionMaxLength           = 20
	TanzuPkgPluginAnnotation            = "tkg.tanzu.vmware.com/tanzu-package"
	TanzuPkgPluginPrefix                = "tanzu-package"
	TanzuPkgPluginResource              = "%s-%s"
	YamlSeparator                       = "---"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type OperationType added in v0.6.0

type OperationType int
const (
	OperationTypeInstall OperationType = iota
	OperationTypeUpdate
)

type PackageAvailableOptions

type PackageAvailableOptions struct {
	KubeConfig    string
	Namespace     string
	PackageName   string
	AllNamespaces bool
	ValuesSchema  bool
}

PackageAvailableOptions includes fields for package available

func NewPackageAvailableOptions

func NewPackageAvailableOptions() *PackageAvailableOptions

NewPackageAvailableOptions instantiates PackageAvailableOptions

type PackageOptions

type PackageOptions struct {
	Available              string
	ClusterRoleName        string
	ClusterRoleBindingName string
	KubeConfig             string
	Namespace              string
	PackageName            string
	PkgInstallName         string
	SecretName             string
	ServiceAccountName     string
	ValuesFile             string
	Version                string
	PollInterval           time.Duration
	PollTimeout            time.Duration
	AllNamespaces          bool
	CreateNamespace        bool
	Install                bool
	Wait                   bool
	SkipPrompt             bool
}

PackageOptions includes fields for package operations

func NewPackageOptions

func NewPackageOptions() *PackageOptions

NewPackageOptions instantiates PackageOptions

type PackagePluginNonCriticalError

type PackagePluginNonCriticalError struct {
	Reason string
}

PackagePluginNonCriticalError is used for non critical package plugin errors which should be treated more like warnings

func (*PackagePluginNonCriticalError) Error

type PackageProgress

type PackageProgress struct {
	// Use buffered chan so that sending goroutine doesn't block
	ProgressMsg chan string
	// Err chan for reporting errors
	Err chan error
	// Empty struct for signaling that goroutine is finished
	Done chan struct{}
}

PackageProgress includes channels for sending messages

type RegistrySecretOptions added in v0.8.0

type RegistrySecretOptions struct {
	AllNamespaces         bool
	ExportToAllNamespaces bool
	PasswordStdin         bool
	SkipPrompt            bool
	Export                TypeBoolPtr
	KubeConfig            string
	Namespace             string
	Password              string
	PasswordEnvVar        string
	PasswordFile          string
	PasswordInput         string
	Server                string
	SecretName            string
	Username              string
}

RegistrySecretOptions includes fields for registry image pull secret operations

func NewRegistrySecretOptions added in v0.8.0

func NewRegistrySecretOptions() *RegistrySecretOptions

NewRegistrySecretOptions instantiates RegistrySecretOptions

type RepositoryOptions

type RepositoryOptions struct {
	KubeConfig       string
	Namespace        string
	RepositoryName   string
	RepositoryURL    string
	PollInterval     time.Duration
	PollTimeout      time.Duration
	AllNamespaces    bool
	CreateRepository bool
	CreateNamespace  bool
	IsForceDelete    bool
	SkipPrompt       bool
	Wait             bool
}

RepositoryOptions includes fields for repository operations

func NewRepositoryOptions

func NewRepositoryOptions() *RepositoryOptions

NewRepositoryOptions instantiates RepositoryOptions

type ResourceType added in v0.6.0

type ResourceType int
const (
	ResourceTypePackageInstall ResourceType = iota
	ResourceTypePackageRepository
)

func (ResourceType) String added in v0.6.0

func (r ResourceType) String() string

type TypeBoolPtr added in v0.6.0

type TypeBoolPtr struct {
	ExportToAllNamespaces *bool
}

TypeBoolPtr satisfies Value interface defined in "https://github.com/spf13/pflag/blob/master/flag.go"

func (*TypeBoolPtr) Set added in v0.6.0

func (v *TypeBoolPtr) Set(val string) error

Set sets the TypeBoolPtr variable based on the string argument

func (*TypeBoolPtr) String added in v0.6.0

func (v *TypeBoolPtr) String() string

String returns the string representation of a TypeBoolPtr variable

func (*TypeBoolPtr) Type added in v0.6.0

func (v *TypeBoolPtr) Type() string

Type returns the default type for a TypeBoolPtr variable

Jump to

Keyboard shortcuts

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