config

package
v0.0.0-...-ad0604f Latest Latest
Warning

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

Go to latest
Published: Feb 25, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddReader

func AddReader(r Reader)

AddReader func

func AddWriter

func AddWriter(w Writer)

AddWriter func

func WriteConfig

func WriteConfig(restart bool) bool

WriteConfig collects configuration changes and writes configuration file

Types

type DurationType

type DurationType time.Duration

func (DurationType) MarshalJSON

func (d DurationType) MarshalJSON() ([]byte, error)

func (DurationType) MarshalYAML

func (d DurationType) MarshalYAML() (interface{}, error)

func (DurationType) String

func (d DurationType) String() string

func (*DurationType) UnmarshalYAML

func (d *DurationType) UnmarshalYAML(node *yaml.Node) error

func (DurationType) Value

func (d DurationType) Value() time.Duration

type Error

type Error func(msg string)

Error func

type FileMode

type FileMode os.FileMode

func (FileMode) MarshalJSON

func (mode FileMode) MarshalJSON() ([]byte, error)

func (FileMode) MarshalYAML

func (mode FileMode) MarshalYAML() (interface{}, error)

func (FileMode) String

func (mode FileMode) String() string

func (*FileMode) UnmarshalYAML

func (mode *FileMode) UnmarshalYAML(node *yaml.Node) (err error)

func (FileMode) Value

func (mode FileMode) Value() os.FileMode

func (FileMode) WithDefault

func (mode FileMode) WithDefault(dv os.FileMode) os.FileMode

func (FileMode) WithDirDefault

func (mode FileMode) WithDirDefault() os.FileMode

func (FileMode) WithFileDefault

func (mode FileMode) WithFileDefault() os.FileMode

type Reader

type Reader func(cfg *api.Config, cfgError Error)

Reader func

type SizeType

type SizeType int64

func (SizeType) MarshalJSON

func (sz SizeType) MarshalJSON() ([]byte, error)

func (SizeType) MarshalYAML

func (sz SizeType) MarshalYAML() (interface{}, error)

func (SizeType) String

func (sz SizeType) String() string

func (*SizeType) UnmarshalYAML

func (sz *SizeType) UnmarshalYAML(node *yaml.Node) error

func (SizeType) Value

func (sz SizeType) Value() int64

type Task

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

Task struct

func NewTask

func NewTask() *Task

NewTask func

func (*Task) Close

func (t *Task) Close(ctx *tasks.ServiceTaskContext) error

Close - ServiceTask::Close method

func (*Task) Open

func (t *Task) Open(ctx *tasks.ServiceTaskContext) error

Open - ServiceTask::Open method

func (*Task) Stop

func (t *Task) Stop(ctx *tasks.ServiceTaskContext)

Stop - ServiceTask::Stop method

type Writer

type Writer func(cfg *api.Config)

Writer func

Jump to

Keyboard shortcuts

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