config

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConfiguration

func NewConfiguration(cp configProvider, version string, keyID string, tmsID driver.TMSID) *configuration

Types

type Configuration

type Configuration = driver.Configuration

type Service

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

Service model the configuration service for the token sdk

func NewService

func NewService(cp configProvider) *Service

NewService creates a new Service configuration.

func (*Service) ConfigurationFor

func (m *Service) ConfigurationFor(network, channel, namespace string) (Configuration, error)

ConfigurationFor returns a configuration for the given network, channel, and namespace.

func (*Service) Configurations

func (m *Service) Configurations() ([]Configuration, error)

Configurations returns all configuration configurations.

func (*Service) Enabled

func (m *Service) Enabled() bool

func (*Service) LookupNamespace

func (m *Service) LookupNamespace(network, channel string) (string, error)

LookupNamespace searches for a configuration configuration that matches the given network and channel, and return its namespace. If no matching configuration is found, an error is returned. If multiple matching configurations are found, an error is returned.

func (*Service) Version

func (m *Service) Version() string

Jump to

Keyboard shortcuts

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