config

package
v1.0.13-beta01 Latest Latest
Warning

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

Go to latest
Published: May 3, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DefaultConfig = Data{
	AnalyticsEnabled: true,
	Namespace:        "testkube",
}

Functions

func Save added in v0.9.12

func Save(data Data) error

Types

type Data

type Data struct {
	AnalyticsEnabled bool   `json:"analyticsEnabled,omitempty"`
	Namespace        string `json:"namespace,omitempty"`
}

func Load added in v0.9.12

func Load() (Data, error)

func (*Data) DisableAnalytics

func (c *Data) DisableAnalytics()

func (*Data) EnableAnalytics

func (c *Data) EnableAnalytics()

func (*Data) SetNamespace added in v0.10.5

func (c *Data) SetNamespace(ns string)

type Storage

type Storage struct {
	Dir string
}

func (*Storage) Init

func (c *Storage) Init() error

func (*Storage) Load

func (c *Storage) Load() (data Data, err error)

func (*Storage) Save

func (c *Storage) Save(data Data) error

Jump to

Keyboard shortcuts

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