Documentation ¶
Index ¶
- Constants
- func RandomToken(length int) string
- type Dir
- type Forward
- type Request
- type Slaver
- func (s *Slaver) CheckClusterDomain(domain string) error
- func (s *Slaver) CheckHealth(name string, check *pb.Check) bool
- func (s *Slaver) CheckInstall() (*v1.DaemonSet, error)
- func (s *Slaver) CheckRunning() bool
- func (s *Slaver) ExecuteRemoteCommand(commands []string) bool
- func (s *Slaver) ExecuteRemoteRequest(f Forward) (string, error)
- func (s *Slaver) ExecuteRemoteSql(sqlList []string, resource *c7ncfg.Resource, database, sqlType string) error
- func (s *Slaver) ForwardPort(portName string, stopCh <-chan struct{}) int
- func (s *Slaver) GetPods() (*core_v1.PodList, error)
- func (s *Slaver) InitSalver(clientset *kubernetes.Clientset, namespace string, stopCh <-chan struct{}) (*Slaver, error)
- func (s *Slaver) Install() (*v1.DaemonSet, error)
- func (s *Slaver) InstallIngress(domain string) error
- func (s *Slaver) InstallService() (*core_v1.Service, error)
- func (s *Slaver) MakeDir(dir Dir) error
- func (s *Slaver) SendAll(request *pb.RouteRequest, retry bool) error
- func (s *Slaver) Uninstall() error
- func (s *Slaver) UpdateIngress(ingress *v1beta1.Ingress, domain string) error
Constants ¶
View Source
const IngressCheckPath = "/c7n/acme-challenge"
Variables ¶
This section is empty.
Functions ¶
func RandomToken ¶
Types ¶
type Slaver ¶
type Slaver struct { Client kubernetes.Interface Version string Namespace string Name string CommonLabels map[string]string Image string Ports []core_v1.ContainerPort Env []core_v1.EnvVar VolumeMounts []core_v1.VolumeMount ImagePullPolicy core_v1.PullPolicy `yaml:"imagePullPolicy"` PodList *core_v1.PodList Address string GRpcAddress string PvcName string DataPath string }
func (*Slaver) CheckClusterDomain ¶
func (*Slaver) CheckInstall ¶
* Type: httpGet or socket
func (*Slaver) CheckRunning ¶
func (*Slaver) ExecuteRemoteCommand ¶
func (*Slaver) ExecuteRemoteRequest ¶
func (*Slaver) ExecuteRemoteSql ¶
func (*Slaver) ForwardPort ¶
func (*Slaver) InitSalver ¶
func (*Slaver) InstallIngress ¶
Click to show internal directories.
Click to hide internal directories.