shared

package
v0.0.0-...-4c78285 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2024 License: MPL-2.0 Imports: 1 Imported by: 0

Documentation

Overview

* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this * file, You can obtain one at https://mozilla.org/MPL/2.0/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EncryptionKey

type EncryptionKey struct {
	Id           uuid.UUID `json:"id"`
	Key          string    `json:"key"`
	CreatedAt    int64     `json:"created_at"`
	DeprecatedAt int64     `json:"deprecated_at"`
}

type EncryptionKeyList

type EncryptionKeyList struct {
	ActiveKey EncryptionKey   `json:"active_key"`
	OldKeys   []EncryptionKey `json:"keys"`
}

type InitSysRequest

type InitSysRequest struct {
	Threshold int `json:"threshold"`
	Shares    int `json:"shares"`
}

type InitSysResponse

type InitSysResponse struct {
	Shares    []string `json:"shares"`
	RootToken string   `json:"root_token"`
}

type KvResponse

type KvResponse struct {
	Data KvResponseData `json:"data" validate:"required"`
}

type KvResponseData

type KvResponseData struct {
	Data     interface{} `json:"data" validate:"required"`
	Metadata struct {
		CreatedTime    string            `json:"created_time" validate:"required"`
		CustomMetadata map[string]string `json:"custom_metadata" validate:"required"`
		DeletionTime   string            `json:"deletion_time" validate:"required"`
		Destroyed      bool              `json:"destroyed" validate:"required"`
		Version        int64             `json:"version" validate:"required"`
	} `json:"metadata" validate:"required"`
}

type MountConfig

type MountConfig struct {
	Ttl         string `json:"ttl"`
	MaxVersions int64  `json:"max_versions"`
}

type Mounts

type Mounts struct {
	Path        string `json:"path"`
	BucketType  string `json:"type"`
	Description string `json:"description"`
	CreatedAt   int64  `json:"created_at"`
	UpdatedAt   int64  `json:"updated_at"`
	Config      MountConfig
}

type Paths

type Paths struct {
	Path     string          `json:"path"`
	Versions []SecretVersion `json:"versions"`
}

type Secret

type Secret struct {
	Metadata SecretMetadata `json:"metadata" validate:"required"`
	Paths    []Paths        `json:"paths" validate:"required"`
}

type SecretMetadata

type SecretMetadata struct {
	CreatedAt          int64             `json:"created_at" validate:"required"`
	Path               string            `json:"path" validate:"required"`
	MaxVersions        int64             `json:"max_versions" validate:"required"`
	DeleteVersionAfter int64             `json:"delete_version_after" validate:"required"`
	CustomMetadata     map[string]string `json:"custom_metadata" validate:"required"`
}

type SecretVersion

type SecretVersion struct {
	Data     interface{}           `json:"data" validate:"required"`
	Metadata SecretVersionMetadata `json:"metadata" validate:"required"`
}

type SecretVersionMetadata

type SecretVersionMetadata struct {
	Version        int64             `json:"version" validate:"required"`
	CreatedAt      int64             `json:"created_at" validate:"required"`
	DeletionTime   int64             `json:"deletion_time" validate:"required"`
	Destroyed      bool              `json:"destroyed" validate:"required"`
	Deleted        bool              `json:"deleted" validate:"required"`
	CustomMetadata map[string]string `json:"custom_metadata" validate:"required"`
}

Jump to

Keyboard shortcuts

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