envsec

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Overview

package envsec contains library functions for working with envsec. if you want to include envsec in your own project, use this package.

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrProjectAlreadyInitialized = errors.New("project already initialized")
)

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	Issuer   string
	ClientID string
}

type Envsec

type Envsec struct {
	APIHost    string
	Auth       AuthConfig
	IsDev      bool
	Stderr     io.Writer
	WorkingDir string
}

func (*Envsec) DescribeCurrentProject added in v0.0.14

func (e *Envsec) DescribeCurrentProject(
	ctx context.Context,
	w io.Writer,
) error

func (*Envsec) NewProject

func (e *Envsec) NewProject(ctx context.Context, force bool) error

func (*Envsec) ProjectConfig added in v0.0.12

func (e *Envsec) ProjectConfig() (*projectConfig, error)

func (*Envsec) WhoAmI added in v0.0.12

func (e *Envsec) WhoAmI(
	ctx context.Context,
	w io.Writer,
	showTokens bool,
) error

Jump to

Keyboard shortcuts

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