config

package
v0.0.0-...-227cf50 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File = ".gitlabback"

File default config file name

Functions

func Setup

func Setup(conf *Config)

Setup prompts for token and backup directory

func Write

func Write(name string, c *Config)

Write creates a config file if it doesn't exist else overwrites it.

Types

type Config

type Config struct {
	BaseURL   string `json:"baseURL"`
	Token     string `json:"token"`
	BackupDir string `json:"backupdir"`
	SSH       bool   `json:"ssh"`
}

Config basic struct for backup configuration

func Read

func Read(file string) (*Config, error)

Read reads config file

Jump to

Keyboard shortcuts

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