config

package
v0.0.0-...-4f4e16b Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2022 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizedKey

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

func (*AuthorizedKey) Matches

func (k *AuthorizedKey) Matches(key ssh.PublicKey) bool

func (*AuthorizedKey) String

func (k *AuthorizedKey) String() string

func (*AuthorizedKey) UnmarshalYAML

func (k *AuthorizedKey) UnmarshalYAML(node *yaml.Node) error

type AwsConfig

type AwsConfig struct {
	Region      string
	Credentials *credentials.Credentials
}

func (*AwsConfig) UnmarshalYAML

func (c *AwsConfig) UnmarshalYAML(node *yaml.Node) error

type Config

type Config struct {
	HostKeys      HostKeys      `yaml:"HostKeys"`
	AwsConfig     AwsConfig     `yaml:"AwsConfig"`
	DefaultFormat DefaultFormat `yaml:"DefaultFormat"`
	Permissions   []Permission  `yaml:"Permissions"`
	ListenAddress string        `yaml:"ListenAddress"`
}

func Load

func Load(path string) (*Config, error)

type DefaultFormat

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

func (*DefaultFormat) Apply

func (df *DefaultFormat) Apply(response *boggart.Response) ([]byte, error)

func (*DefaultFormat) Name

func (df *DefaultFormat) Name() string

func (*DefaultFormat) UnmarshalYAML

func (df *DefaultFormat) UnmarshalYAML(node *yaml.Node) error

type HostKeys

type HostKeys struct {
	Signers []gliderssh.Signer
}

func (*HostKeys) String

func (k *HostKeys) String() string

func (*HostKeys) UnmarshalYAML

func (k *HostKeys) UnmarshalYAML(node *yaml.Node) error

type Permission

type Permission struct {
	Name          string        `yaml:"Name"`
	AuthorizedKey AuthorizedKey `yaml:"AuthorizedKey"`
	Roles         []RolePattern `yaml:"Roles"`
}

func (*Permission) CanAssumeRole

func (p *Permission) CanAssumeRole(arn string) bool

func (*Permission) IsKeyAuthorized

func (p *Permission) IsKeyAuthorized(key ssh.PublicKey) bool

type RolePattern

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

func (*RolePattern) Matches

func (rp *RolePattern) Matches(arn string) bool

func (*RolePattern) UnmarshalYAML

func (rp *RolePattern) UnmarshalYAML(node *yaml.Node) error

Jump to

Keyboard shortcuts

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