builder

package
v0.0.0-...-ca1ed16 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2021 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadAWSConfig

func ReadAWSConfig() (*ini.File, error)

ReadAWSConfig parse an aws configuration

func ReadAWSCredentials

func ReadAWSCredentials() (*ini.File, error)

ReadAWSCredentials parse an aws credentials

func ValidateFlags

func ValidateFlags(flags Flags) error

ValidateFlags checks validation of flags

Types

type Builder

type Builder struct {
	Config *schema.Config
	Flags  Flags
}

func CreateNewBuilder

func CreateNewBuilder(flags Flags) (*Builder, error)

CreateNewBuilder creates new builder

func New

func New(config *schema.Config, flags Flags) *Builder

Create new builder

func SetDefault

func SetDefault(builder *Builder) *Builder

SetDefault will set the default values for builder

type Flags

type Flags struct {
	Detail    bool   `json:"detail"`
	All       bool   `json:"all"`
	Config    string `json:"config"`
	Resources string `json:"resources"`
	Output    string `json:"output"`
	Region    string `json:"region"`
}

func GetFlags

func GetFlags() (Flags, error)

GetFlags makes flags from command

Jump to

Keyboard shortcuts

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