template

package
v1.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const ConfigTemplateKey = "template-content"
View Source
const ConfigTemplatePathKey = "template-path"

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigTemplate

type ConfigTemplate struct {
	Path     string
	Key      string
	Priority int64
	// contains filtered or unexported fields
}

func FromConfigStore

func FromConfigStore(store *configstore.Store, defaultFileName string) (*ConfigTemplate, error)

func New

func New(path string) *ConfigTemplate

func (*ConfigTemplate) HealthzCheck

func (t *ConfigTemplate) HealthzCheck(req *http.Request) error

func (*ConfigTemplate) ReadyzCheck

func (t *ConfigTemplate) ReadyzCheck(req *http.Request) error

func (*ConfigTemplate) Register

func (t *ConfigTemplate) Register(store *configstore.Store)

type ErrNotValidFile

type ErrNotValidFile struct {
	Path string
}

func (*ErrNotValidFile) Error

func (err *ErrNotValidFile) Error() string

type ErrNotYetRefreshed

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

Jump to

Keyboard shortcuts

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