...

Package client

import "github.com/chaos-mesh/chaos-mesh/pkg/chaosdaemon/client"
Overview
Index

Overview ▾

type ChaosDaemonClientInterface

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

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

func New

func New(conn *grpc.ClientConn) ChaosDaemonClientInterface

type GrpcChaosDaemonClient

GrpcChaosDaemonClient would act like chaosdaemon.ChaosDaemonClient with a Close method

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

func (*GrpcChaosDaemonClient) Close

func (c *GrpcChaosDaemonClient) Close() error