shield

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthMethod

type AuthMethod = shield.AuthMethod

type Client

type Client interface {
	io.Closer

	CreateSchedule(instance string, details brokerapi.ProvisionDetails, url string, creds interface{}) error
	DeleteSchedule(instance string, details brokerapi.DeprovisionDetails) error
}

The client interface, also useful for mocking and testing.

type Config

type Config struct {
	Address  string
	Insecure bool

	Agent string

	Tenant string
	Store  string

	Schedule string
	Retain   string

	EnabledOnTargets []string

	Authentication AuthMethod
}

type LocalAuth

type LocalAuth = shield.LocalAuth

type NetworkClient

type NetworkClient struct {
	// contains filtered or unexported fields
}

The actual implementation of the client with network connectivity.

func NewClient

func NewClient(cfg Config) (*NetworkClient, error)

func (*NetworkClient) Close

func (cli *NetworkClient) Close() error

func (*NetworkClient) CreateSchedule

func (cli *NetworkClient) CreateSchedule(instanceID string, details brokerapi.ProvisionDetails, host string, creds interface{}) error

func (*NetworkClient) DeleteSchedule

func (cli *NetworkClient) DeleteSchedule(instanceID string, details brokerapi.DeprovisionDetails) error

type NoopClient

type NoopClient struct{}

A noop implementation that always returns nil for all methods.

func (*NoopClient) Close

func (cli *NoopClient) Close() error

func (*NoopClient) CreateSchedule

func (cli *NoopClient) CreateSchedule(instance string, details brokerapi.ProvisionDetails, url string, creds interface{}) error

func (*NoopClient) DeleteSchedule

func (cli *NoopClient) DeleteSchedule(instance string, details brokerapi.DeprovisionDetails) error

type TokenAuth

type TokenAuth = shield.TokenAuth

Jump to

Keyboard shortcuts

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