settings

package
v0.0.0-...-af6bcab Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package settings contains global settings for starting a Config Server.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetGlobalConfigLoc

func GetGlobalConfigLoc(ctx context.Context) *cfgcommonpb.GitilesLocation

GetGlobalConfigLoc returns a GitilesLocation installed in the context.

func WithGlobalConfigLoc

func WithGlobalConfigLoc(ctx context.Context, location *cfgcommonpb.GitilesLocation) context.Context

WithGlobalConfigLoc returns a context with the given config location.

Types

type GlobalConfigLoc

type GlobalConfigLoc struct {
	*cfgcommonpb.GitilesLocation
}

GlobalConfigLoc is a setting to indicate the global config root location.

func (*GlobalConfigLoc) MarshalText

func (l *GlobalConfigLoc) MarshalText() (text []byte, err error)

MarshalText marshal itself into a textual form. Implements encoding.TextMarshaler.

func (*GlobalConfigLoc) RegisterFlags

func (l *GlobalConfigLoc) RegisterFlags(fs *flag.FlagSet)

RegisterFlags registers "-global-config-location" into command line flag set.

func (*GlobalConfigLoc) UnmarshalText

func (l *GlobalConfigLoc) UnmarshalText(text []byte) error

UnmarshalText unmarshal a textual representation of GlobalConfigLoc. Implements encoding.TextUnmarshaler.

func (*GlobalConfigLoc) Validate

func (l *GlobalConfigLoc) Validate() error

Validate validates the GlobalConfigLoc

Jump to

Keyboard shortcuts

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