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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KubeAgentClient

type KubeAgentClient struct {
	Calls         map[string][]KubeAgentClientCallerInfo
	MockKubeApply func(ctx context.Context, in *agent.PayloadIn, opts ...grpc.CallOption) (*agent.PayloadOut, error)
}

func NewKubeAgentClient

func NewKubeAgentClient() *KubeAgentClient

func (*KubeAgentClient) KubeApply

func (kMock *KubeAgentClient) KubeApply(ctx context.Context, in *agent.PayloadIn, opts ...grpc.CallOption) (*agent.PayloadOut, error)

type KubeAgentClientCallerInfo

type KubeAgentClientCallerInfo struct {
	Args []any
}

type KubeAgentServer

type KubeAgentServer struct {
	Calls         map[string][]KubeAgentServerCallerInfo
	MockKubeApply func(ka context.Context, kb *agent.PayloadIn) (*agent.PayloadOut, error)
}

func NewKubeAgentServer

func NewKubeAgentServer() *KubeAgentServer

func (*KubeAgentServer) KubeApply

func (kMock *KubeAgentServer) KubeApply(ka context.Context, kb *agent.PayloadIn) (*agent.PayloadOut, error)

type KubeAgentServerCallerInfo

type KubeAgentServerCallerInfo struct {
	Args []any
}

Jump to

Keyboard shortcuts

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