backend

package
v1.0.33 Latest Latest
Warning

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

Go to latest
Published: May 18, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloudService

func GetCloudService(backendType string) (cloud.Service, error)

GetCloudService returns the backend registered for a particular type, it returns an error if there is no registered backends for the given type.

func Register

func Register(name string, backendType string, init initFunc, getCoudService getCloudServiceFunc)

Register adds a typed backend to the registry

func WithBackend added in v1.0.10

func WithBackend(s Service)

WithBackend set the active backend instance

Types

type Service

type Service interface {
	ContainerService() containers.Service
	ComposeService() api.Service
	ResourceService() resources.Service
	SecretsService() secrets.Service
	VolumeService() volumes.Service
}

Service aggregates the service interfaces

func Current added in v1.0.10

func Current() Service

Current return the active backend instance

func Get

func Get(backendType string) (Service, error)

Get returns the backend registered for a particular type, it returns an error if there is no registered backends for the given type.

Jump to

Keyboard shortcuts

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