Help us shape the future of Go! Take the 2026 Go Developer Survey

clientmock

package
v0.19.1 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MPL-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	BuildingBlockDefinition        MeshBuildingBlockDefinitionClient
	BuildingBlockDefinitionVersion MeshBuildingBlockDefinitionVersionClient
	TagDefinition                  MeshTagDefinitionClient
	Platform                       MeshPlatformClient
	PlatformType                   MeshPlatformTypeClient
	Location                       MeshLocationClient
	Integration                    MeshIntegrationClient
	ServiceInstance                MeshServiceInstanceClient
}

func NewMock

func NewMock() Client

func (Client) AsClient

func (c Client) AsClient() client.Client

type MeshBuildingBlockDefinitionClient

type MeshBuildingBlockDefinitionClient struct {
	Store        Store[client.MeshBuildingBlockDefinition]
	StoreVersion Store[client.MeshBuildingBlockDefinitionVersion]
}

func (MeshBuildingBlockDefinitionClient) Create

func (MeshBuildingBlockDefinitionClient) Delete

func (MeshBuildingBlockDefinitionClient) List

func (MeshBuildingBlockDefinitionClient) Read

func (MeshBuildingBlockDefinitionClient) Update

type MeshBuildingBlockDefinitionVersionClient

type MeshBuildingBlockDefinitionVersionClient struct {
	Store Store[client.MeshBuildingBlockDefinitionVersion]
}

func (MeshBuildingBlockDefinitionVersionClient) Create

func (MeshBuildingBlockDefinitionVersionClient) List

func (MeshBuildingBlockDefinitionVersionClient) Update

type MeshIntegrationClient

type MeshIntegrationClient struct {
	Store Store[client.MeshIntegration]
}

func (MeshIntegrationClient) Create

func (MeshIntegrationClient) Delete

func (m MeshIntegrationClient) Delete(_ context.Context, uuid string) error

func (MeshIntegrationClient) List

func (MeshIntegrationClient) Read

func (MeshIntegrationClient) Update

type MeshLocationClient

type MeshLocationClient struct {
	Store Store[client.MeshLocation]
}

func (MeshLocationClient) Create

func (MeshLocationClient) Delete

func (m MeshLocationClient) Delete(_ context.Context, name string) error

func (MeshLocationClient) Read

func (MeshLocationClient) Update

type MeshPlatformClient

type MeshPlatformClient struct {
	Store Store[client.MeshPlatform]
}

func (MeshPlatformClient) Create

func (MeshPlatformClient) Delete

func (m MeshPlatformClient) Delete(_ context.Context, uuid string) error

func (MeshPlatformClient) Read

func (MeshPlatformClient) Update

type MeshPlatformTypeClient

type MeshPlatformTypeClient struct {
	Store Store[client.MeshPlatformType]
}

func (MeshPlatformTypeClient) Create

func (MeshPlatformTypeClient) Delete

func (MeshPlatformTypeClient) List

func (m MeshPlatformTypeClient) List(_ context.Context, category *string, lifecycleStatus *string) ([]client.MeshPlatformType, error)

func (MeshPlatformTypeClient) Read

func (MeshPlatformTypeClient) Update

type MeshServiceInstanceClient added in v0.18.2

type MeshServiceInstanceClient struct {
	Store Store[client.MeshServiceInstance]
}

func (MeshServiceInstanceClient) List added in v0.18.2

func (MeshServiceInstanceClient) Read added in v0.18.2

type MeshTagDefinitionClient

type MeshTagDefinitionClient struct {
	Store Store[client.MeshTagDefinition]
}

func (MeshTagDefinitionClient) Create

func (MeshTagDefinitionClient) Delete

func (MeshTagDefinitionClient) List

func (MeshTagDefinitionClient) Read

func (MeshTagDefinitionClient) Update

type Store

type Store[M any] map[string]*M

func (Store[M]) SortedKeys

func (s Store[M]) SortedKeys() []string

Jump to

Keyboard shortcuts

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