types

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: May 30, 2023 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause, + 8 more Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	StatusUnknown  = "Unknown"
	StatusDoing    = "Doing"
	StatusSuccess  = "Success"
	StatusFailed   = "Failed"
	StatusRetrying = "Retrying"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application added in v1.4.0

type Application struct {
	RegistryDomain   string `json:"registryDomain" validate:"hostname_rfc1123"`
	RegistryUsername string `json:"registryUsername"`
	RegistryPassword []byte `json:"registryPassword"`
}

type Audit added in v1.3.1

type Audit struct {
	ElasticSearch *ElasticSearch `json:"elasticSearch,omitempty"`
}

type Auth

type Auth struct {
	TKEAuth  *TKEAuth  `json:"tke,omitempty"`
	OIDCAuth *OIDCAuth `json:"oidc,omitempty"`
}

type Basic

type Basic struct {
	Username string `json:"username"`
	Password []byte `json:"password"`
}

type Business

type Business struct {
}

type Cert

type Cert struct {
	SelfSignedCert *SelfSignedCert `json:"selfSigned,omitempty"`
	ThirdPartyCert *ThirdPartyCert `json:"thirdParty,omitempty"`
}

type Chart added in v1.9.1

type Chart struct {
	Name           string
	TenantID       string
	ChartGroupName string
	// install options
	Version string
	// install options
	TargetCluster string
	// install options
	TargetNamespace string
	// install options
	// chartutil.ReadValues/ReadValuesFile
	Values chartutil.Values
}

type ClusterProgress

type ClusterProgress struct {
	Status     ClusterProgressStatus `json:"status"`
	Data       string                `json:"data"`
	URL        string                `json:"url,omitempty"`
	Username   string                `json:"username,omitempty"`
	Password   []byte                `json:"password,omitempty"`
	CACert     []byte                `json:"caCert,omitempty"`
	Hosts      []string              `json:"hosts,omitempty"`
	Servers    []string              `json:"servers,omitempty"`
	Kubeconfig []byte                `json:"kubeconfig,omitempty"`
}

type ClusterProgressStatus

type ClusterProgressStatus string

type Config

type Config struct {
	Basic         *Basic          `json:"basic"`
	Auth          Auth            `json:"auth"`
	Registry      Registry        `json:"registry"`
	Business      *Business       `json:"business,omitempty"`
	Monitor       *Monitor        `json:"monitor,omitempty"`
	Logagent      *Logagent       `json:"logagent,omitempty"`
	HA            *HA             `json:"ha,omitempty"`
	Gateway       *Gateway        `json:"gateway,omitempty"`
	Audit         *Audit          `json:"audit,omitempty"`
	Application   *Application    `json:"application,omitempty"`
	Mesh          *Mesh           `json:"mesh,omitempty"`
	SkipSteps     []string        `json:"skipSteps,omitempty"`
	ExpansionApps []*ExpansionApp `json:"expansionApps,omitempty"`
	PlatformApps  []*PlatformApp  `json:"platformApps,omitempty"`
}

Config is the installer config

type CreateClusterPara

type CreateClusterPara struct {
	Cluster v1.Cluster `json:"cluster"`
	Config  Config     `json:"Config"`
}

func (*CreateClusterPara) RegistryIP added in v1.8.0

func (c *CreateClusterPara) RegistryIP() string

type ESMonitor

type ESMonitor struct {
	URL      string `json:"url" validate:"required"`
	Username string `json:"username"`
	Password []byte `json:"password"`
}

type ElasticSearch added in v1.3.1

type ElasticSearch struct {
	Address     string `json:"address" validate:"required"`
	ReserveDays int    `json:"reserveDays" validate:"required"`
	Username    string `json:"username"`
	Password    string `json:"password"`
	Index       string `json:"index"`
}

type ExpansionApp added in v1.9.1

type ExpansionApp struct {
	Name   string
	Enable bool
	Chart  Chart
}

type ExternalInfluxDBMonitor

type ExternalInfluxDBMonitor struct {
	URL      string `json:"url" validate:"required"`
	Username string `json:"username" validate:"required"`
	Password []byte `json:"password" validate:"required"`
}

type Gateway

type Gateway struct {
	Domain string `json:"domain"`
	Cert   *Cert  `json:"cert"`
}

type HA

type HA struct {
	TKEHA        *TKEHA        `json:"tke,omitempty"`
	ThirdPartyHA *ThirdPartyHA `json:"thirdParty,omitempty"`
}

func (*HA) VIP

func (ha *HA) VIP() string

type Handler

type Handler struct {
	Name string
	Func func(ctx context.Context) error
}

type InfluxDBMonitor

type InfluxDBMonitor struct {
	LocalInfluxDBMonitor    *LocalInfluxDBMonitor    `json:"local,omitempty"`
	ExternalInfluxDBMonitor *ExternalInfluxDBMonitor `json:"external,omitempty"`
}

type Keepalived

type Keepalived struct {
	VIP string `json:"vip,omitempty"`
}

type LocalInfluxDBMonitor

type LocalInfluxDBMonitor struct {
}

type Logagent added in v1.3.1

type Logagent struct {
	RegistryDomain    string `json:"domain,omitempty"`
	RegistryNamespace string `json:"namespace:omitempty"`
}

type Mesh added in v1.6.0

type Mesh struct {
}

type Monitor

type Monitor struct {
	ThanosMonitor   *ThanosMonitor   `json:"thanos,omitempty"`
	ESMonitor       *ESMonitor       `json:"es,omitempty"`
	InfluxDBMonitor *InfluxDBMonitor `json:"influxDB,omitempty"`
	RetentionDays   *int             `json:"retentionDays,omitempty"`
}

