preflightid

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2023 License: MIT Imports: 14 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Logger *log.Logger
)

Functions

This section is empty.

Types

type IDProvider

type IDProvider interface {
	Run() error
	Equivalent()
}

func NewPreflighter

func NewPreflighter(provider Provider, config *PreflightID) (IDProvider, error)

type IDProviderAWS

type IDProviderAWS struct {
	ARN string `json:"arn" yaml:"arn"`
}

func (*IDProviderAWS) Equivalent added in v0.0.7

func (p *IDProviderAWS) Equivalent()

func (*IDProviderAWS) Run

func (p *IDProviderAWS) Run() error

type IDProviderGCP

type IDProviderGCP struct {
	Email string `json:"email" yaml:"email"`
}

func (*IDProviderGCP) Equivalent added in v0.0.7

func (p *IDProviderGCP) Equivalent()

func (*IDProviderGCP) Run

func (p *IDProviderGCP) Run() error

type IDProviderKube

type IDProviderKube struct {
	ServiceAccount string `json:"serviceAccount" yaml:"serviceAccount"`
}

func (*IDProviderKube) Equivalent added in v0.0.7

func (k *IDProviderKube) Equivalent()

func (*IDProviderKube) Run

func (k *IDProviderKube) Run() error

type PreflightID

type PreflightID struct {
	Provider Provider        `json:"provider" yaml:"provider"`
	AWS      *IDProviderAWS  `json:"aws" yaml:"aws"`
	GCP      *IDProviderGCP  `json:"gcp" yaml:"gcp"`
	Kube     *IDProviderKube `json:"kube" yaml:"kube"`
}

func LoadConfig

func LoadConfig(filepath string) (*PreflightID, error)

func (*PreflightID) Equivalent added in v0.0.9

func (p *PreflightID) Equivalent()

func (*PreflightID) InferProvider

func (p *PreflightID) InferProvider() error

func (*PreflightID) Run

func (p *PreflightID) Run() error

type Provider

type Provider string
const (
	ProviderGCP  Provider = "gcp"
	ProviderAWS  Provider = "aws"
	ProviderKube Provider = "kube"
)

Jump to

Keyboard shortcuts

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