config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TMS

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

TMS is the configuration of a given TMS

func (*TMS) TMS

func (m *TMS) TMS() *config.TMS

TMS returns the full TMS

func (*TMS) TranslatePath

func (m *TMS) TranslatePath(path string) string

TranslatePath translates the passed path relative to the config path

type TokenSDK

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

TokenSDK is the configuration of the TokenSDK

func NewTokenSDK

func NewTokenSDK(cp configProvider) *TokenSDK

NewTokenSDK creates a new TokenSDK configuration.

func (*TokenSDK) GetTMS

func (m *TokenSDK) GetTMS(network, channel, namespace string) (*TMS, error)

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

func (*TokenSDK) GetTMSs

func (m *TokenSDK) GetTMSs() ([]*TMS, error)

GetTMSs returns all TMS configurations.

func (*TokenSDK) LookupNamespace

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

LookupNamespace searches for a TMS 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.

Jump to

Keyboard shortcuts

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