fileprovider

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileProvider

type FileProvider struct {
	File *conf.File
}

func New

func New(cfgFile *conf.File) *FileProvider

New creates a new runtime.ConfigProvider using data stored in cfgFile.

func (*FileProvider) Create

func (cfg *FileProvider) Create(ctx context.Context, sec conf.Section) (string, error)

func (*FileProvider) Delete

func (cfg *FileProvider) Delete(ctx context.Context, id string) error

func (*FileProvider) Get

func (cfg *FileProvider) Get(ctx context.Context, sectionType string) ([]runtime.Section, error)

func (*FileProvider) GetID

func (cfg *FileProvider) GetID(ctx context.Context, instanceID string) (runtime.Section, error)

func (*FileProvider) Update

func (cfg *FileProvider) Update(ctx context.Context, id, secType string, opts []conf.Option) error

Jump to

Keyboard shortcuts

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