profiles

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(profileName string) error

func GetDefaultProfileName

func GetDefaultProfileName() (string, error)

func List

func List() (profileNames []string, err error)

func New

func New(profileName, gitURI, gitBranch string) error

func SetDefault

func SetDefault(profileName string) error

Types

type Profile

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

func Get

func Get(profileName string) (profile *Profile, err error)

func GetDefaultProfile

func GetDefaultProfile() (profile *Profile, err error)

func (*Profile) DeleteEnv

func (profile *Profile) DeleteEnv(id string) error

func (*Profile) GetEnv

func (profile *Profile) GetEnv(id string) (*environments.Environment, error)

func (*Profile) GetRoot

func (profile *Profile) GetRoot() (*environments.Environment, error)

func (*Profile) GetSettings

func (profile *Profile) GetSettings() (*settings.Settings, error)

func (*Profile) ListEnvs

func (profile *Profile) ListEnvs() ([]*environments.Environment, error)

func (*Profile) Name

func (profile *Profile) Name() string

func (*Profile) Pull

func (profile *Profile) Pull() error

func (*Profile) Push

func (profile *Profile) Push() error

func (*Profile) PutEnv

func (profile *Profile) PutEnv(env *environments.Environment) error

func (*Profile) RootPublicKey

func (profile *Profile) RootPublicKey() (*crypto.PublicKey, error)

func (*Profile) SearchEnvs

func (profile *Profile) SearchEnvs(queries []string) ([]*environments.Environment, error)

func (*Profile) SetRoot

func (profile *Profile) SetRoot(env *environments.Environment) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