shared_clients

package
v0.0.0-...-841f565 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BrokerUser

type BrokerUser interface {
	UseBroker(client cqrs.Broker)
}

BrokerUser an interface that injects kv.Storage

type Container

type Container struct {
	K8s             kube.Client
	Vault           *vault.Client
	Docker          container.Docker
	KVStorage       kv.Storage
	Broker          cqrs.Broker `wire:"-"`
	Logger          logz.FieldLogger
	WorkspaceConfig workspace.Config
}

Container a shared client dependency injection container FIXME(erick): replace pointers with interface

func NewContainerWithDefaults

func NewContainerWithDefaults() (*Container, error)

func (*Container) Inject

func (c *Container) Inject(v interface{})

Inject accepts any interface and checks if it it implements one of the client user interfaces in this library The error can be safely ignored unless you want to verify that the value was an injectable interface

type DockerClientUser

type DockerClientUser interface {
	UseDockerClient(client container.Docker)
}

DockerClientUser an interface that injects container.Docker

type K8sClientUser

type K8sClientUser interface {
	UseK8sClient(client kube.Client)
}

K8sClientUser an interface that injects kube.Client

type KVStorageUser

type KVStorageUser interface {
	UseKVStorage(client kv.Storage)
}

KVStorageUser an interface that injects kv.Storage

type VaultClientUser

type VaultClientUser interface {
	UseVaultClient(client *vault.Client)
}

VaultClientUser an interface that injects a vault.Client

type WorkspaceConfigUser

type WorkspaceConfigUser interface {
	UseWorkspaceConfig(config workspace.Config)
}

WorkspaceConfigUser an interface that injects a blob storage URL

Jump to

Keyboard shortcuts

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