user

package
v2.3.0-beta30 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package user provides functionality for working with keploy user configs like installation id.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HomeDir

func HomeDir() string

Types

type Db

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

func New

func New(logger *zap.Logger, cfg *config.Config) *Db

func (*Db) GetInstallationID

func (db *Db) GetInstallationID(_ context.Context) (string, error)

func (*Db) ReadKeployConfig

func (db *Db) ReadKeployConfig() (*KeployConfig, error)

func (*Db) WriteKeployConfig

func (db *Db) WriteKeployConfig(data *KeployConfig) error

type KeployConfig

type KeployConfig struct {
	UpdatePrompt string `yaml:"updatePrompt" json:"updatePrompt"`
}

Jump to

Keyboard shortcuts

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