Documentation ¶
Index ¶
- func InitGlog() error
- type App
- type AppManager
- type Cleanable
- type CommonConfig
- type Istioctl
- func (i *Istioctl) CreateRule(rule string) error
- func (i *Istioctl) DeleteRule(rule string) error
- func (i *Istioctl) Install() error
- func (i *Istioctl) KubeInject(src, dest string) error
- func (i *Istioctl) ReplaceRule(rule string) error
- func (i *Istioctl) Setup() error
- func (i *Istioctl) Teardown() error
- type KubeInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AppManager ¶
type AppManager struct { Apps []*App // contains filtered or unexported fields }
AppManager organize and deploy apps
func NewAppManager ¶
func NewAppManager(tmpDir, namespace string, istioctl *Istioctl) *AppManager
NewAppManager create a new AppManager
func (*AppManager) AddApp ¶
func (am *AppManager) AddApp(a *App)
AddApp for automated deployment. Must be done before Setup Call.
func (*AppManager) Teardown ¶
func (am *AppManager) Teardown() error
Teardown currently does nothing, only to satisfied cleanable{}
type CommonConfig ¶
type CommonConfig struct { // Test Cleanup registration Cleanup *testCleanup // Test Information Info *testInfo // Kubernetes and istio installation information Kube *KubeInfo }
CommonConfig regroup all common test configuration.
func NewCommonConfig ¶
func NewCommonConfig(testID string) (*CommonConfig, error)
NewCommonConfig creates a full config will all supported configs.
func (*CommonConfig) RunTest ¶
func (c *CommonConfig) RunTest(m runnable) int
RunTest sets up all registered cleanables in FIFO order Execute the runnable Call teardown on all the cleanables in LIFO order.
type Istioctl ¶
type Istioctl struct {
// contains filtered or unexported fields
}
Istioctl gathers istioctl information.
func NewIstioctl ¶
NewIstioctl create a new istioctl by given temp dir.
func (*Istioctl) CreateRule ¶
CreateRule create new rule(s)
func (*Istioctl) DeleteRule ¶
DeleteRule Delete rule(s)
func (*Istioctl) KubeInject ¶
KubeInject use istio kube-inject to create new yaml with a proxy as sidecar.
func (*Istioctl) ReplaceRule ¶
ReplaceRule replace rule(s)
type KubeInfo ¶
type KubeInfo struct { Namespace string TmpDir string Ingress string AuthEnabled bool // Istioctl installation Istioctl *Istioctl // App Manager AppManager *AppManager // contains filtered or unexported fields }
KubeInfo gathers information for kubectl