stocker

package
v0.0.0-...-ee673a8 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AWSStocker

type AWSStocker struct {
	Account *inventory.Account
	// contains filtered or unexported fields
}

AWSStocker object to make stock on AWS

func NewAWSStocker

func NewAWSStocker(account *inventory.Account, logger *zap.Logger) *AWSStocker

NewAWSStocker create and returns a pointer to a new AWSStocker instance

func (*AWSStocker) CreateSession

func (s *AWSStocker) CreateSession() error

CreateSession Initialices the AWS API session

func (AWSStocker) GetResults

func (s AWSStocker) GetResults() inventory.Account

TODO: doc

func (*AWSStocker) MakeStock

func (s *AWSStocker) MakeStock() error

MakeStock TODO

func (AWSStocker) PrintStock

func (s AWSStocker) PrintStock()

TODO: doc

type AzureStocker

type AzureStocker struct {
	Account inventory.Account
	// contains filtered or unexported fields
}

AzureStocker object to make stock on Azure

func NewAzureStocker

func NewAzureStocker(account inventory.Account, logger *zap.Logger) *AzureStocker

NewAzureStocker create and returns a pointer to a new AzureStocker instance

func (AzureStocker) GetResults

func (s AzureStocker) GetResults() inventory.Account

GetResults resturns the scanned results on this stocker instance

func (AzureStocker) MakeStock

func (s AzureStocker) MakeStock() error

MakeStock Scans Azure cloud accounts

func (AzureStocker) PrintStock

func (s AzureStocker) PrintStock()

PrintStock prints by stdout the account object belongs to this stocker

type GCPStocker

type GCPStocker struct {
	Account inventory.Account
	// contains filtered or unexported fields
}

GCPStocker object to make stock on GCP

func NewGCPStocker

func NewGCPStocker(account inventory.Account, logger *zap.Logger) *GCPStocker

NewGCPStocker create and returns a pointer to a new GCPStocker instance

func (GCPStocker) GetResults

func (s GCPStocker) GetResults() inventory.Account

GetResults resturns the scanned results on this stocker instance

func (GCPStocker) MakeStock

func (s GCPStocker) MakeStock() error

MakeStock Scans GCP cloud accounts

func (GCPStocker) PrintStock

func (s GCPStocker) PrintStock()

PrintStock prints by stdout the account object belongs to this stocker

type Stocker

type Stocker interface {
	MakeStock() error
	PrintStock()
	GetResults() inventory.Account
}

Stocker interface

Jump to

Keyboard shortcuts

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