ConfigurationRepository

package
v0.0.0-...-d711150 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IRepositoryConf

type IRepositoryConf interface {
	GetRepPath() string
	GetLogin() string
	GetPass() string
	IsExtension() bool
	GetTimerDuration() time.Duration
	GetDir() string
	GetBranch() string
}

type Notify

type Notify struct {
	RepInfo IRepositoryConf
	Comment string
	Version int
	Author  string
	Date    time.Time
	Err     error
}

func (*Notify) GetAuthor

func (r *Notify) GetAuthor() string

func (*Notify) GetComment

func (r *Notify) GetComment() string

func (*Notify) GetDateTime

func (r *Notify) GetDateTime() *time.Time

type Repository

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

func (*Repository) DownloadConfFiles

func (this *Repository) DownloadConfFiles(repInfo IRepositoryConf, version int) (err error)

Выгрузка конфигурации в файлы

func (*Repository) New

func (this *Repository) New(binPath string) *Repository

func (*Repository) Observe

func (this *Repository) Observe(repInfo IRepositoryConf, wg *sync.WaitGroup, notify func(*Notify, *Repository) error)

func (*Repository) RestoreVersion

func (this *Repository) RestoreVersion(n *Notify)

Jump to

Keyboard shortcuts

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