sync

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 14, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package sync synchronizes configuration between the database and corresponding file and synchronization of any downloads.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Client             *client.Client     `validate:"required"`
	Config             *config.File       `validate:"required"`
	ConfigTemplatePath string             `validate:"required"`
	Log                logger.OutputIface `validate:"required"`
	ORM                *gorm.DB           `validate:"required"`
	Stderr             io.Writer          `validate:"required"`
	Stdout             io.Writer          `validate:"required"`
}

Options options to constructor

type Sync

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

Sync synchronize database tables

func New

func New(opts *Options) *Sync

New construct Sync object

func (*Sync) Files

func (s *Sync) Files()

Files synchronizes templates between the YAML configuration, database and its upstream version control repository.

func (*Sync) Repo

func (s *Sync) Repo()

Repo syncs repo data

type SyncIface

type SyncIface interface {
	// Repo syncs repo data
	Repo()
	// Files synchronizes templates between the YAML configuration, database
	// and its upstream version control repository.
	Files()
}

SyncIface ...

Jump to

Keyboard shortcuts

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