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
Click to show internal directories.
Click to hide internal directories.