types

package
v0.0.0-...-ff55af6 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AllHosts

type AllHosts struct {
	Hosts    map[string]*Host `json:"hosts"`
	Children Children         `json:"children"`
}

AllHosts xxx

type Callback

type Callback struct {
	Name       string       `json:"name"`
	Namespace  string       `json:"namespace"`
	Region     string       `json:"region"`
	MasterList []ecsv1.Node `json:"masterList"`
	NodeList   []ecsv1.Node `json:"nodeList"`
	EtcdList   []ecsv1.Node `json:"etcdList"`
	KubeConfig string       `json:"kubeconfig"`
	Success    bool         `json:"success"`
	Message    string       `json:"message"`
}

Callback xxx

type Children

type Children struct {
	KubeMaster map[string]map[string]*Host `json:"kube-master"`
	KubeNode   map[string]map[string]*Host `json:"kube-node"`
	Etcd       map[string]map[string]*Host `json:"etcd"`
	Calico     map[string]map[string]*Host `json:"calico-rr"`
}

Children xxx

type DispatchConfigResult

type DispatchConfigResult struct {
	Host    string
	Success bool
	Message string
}

DispatchClusterResult xxx

type EcsClient

type EcsClient struct {
	Name                 string       `json:"name"`
	Namespace            string       `json:"namespace"`
	Region               string       `json:"region"`
	TimeoutMins          string       `json:"timeoutMins"`
	ClusterType          string       `json:"clusterType"`
	PodCIDR              string       `json:"podCIDR"`
	ServiceCIDR          string       `json:"serviceCIDR"`
	MasterList           []ecsv1.Node `json:"masterList"`
	ExternalLoadBalancer string       `json:"externalLoadBalancer"`
	NodeList             []ecsv1.Node `json:"nodeList"`
	EtcdList             []ecsv1.Node `json:"etcdList"`
	KubeVersion          string       `json:"kubeVersion"`

	// PrivateSSHKey,because of ssh private key has multiple special characters, use base64 encode in it
	PrivateSSHKey string `json:"privateSSHKey"`
	Retry         bool   `json:"retry"`
}

EcsClient xxx

type Host

type Host struct {
	AnsibleHost string `json:"ansible_host,omitempty"`
	IP          string `json:"ip,omitempty"`
	AccessIP    string `json:"access_ip,omitempty"`
}

Host xxx

type HostsYamlFormat

type HostsYamlFormat struct {
	All AllHosts `json:"all"`
}

HostsYamlFormat xxx

type PrecheckResult

type PrecheckResult struct {
	Host    string
	CmdList []string
	Success bool
	Result  string
}

PrecheckResult xxx

type SSHInfo

type SSHInfo struct {
	IP         string
	Port       int
	Username   string
	Password   string
	CmdFile    string
	Cmds       string
	CmdList    []string
	Key        string
	CipherList []string
	Timeout    time.Duration
	Result     PrecheckResult
}

SSHInfo xxx

Jump to

Keyboard shortcuts

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