resource

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: 3 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EC2Resource

type EC2Resource struct {
	ResourceType       *string    `json:"resource_type,omitempty"`
	InstanceStatus     *string    `json:"instance_status,omitempty"`
	AccountAlias       *string    `json:"account_alias,omitempty"`
	Name               *string    `json:"name,omitempty"`
	InstanceID         *string    `json:"instance_id,omitempty"`
	InstanceType       *string    `json:"instance_type,omitempty"`
	AvailabilityZone   *string    `json:"availability_zone,omitempty"`
	RegionName         *string    `json:"region_name,omitempty"`
	SecurityGroupNames *string    `json:"security_group_names,omitempty"`
	SecurityGroupIDs   *string    `json:"security_group_ids,omitempty"`
	SubnetID           *string    `json:"subnet_id,omitempty"`
	PublicIP           *string    `json:"public_ip,omitempty"`
	PrivateIPs         *string    `json:"private_ips,omitempty"`
	ImageID            *string    `json:"image_id,omitempty"`
	VpcID              *string    `json:"vpc_id,omitempty"`
	KeyName            *string    `json:"key_name,omitempty"`
	LaunchTime         *time.Time `json:"launch_time,omitempty"`
}

EC2 Resource columns

func (EC2Resource) GetHeaders

func (e EC2Resource) GetHeaders() ([]string, error)

GetHeaders returns headers

func (EC2Resource) GetResource

func (e EC2Resource) GetResource() string

GetResource returns resource type

func (EC2Resource) StructToSliceLine

func (e EC2Resource) StructToSliceLine() ([]string, error)

StructToSliceLine returns header and rows

func (EC2Resource) TransferToCSV

func (e EC2Resource) TransferToCSV() ([]string, error)

TransferToCSV change struct to CSV

type IAMGroupResource

type IAMGroupResource struct {
	ResourceType  *string `json:"resource_type,omitempty"`
	GroupName     *string `json:"group_name,omitempty"`
	Users         *string `json:"users,omitempty"`
	UserCount     *int    `json:"user_count,omitempty"`
	GroupPolicies *string `json:"group_policies,omitempty"`
}

func (IAMGroupResource) GetHeaders

func (i IAMGroupResource) GetHeaders() ([]string, error)

GetHeaders returns headers

func (IAMGroupResource) GetResource

func (i IAMGroupResource) GetResource() string
IAM GROUP

GetResource returns resource type

func (IAMGroupResource) StructToSliceLine

func (i IAMGroupResource) StructToSliceLine() ([]string, error)

StructToSliceLine returns header and rows

func (IAMGroupResource) TransferToCSV

func (i IAMGroupResource) TransferToCSV() ([]string, error)

TransferToCSV change struct to CSV

type IAMRoleResource

type IAMRoleResource struct {
	ResourceType     *string    `json:"resource_type,omitempty"`
	RoleName         *string    `json:"role_name,omitempty"`
	TrustedEntities  *string    `json:"trusted_entities,omitempty"`
	RoleLastActivity *time.Time `json:"role_last_activity,omitempty"`
}

func (IAMRoleResource) GetHeaders

func (i IAMRoleResource) GetHeaders() ([]string, error)

GetHeaders returns headers

func (IAMRoleResource) GetResource

func (i IAMRoleResource) GetResource() string
IAM ROLE

GetResource returns resource type

func (IAMRoleResource) StructToSliceLine

func (i IAMRoleResource) StructToSliceLine() ([]string, error)

StructToSliceLine returns header and rows

func (IAMRoleResource) TransferToCSV

func (i IAMRoleResource) TransferToCSV() ([]string, error)

TransferToCSV change struct to CSV

type IAMUserResource

type IAMUserResource struct {
	ResourceType      *string    `json:"resource_type,omitempty"`
	UserName          *string    `json:"user_name,omitempty"`
	AccessKeyAge      *string    `json:"access_key_age,omitempty"`
	PasswordAge       *string    `json:"password_age,omitempty"`
	UserLastActivity  *string    `json:"user_last_activity,omitempty"`
	MFA               *string    `json:"mfa,omitempty"`
	GroupCount        *int       `json:"group_count,omitempty"`
	ConsoleLastLogin  *time.Time `json:"console_last_login,omitempty"`
	AccessKeyLastUsed *time.Time `json:"access_key_last_usec,omitempty"`
	UserCreated       *time.Time `json:"created,omitempty"`
}

func (IAMUserResource) GetHeaders

func (i IAMUserResource) GetHeaders() ([]string, error)

GetHeaders returns headers

func (IAMUserResource) GetResource

func (i IAMUserResource) GetResource() string
IAM USER

GetResource returns resource type

func (IAMUserResource) StructToSliceLine

func (i IAMUserResource) StructToSliceLine() ([]string, error)

StructToSliceLine returns header and rows

func (IAMUserResource) TransferToCSV

func (i IAMUserResource) TransferToCSV() ([]string, error)

