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
Click to show internal directories.
Click to hide internal directories.