config

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	NullstoneDir string
)

Functions

func CleanseApiKey added in v0.0.8

func CleanseApiKey(apiKey string) string

CleanseApiKey removes characters like \r or \n that cause issues with authentication These characters accidentally get introduced by users copy/pasting into a file usually

Types

type LogStreamOptions added in v0.0.22

type LogStreamOptions struct {
	StartTime *time.Time
	EndTime   *time.Time
	// The filter pattern to use. For more information, see Filter and Pattern Syntax
	// (https://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/FilterAndPatternSyntax.html).
	// If not provided, all the events are matched.
	Pattern *string

	// WatchInterval dictates how often the log streamer will query AWS for new events
	// If left unspecified or 0, will use default watch interval of 1s
	// If a negative value is specified, watching will disable, the log streamer will terminate as soon as logs are emitted
	WatchInterval time.Duration
}

func (LogStreamOptions) QueryTimeMessage added in v0.0.23

func (o LogStreamOptions) QueryTimeMessage() string

func (LogStreamOptions) WatchMessage added in v0.0.23

func (o LogStreamOptions) WatchMessage() string

type PortForward added in v0.0.56

type PortForward struct {
	LocalPort  string
	RemoteHost string
	RemotePort string
}

func ParsePortForward added in v0.0.56

func ParsePortForward(arg string) (PortForward, error)

type Profile added in v0.0.4

type Profile struct {
	Name    string `json:"name"`
	Address string `json:"address"`
	ApiKey  string `json:"-"`
}

func LoadProfile added in v0.0.4

func LoadProfile(name string) (*Profile, error)

func (Profile) ApiKeyFilename added in v0.0.4

func (p Profile) ApiKeyFilename() string

func (Profile) ConfigFilename added in v0.0.4

func (p Profile) ConfigFilename() string

func (Profile) Directory added in v0.0.4

func (p Profile) Directory() string

func (Profile) LoadOrg added in v0.0.4

func (p Profile) LoadOrg() (string, error)

func (Profile) Save added in v0.0.4

func (p Profile) Save() error

func (Profile) SaveOrg added in v0.0.4

func (p Profile) SaveOrg(org string) error

Jump to

Keyboard shortcuts

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