TransferToCSV change struct to CSV

type RDSResource

type RDSResource struct {
	ResourceType     *string    `json:"resource_type,omitempty"`
	RDSIdentifier    *string    `json:"rds_identifier,omitempty"`
	Role             *string    `json:"role,omitempty"`
	Engine           *string    `json:"engine,omitempty"`
	EngineVersion    *string    `json:"engine_version,omitempty"`
	Region           *string    `json:"region,omitempty"`
	AvailabilityZone *string    `json:"availability_zone,omitempty"`
	Size             *string    `json:"size,omitempty"`
	Status           *string    `json:"status,omitempty"`
	VPC              *string    `json:"vpc,omitempty"`
	StorageType      *string    `json:"storage_type,omitempty"`
	SecurityGroup    *string    `json:"security_group,omitempty"`
	DBSubnet         *string    `json:"db_subnet,omitempty"`
	ParameterGroup   *string    `json:"parameter_group,omitempty"`
	OptionGroup      *string    `json:"option_group,omitempty"`
	Created          *time.Time `json:"created,omitempty"`
}

func (RDSResource) GetHeaders

func (r RDSResource) GetHeaders() ([]string, error)

GetHeaders returns headers

func (RDSResource) GetResource

func (r RDSResource) GetResource() string

GetResource returns resource type

func (RDSResource) StructToSliceLine

func (r RDSResource) StructToSliceLine() ([]string, error)

StructToSliceLine returns header and rows

func (RDSResource) TransferToCSV

func (r RDSResource) TransferToCSV() ([]string, error)

TransferToCSV change struct to CSV

type Resource

type Resource interface {
	GetHeaders() ([]string, error)
	TransferToCSV() ([]string, error)
	GetResource() string
	StructToSliceLine() ([]string, error)
}

type Resources

type Resources struct {
	// Provider
	Provider string

	// Resources
	Resources []Resource
}

type Route53Resource

type Route53Resource struct {
	ResourceType *string `json:"resource_type,omitempty"`
	Name         *string `json:"name,omitempty"`
	Type         *string `json:"type,omitempty"`
	Alias        *bool   `json:"alias,omitempty"`
	RouteTo      *string `json:"route_to,omitempty"`
	TTL          *int64  `json:"ttl,omitempty"`
}

Route53 Resource columns

func (Route53Resource) GetHeaders

func (r Route53Resource) GetHeaders() ([]string, error)

GetHeaders returns headers

func (Route53Resource) GetResource

func (r Route53Resource) GetResource() string

GetResource returns resource type

func (Route53Resource) StructToSliceLine

func (r Route53Resource) StructToSliceLine() ([]string, error)

StructToSliceLine returns header and rows

func (Route53Resource) TransferToCSV

func (r Route53Resource) TransferToCSV() ([]string, error)

TransferToCSV change struct to CSV

type S3Resource

type S3Resource struct {
	ResourceType   *string    `json:"resource_type,omitempty"`
	Bucket         *string    `json:"bucket,omitempty"`
	Region         *string    `json:"region,omitempty"`
	LoggingEnabled *bool      `json:"logging_enabled,omitempty"`
	LoggingBucket  *string    `json:"logging_bucket,omitempty"`
	Created        *time.Time `json:"created,omitempty"`
	Policy         *string    `json:"policy,omitempty"`
}

func (S3Resource) GetHeaders

func (s S3Resource) GetHeaders() ([]string, error)

GetHeaders returns headers

func (S3Resource) GetResource

func (s S3Resource) GetResource() string

GetResource returns resource type

func (S3Resource) StructToSliceLine

func (s S3Resource) StructToSliceLine() ([]string, error)

StructToSliceLine returns header and rows

func (S3Resource) TransferToCSV

func (s S3Resource) TransferToCSV() ([]string, error)

TransferToCSV change struct to CSV

type SGResource

type SGResource struct {
	ResourceType  *string `json:"resource_type,omitempty"`
	Name          *string `json:"name,omitempty"`
	ID            *string `json:"id,omitempty"`
	VpcID         *string `json:"vpc_id,omitempty"`
	Owner         *string `json:"owner,omitempty"`
	InboundCount  *int    `json:"inbound_count,omitempty"`
	OutboundCount *int    `json:"outbound_count,omitempty"`
	Description   *string `json:"description,omitempty"`
}

Security Group Resource columns

func (SGResource) GetHeaders

func (s SGResource) GetHeaders() ([]string, error)

GetHeaders returns headers

func (SGResource) GetResource

func (s SGResource) GetResource() string

GetResource returns resource type

func (SGResource) StructToSliceLine

func (s SGResource) StructToSliceLine() ([]string, error)

StructToSliceLine returns header and rows

func (SGResource) TransferToCSV

func (s SGResource) TransferToCSV() ([]string, error)

TransferToCSV change struct to CSV

Jump to

Keyboard shortcuts

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