internal

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2023 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadYaml

func ReadYaml(filename string, data interface{}) error

func WriteYaml

func WriteYaml(filename string, data interface{}) error

Types

type Backup

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

func NewBackup

func NewBackup(cli web.ClientHttp, conf *Config, l log.Logger) *Backup

func (*Backup) Down

func (v *Backup) Down() error

func (*Backup) Dump

func (v *Backup) Dump(ctx context.Context)

func (*Backup) Up

func (v *Backup) Up(ctx app.Context) error

type Config

type Config struct {
	ApiKey  string   `yaml:"api_key"`
	SshCert string   `yaml:"ssh_cert"`
	Folder  string   `yaml:"folder"`
	Owners  []string `yaml:"owners"`
}

type DataModel

type DataModel map[string]string

type GitHubReposModel

type GitHubReposModel struct {
	Name string `json:"full_name"`
	Url  string `json:"ssh_url"`
}

func (GitHubReposModel) MarshalEasyJSON

func (v GitHubReposModel) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GitHubReposModel) MarshalJSON

func (v GitHubReposModel) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GitHubReposModel) UnmarshalEasyJSON

func (v *GitHubReposModel) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GitHubReposModel) UnmarshalJSON

func (v *GitHubReposModel) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type GitHubResponseModel

type GitHubResponseModel struct {
	Items []GitHubReposModel `json:"items"`
}

func (GitHubResponseModel) MarshalEasyJSON

func (v GitHubResponseModel) MarshalEasyJSON(w *jwriter.Writer)

MarshalEasyJSON supports easyjson.Marshaler interface

func (GitHubResponseModel) MarshalJSON

func (v GitHubResponseModel) MarshalJSON() ([]byte, error)

MarshalJSON supports json.Marshaler interface

func (*GitHubResponseModel) UnmarshalEasyJSON

func (v *GitHubResponseModel) UnmarshalEasyJSON(l *jlexer.Lexer)

UnmarshalEasyJSON supports easyjson.Unmarshaler interface

func (*GitHubResponseModel) UnmarshalJSON

func (v *GitHubResponseModel) UnmarshalJSON(data []byte) error

UnmarshalJSON supports json.Unmarshaler interface

type LogWriter

type LogWriter struct {
	Log log.Logger
}

func (*LogWriter) Write

func (v *LogWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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