storage

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ActionStorage

type ActionStorage struct {
	// contains filtered or unexported fields
}

func NewAlertStorage

func NewAlertStorage() ActionStorage

func (*ActionStorage) Add

func (a *ActionStorage) Add(action recommendations.AWSAction)

func (*ActionStorage) Get

func (*ActionStorage) List

func (*ActionStorage) ListForPolicy

func (a *ActionStorage) ListForPolicy(policyID string) []recommendations.AWSAction

ListForPolicy lists all the actions that related to a given policy

func (*ActionStorage) SetStatus

func (a *ActionStorage) SetStatus(id string, status string) error

func (*ActionStorage) Update

func (s *ActionStorage) Update(action recommendations.AWSAction) error

type FindPolicyQuery

type FindPolicyQuery struct {
	Role   string
	Token  string
	Status string
}

type PolicyStorage

type PolicyStorage struct {
	// contains filtered or unexported fields
}

func NewPolicyStorage

func NewPolicyStorage() PolicyStorage

func (*PolicyStorage) CreateOrUpdate

func (s *PolicyStorage) CreateOrUpdate(policy recommendations.Policy) error

func (*PolicyStorage) FindByRoleAndToken

func (s *PolicyStorage) FindByRoleAndToken(q FindPolicyQuery) *recommendations.Policy

FindByRoleAndToken finds a matching policy by its role and token

func (*PolicyStorage) Get

func (*PolicyStorage) List

func (s *PolicyStorage) List() []recommendations.Policy

func (*PolicyStorage) ListForStatus

func (s *PolicyStorage) ListForStatus(status string) []recommendations.Policy

Jump to

Keyboard shortcuts

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