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
Click to show internal directories.
Click to hide internal directories.