aliases

package
v0.0.0-...-f5bbbf4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Aliases

type Aliases interface {
	// Create creates an alias in the registry
	Create(ctx context.Context, registry, key, kind string, value interface{}, userInfo *auth.UserInfo) (*entities.Alias, error)
	// Get gets an alias from the registry
	Get(ctx context.Context, registry string, key string, userInfo *auth.UserInfo) (*entities.Alias, error)
	// Update updates an alias in the registry
	Update(ctx context.Context, registry, key, kind string, value interface{}, userInfo *auth.UserInfo) (*entities.Alias, error)
	// Delete deletes an alias from the registry
	Delete(ctx context.Context, registry string, key string, userInfo *auth.UserInfo) error
	// Parse parses an alias string and returns the registryName and the aliasKey
	Parse(alias string) (regName string, key string, isAlias bool)
	// Replace replaces a slice of potential aliases with a slice having all the aliases replaced by their value
	Replace(ctx context.Context, addrs []string, userInfo *auth.UserInfo) ([]string, error)
	// ReplaceSimple replaces a potential alias with its first and only value
	ReplaceSimple(ctx context.Context, addr string, userInfo *auth.UserInfo) (string, error)
}

Aliases handles the aliases.

type Registries

type Registries interface {
	// Create creates an alias registry
	Create(ctx context.Context, name string, allowedTenants []string, userInfo *auth.UserInfo) (*entities.AliasRegistry, error)
	// Get gets an alias registry
	Get(ctx context.Context, name string, userInfo *auth.UserInfo) (*entities.AliasRegistry, error)
	// Delete deletes an alias registry, with all the aliases it contains
	Delete(ctx context.Context, name string, userInfo *auth.UserInfo) error
}

Registries handles the aliases registries.

Directories

Path Synopsis
api
mock
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
Package mock is a generated GoMock package.
service

Jump to

Keyboard shortcuts

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