config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Dir is the dockit directory name which stores all the necessary configurations.
	Dir = ".dockit"
)

Variables

This section is empty.

Functions

func WriteCurrent

func WriteCurrent(cfg Config) error

Write saves the provided config as the current dockit configuration.

Types

type Config

type Config struct {
	IP             string `json:"ip"`
	CACertPath     string `json:"ca_cert_path"`
	ClientCertPath string `json:"client_cert_path"`
	ClientKeyPath  string `json:"client_key_path"`
}

Config defines the dockit config.

func Current

func Current() (Config, error)

Current returns the current configiration.

func Read

func Read(filename string) (Config, error)

Read unmarshals the content of the given file to Config.

Jump to

Keyboard shortcuts

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