mapping

package
v0.0.0-...-448c08d Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AggMappingService

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

func NewAggMappingService

func NewAggMappingService(
	envMappingService domain.MappingService,
	openshiftMappingService domain.MappingService,
) *AggMappingService

func (AggMappingService) GetAll

func (s AggMappingService) GetAll(ctx context.Context, result *[]domain.Mapping) error

func (AggMappingService) GetById

func (s AggMappingService) GetById(ctx context.Context, id string, result *domain.Mapping) error

type EnvMappingService

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

func NewEnvMappingService

func NewEnvMappingService(cfg domain.MappingConfig, envs []string) *EnvMappingService

Instantiate host mapping service with specific prefix There's no separator for prefix so you have to specify one if required (e.g. "someprefix_") Prefix and all keys will be fixed with upper case

func (EnvMappingService) GetAll

func (k EnvMappingService) GetAll(_ context.Context, result *[]domain.Mapping) error

Returns all host mappings

func (EnvMappingService) GetById

func (k EnvMappingService) GetById(_ context.Context, id string, result *domain.Mapping) error

Returns host mapping by id Id have to be without prefix

type MetricMappingService

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

func NewMetricMappingService

func NewMetricMappingService(service domain.MappingService) *MetricMappingService

func (MetricMappingService) GetAll

func (s MetricMappingService) GetAll(ctx context.Context, result *[]domain.Mapping) error

func (MetricMappingService) GetById

func (s MetricMappingService) GetById(ctx context.Context, id string, result *domain.Mapping) error

type OpenshiftMappingService

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

func NewOpenshiftMappingService

func NewOpenshiftMappingService(cfg domain.MappingConfig) (*OpenshiftMappingService, error)

func (*OpenshiftMappingService) GetAll

func (k *OpenshiftMappingService) GetAll(_ context.Context, result *[]domain.Mapping) error

Returns all host mappings

func (*OpenshiftMappingService) GetById

func (k *OpenshiftMappingService) GetById(_ context.Context, id string, result *domain.Mapping) error

Returns host mapping by id Id have to be without prefix

func (*OpenshiftMappingService) StartInformer

func (k *OpenshiftMappingService) StartInformer()

func (*OpenshiftMappingService) StopInformer

func (k *OpenshiftMappingService) StopInformer()

type TracingMappingService

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

func NewTracingMappingService

func NewTracingMappingService(service domain.MappingService) *TracingMappingService

func (TracingMappingService) GetAll

func (s TracingMappingService) GetAll(ctx context.Context, result *[]domain.Mapping) error

func (TracingMappingService) GetById

func (s TracingMappingService) GetById(ctx context.Context, id string, result *domain.Mapping) error

Jump to

Keyboard shortcuts

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