entity

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AccountOptionWithAdditionalInfo

func AccountOptionWithAdditionalInfo(ctx context.Context, account *Account, config aws.Config) error

Types

type Account

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

func NewAccount

func NewAccount(ctx context.Context, profile string, config aws.Config, options ...AccountOption) (*Account, error)

func (*Account) Arn

func (a *Account) Arn() string

func (*Account) ID

func (a *Account) ID() string

func (*Account) Profile

func (a *Account) Profile() string

func (*Account) Region

func (a *Account) Region() string

func (*Account) UserID

func (a *Account) UserID() string

type AccountOption

type AccountOption func(ctx context.Context, account *Account, config aws.Config) error

type Color

type Color int
const (
	Red Color = iota
	Green
	Yellow
	Blue
	Magenta
	Cyan
	White
	Black
	None
)

func ParseColor

func ParseColor(color string) (Color, error)

type Rule

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

func NewRule

func NewRule(expression, color string, confirm bool) (*Rule, error)

func (*Rule) Color

func (p *Rule) Color() Color

func (*Rule) ConfirmOnModify added in v0.2.0

func (p *Rule) ConfirmOnModify() bool

func (*Rule) Match

func (p *Rule) Match(s string) bool

Jump to

Keyboard shortcuts

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