depid

package
v0.15.14 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Overview

Package depid handles loading and saving deployment information.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Deployment

type Deployment struct {
	ID         string `json:"id" dynamodbav:"id"`
	UserCount  int    `json:"userCount" dynamodbav:"userCount"`
	GroupCount int    `json:"groupCount" dynamodbav:"groupCount"`
	IDP        string `json:"idp" dynamodbav:"idp"`
}

func (*Deployment) DDBKeys

func (d *Deployment) DDBKeys() (ddb.Keys, error)

func (*Deployment) ToAnalytics

func (d *Deployment) ToAnalytics() *analytics.DeploymentInfo

type Loader

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

func New

func New(client ddb.Storage, log *zap.SugaredLogger) *Loader

func (*Loader) GetDeployment

func (l *Loader) GetDeployment(ctx context.Context) (*Deployment, error)

func (*Loader) SetUserInfo

func (l *Loader) SetUserInfo(ctx context.Context, ui UserInfo) (*Deployment, error)

type UserInfo

type UserInfo struct {
	UserCount  int
	GroupCount int
	IDP        string
}

Jump to

Keyboard shortcuts

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