config

package
v1.27.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_CONFIG_DIR = "canvas-sync"
View Source
var DEFAULT_CONFIG_FILE = "config.yaml"

Functions

func GenerateConfigYaml

func GenerateConfigYaml(config *Config) string

func PrintConfig

func PrintConfig(path string, config *Config) error

func SaveConfig

func SaveConfig(filepath string, config *Config, verbose bool) error

Types

type Config

type Config struct {
	DataDir     string
	CanvasUrl   string
	Username    string
	Password    string
	AccessToken string
}

type ConfigPaths

type ConfigPaths struct {
	CfgDirPath  string
	CfgFilePath string
}

func GetConfigPaths

func GetConfigPaths() ConfigPaths

type GenerateAccessTokenInfo

type GenerateAccessTokenInfo struct {
	AccessToken string
	Username    string
	Password    string
}

Jump to

Keyboard shortcuts

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