views

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvironmentCreateView

type EnvironmentCreateView struct {
	EnvironmentView
	Secret string `json:"secret"`
}

func NewEnvironmentCreateView

func NewEnvironmentCreateView(environment *vault.Environment, secret string) EnvironmentCreateView

type EnvironmentView

type EnvironmentView struct {
	Id             primitive.ObjectID `json:"id"`
	Name           string             `json:"name,omitempty"`
	Contact        string             `json:"contact,omitempty"`
	Active         bool               `json:"active,omitempty"`
	CreatedAt      string             `json:"createdAt,omitempty"`
	CreatedBy      string             `json:"createdBy,omitempty"`
	LastModifiedAt string             `json:"lastModifiedAt,omitempty"`
	LastModifiedBy string             `json:"lastModifiedBy,omitempty"`
}

func NewEnvironmentView

func NewEnvironmentView(environment *vault.Environment) EnvironmentView

type SecretDecryptView

type SecretDecryptView struct {
	Secret string `json:"secret"`
}

func NewSecretDecodeView

func NewSecretDecodeView(decryptedSecret string) SecretDecryptView

type SecretView

type SecretView struct {
	Id             primitive.ObjectID `json:"id"`
	Description    string             `json:"description,omitempty"`
	CreatedAt      string             `json:"createdAt,omitempty"`
	CreatedBy      string             `json:"createdBy,omitempty"`
	LastModifiedAt string             `json:"lastModifiedAt,omitempty"`
	LastModifiedBy string             `json:"lastModifiedBy,omitempty"`
}

func NewSecretView

func NewSecretView(secret *vault.Secret) SecretView

type TokenCreateView

type TokenCreateView struct {
	TokenView
	Secret string `json:"secret"`
}

func NewTokenCreateView

func NewTokenCreateView(token *vault.Token) TokenCreateView

type TokenView

type TokenView struct {
	Id            primitive.ObjectID `json:"id"`
	Description   string             `json:"description,omitempty"`
	EnvironmentId primitive.ObjectID `json:"environmentId,omitempty"`
	CreatedAt     string             `json:"createdAt,omitempty"`
	CreatedBy     string             `json:"createdBy,omitempty"`
	ExpiresAt     string             `json:"expiresAt,omitempty"`
	TokenType     string             `json:"tokenType,omitempty"`
}

func NewTokenView

func NewTokenView(token *vault.Token) TokenView

Jump to

Keyboard shortcuts

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