types

package
v1.2.5 Latest Latest
Warning

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

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

Documentation

Index

Constants

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

Variables

This section is empty.

Functions

This section is empty.

Types

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 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"`
	HA        *HA       `json:"ha,omitempty"`
	Gateway   *Gateway  `json:"gateway,omitempty"`
	SkipSteps []string  `json:"skipSteps,omitempty"`
}

Config is the installer config

type CreateClusterPara

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

type ESMonitor

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

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() 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 Monitor

type Monitor struct {
	ESMonitor       *ESMonitor       `json:"es,omitempty"`
	InfluxDBMonitor *InfluxDBMonitor `json:"influxDB,omitempty"`
}

type OIDCAuth

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

type Registry

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

Registry for remote registry

func (*Registry) Domain

func (r *Registry) Domain() string

func (*Registry) Namespace

func (r *Registry) Namespace() string

func (*Registry) Prefix

func (r *Registry) Prefix() 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"`
}

type TKERegistry

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

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" validate:"required"`
	Password  []byte `json:"password" validate:"required"`
}

Jump to

Keyboard shortcuts

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