csp_info

package
Version: v0.0.0-...-29910c1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2021 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CspInfoAccessor

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

Accessor accesses to csp info in-memory data.

func New

func New(db *gorm.DB) *CspInfoAccessor

NewCspInfoAccessor returns new Accessor to access csp info.

func (*CspInfoAccessor) Create

func (x *CspInfoAccessor) Create(contractId uuid.UUID, name string, auth string) (uuid.UUID, error)

Create creates new CSP info with contractID and auth.

func (*CspInfoAccessor) GetCSPIDsByContractID

func (x *CspInfoAccessor) GetCSPIDsByContractID(contractId uuid.UUID) ([]string, error)

GetCSPIDsByContractID returns a list of CSP ID by contract ID if it exists.

func (*CspInfoAccessor) GetCSPInfo

func (x *CspInfoAccessor) GetCSPInfo(id uuid.UUID) (model.CSPInfo, error)

Get returns a CSP Info if it exists.

func (*CspInfoAccessor) UpdateCSPAuth

func (x *CspInfoAccessor) UpdateCSPAuth(id uuid.UUID, auth string) error

Update updates an authentication info for CSP.

Source Files

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL