mocks

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsoleClient

type ConsoleClient struct {
	Calls              map[string][]ConsoleClientCallerInfo
	MockGetApp         func(ctx context.Context, in *console.AppIn, opts ...grpc.CallOption) (*console.AppOut, error)
	MockGetManagedSvc  func(ctx context.Context, in *console.MSvcIn, opts ...grpc.CallOption) (*console.MSvcOut, error)
	MockGetProjectName func(ctx context.Context, in *console.ProjectIn, opts ...grpc.CallOption) (*console.ProjectOut, error)
	MockSetupAccount   func(ctx context.Context, in *console.AccountSetupIn, opts ...grpc.CallOption) (*console.AccountSetupVoid, error)
}

func NewConsoleClient

func NewConsoleClient() *ConsoleClient

func (*ConsoleClient) GetApp

func (cMock *ConsoleClient) GetApp(ctx context.Context, in *console.AppIn, opts ...grpc.CallOption) (*console.AppOut, error)

func (*ConsoleClient) GetManagedSvc

func (cMock *ConsoleClient) GetManagedSvc(ctx context.Context, in *console.MSvcIn, opts ...grpc.CallOption) (*console.MSvcOut, error)

func (*ConsoleClient) GetProjectName

func (cMock *ConsoleClient) GetProjectName(ctx context.Context, in *console.ProjectIn, opts ...grpc.CallOption) (*console.ProjectOut, error)

func (*ConsoleClient) SetupAccount

func (cMock *ConsoleClient) SetupAccount(ctx context.Context, in *console.AccountSetupIn, opts ...grpc.CallOption) (*console.AccountSetupVoid, error)

type ConsoleClientCallerInfo

type ConsoleClientCallerInfo struct {
	Args []any
}

type ConsoleServer

type ConsoleServer struct {
	Calls              map[string][]ConsoleServerCallerInfo
	MockGetApp         func(ka context.Context, kb *console.AppIn) (*console.AppOut, error)
	MockGetManagedSvc  func(kc context.Context, kd *console.MSvcIn) (*console.MSvcOut, error)
	MockGetProjectName func(ke context.Context, kf *console.ProjectIn) (*console.ProjectOut, error)
	MockSetupAccount   func(kg context.Context, kh *console.AccountSetupIn) (*console.AccountSetupVoid, error)
}

func NewConsoleServer

func NewConsoleServer() *ConsoleServer

func (*ConsoleServer) GetApp

func (cMock *ConsoleServer) GetApp(ka context.Context, kb *console.AppIn) (*console.AppOut, error)

func (*ConsoleServer) GetManagedSvc

func (cMock *ConsoleServer) GetManagedSvc(kc context.Context, kd *console.MSvcIn) (*console.MSvcOut, error)

func (*ConsoleServer) GetProjectName

func (cMock *ConsoleServer) GetProjectName(ke context.Context, kf *console.ProjectIn) (*console.ProjectOut, error)

func (*ConsoleServer) SetupAccount

type ConsoleServerCallerInfo

type ConsoleServerCallerInfo struct {
	Args []any
}

Jump to

Keyboard shortcuts

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