accountiface

package
v0.35.3 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Servicer

type Servicer interface {
	// Get returns an account from ID
	Get(ID string) (*account.Account, error)
	// Save writes the record to the dataSvc
	Save(data *account.Account) error
	// Update the Account record in DynamoDB
	Update(ID string, data *account.Account) (*account.Account, error)
	// Delete finds a given account and deletes it if it is not of status `Leased`. Returns the account.
	Delete(data *account.Account) error
	// List Get a list of accounts based on Principal ID
	List(query *account.Account) (*account.Accounts, error)
	// ListPages Execute a function per page of accounts
	ListPages(query *account.Account, fn func(*account.Accounts) bool) error
	// Create creates a new account using the data provided. Returns the account record
	Create(data *account.Account) (*account.Account, error)
	// Reset initiates the Reset account process.
	Reset(id string) (*account.Account, error)
	// UpsertPrincipalAccess merges principal access to make sure its
	UpsertPrincipalAccess(data *account.Account) error
}

Servicer makes working with the Account Service struct easier

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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