client

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: Apache-2.0 Imports: 7 Imported by: 14

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChaosDaemonClientInterface

type ChaosDaemonClientInterface interface {
	chaosdaemon.ChaosDaemonClient
	Close() error
}

ChaosDaemonClientInterface represents the ChaosDaemonClient, it's used to simply unit test

func NewChaosDaemonClient

func NewChaosDaemonClient(ctx context.Context, c client.Client, pod *v1.Pod, port int) (ChaosDaemonClientInterface, error)

NewChaosDaemonClient would create ChaosDaemonClient

func NewChaosDaemonClientLocally

func NewChaosDaemonClientLocally(port int) (ChaosDaemonClientInterface, error)

NewChaosDaemonClientLocally would create ChaosDaemonClient in localhost

type GrpcChaosDaemonClient

type GrpcChaosDaemonClient struct {
	chaosdaemon.ChaosDaemonClient
	// contains filtered or unexported fields
}

GrpcChaosDaemonClient would act like chaosdaemon.ChaosDaemonClient with a Close method

func (*GrpcChaosDaemonClient) Close

func (c *GrpcChaosDaemonClient) Close() error

Jump to

Keyboard shortcuts

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