type OIDCAuth

type OIDCAuth struct {
	IssuerURL string `json:"issuerURL" validate:"required"`
	ClientID  string `json:"clientID" validate:"required"`
	CACert    []byte `json:"caCert"`
}

type PlatformApp added in v1.9.1

type PlatformApp struct {
	HelmInstallOptions *helmaction.InstallOptions
	LocalChartPath     string
	ConditionFunc      wait.ConditionFunc `json:"-"`
	Enable             bool
	Installed          bool
	// rawValues: json format or yaml format
	RawValues     string
	RawValuesType applicationv1.RawValuesType
	// values: can specify multiple or separate values: key1=val1,key2=val2
	Values []string
}

type Registry

type Registry struct {
	TKERegistry        *TKERegistry        `json:"tke,omitempty"`
	ThirdPartyRegistry *ThirdPartyRegistry `json:"thirdParty,omitempty"`
	UserInputRegistry  UserInputRegistry   `json:"userInputRegistry,omitempty"`
}

Registry for remote registry

func (*Registry) Domain

func (r *Registry) Domain() string

func (*Registry) IsOfficial added in v1.3.1

func (r *Registry) IsOfficial() bool

func (*Registry) Namespace

func (r *Registry) Namespace() string

func (*Registry) Password added in v1.4.0

func (r *Registry) Password() []byte

func (*Registry) Prefix

func (r *Registry) Prefix() string

func (*Registry) Username added in v1.4.0

func (r *Registry) Username() string

type SelfSignedCert

type SelfSignedCert struct {
}

type TKEAuth

type TKEAuth struct {
	TenantID string `json:"tenantID"`
	Username string `json:"username"`
	Password []byte `json:"password"`
}

type TKEHA

type TKEHA struct {
	VIP  string `json:"vip" validate:"required"`
	VRID *int32 `json:"vrid"`
}

type TKERegistry

type TKERegistry struct {
	Domain        string              `json:"domain" validate:"hostname_rfc1123"`
	HarborEnabled bool                `json:"harborEnabled"`
	HarborCAFile  string              `json:"harborCAFile"`
	Namespace     string              `json:"namespace"`
	Username      string              `json:"username"`
	Password      []byte              `json:"password"`
	Storage       *TKERegistryStorage `json:"storage"`
}

type TKERegistryFilesystemStorage added in v1.8.0

type TKERegistryFilesystemStorage struct {
}

type TKERegistryS3Storage added in v1.8.0

type TKERegistryS3Storage struct {
	Bucket string `json:"bucket"`
	Region string `json:"region"`

	// +optional
	AccessKey *string `json:"accessKey,omitempty"`
	// +optional
	SecretKey *string `json:"secretKey,omitempty"`
	// +optional
	RegionEndpoint *string `json:"regionEndpoint,omitempty"`
	// +optional
	Encrypt *bool `json:"encrypt,omitempty"`
	// +optional
	KeyID *string `json:"keyID,omitempty"`
	// +optional
	Secure *bool `json:"secure,omitempty"`
	// +optional
	SkipVerify *bool `json:"skipVerify,omitempty"`
	// +optional
	V4Auth *bool `json:"v4Auth,omitempty"`
	// +optional
	ChunkSize *int64 `json:"chunkSize,omitempty"`
	// +optional
	MultipartCopyChunkSize *int64 `json:"multipartCopyChunkSize,omitempty"`
	// +optional
	MultipartCopyMaxConcurrency *int64 `json:"multipartCopyMaxConcurrency,omitempty"`
	// +optional
	MultipartCopyThresholdSize *int64 `json:"multipartCopyThresholdSize,omitempty"`
	// +optional
	RootDirectory *string `json:"rootDirectory,omitempty"`
	// +optional
	StorageClass *string `json:"storageClass,omitempty"`
	// +optional
	UserAgent *string `json:"userAgent,omitempty"`
	// +optional
	ObjectACL *string `json:"objectACL,omitempty"`
}

type TKERegistryStorage added in v1.8.0

type TKERegistryStorage struct {
	Filesystem *TKERegistryFilesystemStorage `json:"filesystem"`
	S3         *TKERegistryS3Storage         `json:"s3"`
}

type ThanosBucketConfig added in v1.6.0

type ThanosBucketConfig struct {
	Type   string      `json:"type"`
	Config interface{} `json:"config"`
}

type ThanosMonitor added in v1.6.0

type ThanosMonitor struct {
	BucketConfig *ThanosBucketConfig `json:"bucketConfig"`
}

type ThirdPartyCert

type ThirdPartyCert struct {
	Certificate []byte `json:"certificate" validate:"required"`
	PrivateKey  []byte `json:"privateKey" validate:"required"`
}

type ThirdPartyHA

type ThirdPartyHA struct {
	VIP   string `json:"vip" validate:"required"`
	VPort int32  `json:"vport"`
}

type ThirdPartyRegistry

type ThirdPartyRegistry struct {
	Domain    string `json:"domain" validate:"required"`
	Namespace string `json:"namespace" validate:"required"`
	Username  string `json:"username"`
	Password  []byte `json:"password"`
}

type UserInputRegistry added in v1.6.0

type UserInputRegistry struct {
	Domain    string `json:"domain"`
	Namespace string `json:"namespace"`
	Username  string `json:"username"`
	Password  []byte `json:"password"`
}

Jump to

Keyboard shortcuts

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