rpctestutil

package
v0.12.0-rc.3 Latest Latest
Warning

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

Go to latest
Published: Mar 20, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminClient

type AdminClient struct {
	sync.Mutex

	PingCall             int
	UserListCall         int
	UserAddCall          int
	UserDelCall          int
	UserGetCall          int
	UserEditCall         int
	BecomeMaintainerCall int
	ToggleAdminCall      int
	TokenNewCall         int
	RoleListCall         int
	BackendListCall      int
}

func NewAdminClient

func NewAdminClient() *AdminClient

func (*AdminClient) BackendList

func (*AdminClient) BecomeMaintainer

func (*AdminClient) Ping

func (a *AdminClient) Ping(ctx context.Context, in *rpc.RequestPing, opts ...grpc.CallOption) (*rpc.ResponsePong, error)

func (*AdminClient) RoleList

func (*AdminClient) ToggleAdmin

func (*AdminClient) TokenNew

func (*AdminClient) UserAdd

func (*AdminClient) UserDel

func (*AdminClient) UserEdit added in v0.11.0

func (*AdminClient) UserGet

func (*AdminClient) UserList

type CertificateAuthorityClient

type CertificateAuthorityClient struct {
	sync.Mutex

	GetSignedListCall    int
	NewClientCertCall    int
	NewServerCertCall    int
	RevokeCall           int
	GetCall              int
	GetRevokedListCall   int
	WatchRevokedListCall int
}

func NewCertificateAuthorityClient

func NewCertificateAuthorityClient() *CertificateAuthorityClient

func (*CertificateAuthorityClient) Get

func (*CertificateAuthorityClient) GetRevokedList

func (*CertificateAuthorityClient) GetSignedList

func (*CertificateAuthorityClient) NewClientCert

func (*CertificateAuthorityClient) NewServerCert

func (*CertificateAuthorityClient) Revoke

type ClusterClient

type ClusterClient struct {
	sync.Mutex

	MemberListCall int
	MemberStatCall int
	AgentListCall  int
}

func NewClusterClient

func NewClusterClient() *ClusterClient

func (*ClusterClient) AgentList

func (*ClusterClient) MemberList

func (*ClusterClient) MemberStat

type UserClient added in v0.8.0

type UserClient struct {
	sync.Mutex

	GetSSHKeyCall int
	SetSSHKeyCall int
	GetGPGKeyCall int
	SetGPGKeyCall int
}

func NewUserClient added in v0.8.0

func NewUserClient() *UserClient

func (*UserClient) GetGPGKey added in v0.9.0

func (*UserClient) GetSSHKey added in v0.8.0

func (*UserClient) SetGPGKey added in v0.9.0

func (*UserClient) SetSSHKey added in v0.8.0

Jump to

Keyboard shortcuts

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