endpoint

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: MIT Imports: 12 Imported by: 4

Documentation

Index

Constants

View Source
const (
	NetworkEndpointPrefix = "/network-endpoints"
)

Variables

View Source
var (
	ErrActivated = errors.New("endpoint is still active")
)

Functions

This section is empty.

Types

type DeleteOpts

type DeleteOpts struct {
	ForceDeactivation bool
}

type Repository

type Repository interface {
	List(context.Context, map[string]string) ([]types.Endpoint, error)
	Create(context.Context, types.Network, params.EndpointCreate) (types.Endpoint, error)
	Activate(context.Context, types.Network, types.Endpoint, params.EndpointActivate) (types.Endpoint, error)
	Delete(context.Context, types.Network, types.Endpoint, DeleteOpts) error
	Deactivate(context.Context, types.Network, types.Endpoint) (types.Endpoint, error)

	// If the endpoint has already been attach to the network in the kv store
	Exists(context.Context, string) (types.Endpoint, bool, error)
}

func NewRepository

func NewRepository(config *config.Config, store store.Store, managers netmanager.ManagerMap) Repository

Jump to

Keyboard shortcuts

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