inspector

package
v0.0.0-...-7759ae7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2018 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ENV    = ".env"
	Server = "pingserver"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecOptions

type ExecOptions struct {
	Namespace     string
	PodName       string
	ContainerName string
	Command       []string

	Executor RemoteExecutor
	Client   kubernetes.Interface
	Config   *rest.Config
}

func (*ExecOptions) Run

func (p *ExecOptions) Run(retry int) (string, error)

func (*ExecOptions) Validate

func (p *ExecOptions) Validate() error

type Inspector

type Inspector struct {
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, cluster *api.Cluster) (*Inspector, error)

func (*Inspector) CheckDNSPod

func (i *Inspector) CheckDNSPod() error

func (*Inspector) CheckHelthStatus

func (i *Inspector) CheckHelthStatus() error

func (*Inspector) DeleteNginx

func (i *Inspector) DeleteNginx() error

func (*Inspector) DeleteNginxService

func (i *Inspector) DeleteNginxService() error

func (*Inspector) InstallNginx

func (i *Inspector) InstallNginx() ([]core.Pod, error)

func (*Inspector) InstallNginxService

func (i *Inspector) InstallNginxService() (string, error)

func (*Inspector) NativeCheck

func (i *Inspector) NativeCheck() error

func (*Inspector) NetworkCheck

func (i *Inspector) NetworkCheck() error

type RemoteBashExecutor

type RemoteBashExecutor struct{}

func (*RemoteBashExecutor) Execute

func (e *RemoteBashExecutor) Execute(config *rest.Config, method string, url *url.URL, cmds []string) (string, error)

type RemoteExecutor

type RemoteExecutor interface {
	Execute(*rest.Config, string, *url.URL, []string) (string, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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