Documentation ¶
Index ¶
- func GenerateCfg(t *testing.T)
- type CoreClientMock
- func (c *CoreClientMock) AgentAdd(ctx context.Context, req *drlm.AgentAddRequest, opts ...grpc.CallOption) (*drlm.AgentAddResponse, error)
- func (c *CoreClientMock) AgentDelete(ctx context.Context, req *drlm.AgentDeleteRequest, opts ...grpc.CallOption) (*drlm.AgentDeleteResponse, error)
- func (c *CoreClientMock) AgentGet(ctx context.Context, req *drlm.AgentGetRequest, opts ...grpc.CallOption) (*drlm.AgentGetResponse, error)
- func (c *CoreClientMock) AgentInstall(ctx context.Context, opts ...grpc.CallOption) (drlm.DRLM_AgentInstallClient, error)
- func (c *CoreClientMock) AgentList(ctx context.Context, req *drlm.AgentListRequest, opts ...grpc.CallOption) (*drlm.AgentListResponse, error)
- func (c *CoreClientMock) JobCancel(ctx context.Context, req *drlm.JobCancelRequest, opts ...grpc.CallOption) (*drlm.JobCancelResponse, error)
- func (c *CoreClientMock) JobList(ctx context.Context, req *drlm.JobListRequest, opts ...grpc.CallOption) (*drlm.JobListResponse, error)
- func (c *CoreClientMock) JobNotify(ctx context.Context, req *drlm.JobNotifyRequest, opts ...grpc.CallOption) (*drlm.JobNotifyResponse, error)
- func (c *CoreClientMock) JobSchedule(ctx context.Context, req *drlm.JobScheduleRequest, opts ...grpc.CallOption) (*drlm.JobScheduleResponse, error)
- func (c *CoreClientMock) UserAdd(ctx context.Context, req *drlm.UserAddRequest, opts ...grpc.CallOption) (*drlm.UserAddResponse, error)
- func (c *CoreClientMock) UserDelete(ctx context.Context, req *drlm.UserDeleteRequest, opts ...grpc.CallOption) (*drlm.UserDeleteResponse, error)
- func (c *CoreClientMock) UserList(ctx context.Context, req *drlm.UserListRequest, opts ...grpc.CallOption) (*drlm.UserListResponse, error)
- func (c *CoreClientMock) UserLogin(ctx context.Context, req *drlm.UserLoginRequest, opts ...grpc.CallOption) (*drlm.UserLoginResponse, error)
- func (c *CoreClientMock) UserTokenRenew(ctx context.Context, req *drlm.UserTokenRenewRequest, opts ...grpc.CallOption) (*drlm.UserTokenRenewResponse, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateCfg ¶
GenerateCfg creates a configuration file with the default values
Types ¶
type CoreClientMock ¶
CoreClientMock is a mock for the DRLM core gRPC client
func (*CoreClientMock) AgentAdd ¶
func (c *CoreClientMock) AgentAdd(ctx context.Context, req *drlm.AgentAddRequest, opts ...grpc.CallOption) (*drlm.AgentAddResponse, error)
AgentAdd mocks the AgentAdd gRPC method
func (*CoreClientMock) AgentDelete ¶
func (c *CoreClientMock) AgentDelete(ctx context.Context, req *drlm.AgentDeleteRequest, opts ...grpc.CallOption) (*drlm.AgentDeleteResponse, error)
AgentDelete mocks the AgentDelete gRPC method
func (*CoreClientMock) AgentGet ¶
func (c *CoreClientMock) AgentGet(ctx context.Context, req *drlm.AgentGetRequest, opts ...grpc.CallOption) (*drlm.AgentGetResponse, error)
AgentGet mocks the AgentGet gRPC method
func (*CoreClientMock) AgentInstall ¶
func (c *CoreClientMock) AgentInstall(ctx context.Context, opts ...grpc.CallOption) (drlm.DRLM_AgentInstallClient, error)
AgentInstall mocks the AgentInstall gRPC method AgentInstall(ctx context.Context, opts ...grpc.CallOption) (DRLM_AgentInstallClient, error)
func (*CoreClientMock) AgentList ¶
func (c *CoreClientMock) AgentList(ctx context.Context, req *drlm.AgentListRequest, opts ...grpc.CallOption) (*drlm.AgentListResponse, error)
AgentList mocks the AgentList gRPC method
func (*CoreClientMock) JobCancel ¶
func (c *CoreClientMock) JobCancel(ctx context.Context, req *drlm.JobCancelRequest, opts ...grpc.CallOption) (*drlm.JobCancelResponse, error)
JobCancel mocks the JobCancel gRPC method
func (*CoreClientMock) JobList ¶
func (c *CoreClientMock) JobList(ctx context.Context, req *drlm.JobListRequest, opts ...grpc.CallOption) (*drlm.JobListResponse, error)
JobList mocks the JobList gRPC method
func (*CoreClientMock) JobNotify ¶
func (c *CoreClientMock) JobNotify(ctx context.Context, req *drlm.JobNotifyRequest, opts ...grpc.CallOption) (*drlm.JobNotifyResponse, error)
JobNotify mocks the JobNotify gRPC method
func (*CoreClientMock) JobSchedule ¶
func (c *CoreClientMock) JobSchedule(ctx context.Context, req *drlm.JobScheduleRequest, opts ...grpc.CallOption) (*drlm.JobScheduleResponse, error)
JobSchedule mocks the JobSchedule gRPC method
func (*CoreClientMock) UserAdd ¶
func (c *CoreClientMock) UserAdd(ctx context.Context, req *drlm.UserAddRequest, opts ...grpc.CallOption) (*drlm.UserAddResponse, error)
UserAdd mocks the UserAdd gRPC method
func (*CoreClientMock) UserDelete ¶
func (c *CoreClientMock) UserDelete(ctx context.Context, req *drlm.UserDeleteRequest, opts ...grpc.CallOption) (*drlm.UserDeleteResponse, error)
UserDelete mocks the UserDelete gRPC method
func (*CoreClientMock) UserList ¶
func (c *CoreClientMock) UserList(ctx context.Context, req *drlm.UserListRequest, opts ...grpc.CallOption) (*drlm.UserListResponse, error)
UserList mocks the UserList gRPC method
func (*CoreClientMock) UserLogin ¶
func (c *CoreClientMock) UserLogin(ctx context.Context, req *drlm.UserLoginRequest, opts ...grpc.CallOption) (*drlm.UserLoginResponse, error)
UserLogin mocks the UserLogin gRPC method
func (*CoreClientMock) UserTokenRenew ¶
func (c *CoreClientMock) UserTokenRenew(ctx context.Context, req *drlm.UserTokenRenewRequest, opts ...grpc.CallOption) (*drlm.UserTokenRenewResponse, error)
UserTokenRenew mocks the UserTokenRenew gRPC method