secrets_models

package
v0.0.0-...-7eaa7e1 Latest Latest
Warning

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

Go to latest
Published: Dec 19, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// SecretDefinitionScopeUser captures enum value "user"
	SecretDefinitionScopeUser string = "user"

	// SecretDefinitionScopeProject captures enum value "project"
	SecretDefinitionScopeProject string = "project"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Keypair

type Keypair struct {

	// encrypted private key
	// Required: true
	EncryptedPrivateKey *string `json:"encrypted_private_key"`

	// public key
	// Required: true
	PublicKey *string `json:"public_key"`

	// user id
	// Required: true
	// Format: uuid
	UserID *strfmt.UUID `json:"user_id"`
}

Keypair keypair swagger:model Keypair

func (*Keypair) MarshalBinary

func (m *Keypair) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Keypair) UnmarshalBinary

func (m *Keypair) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Keypair) Validate

func (m *Keypair) Validate(formats strfmt.Registry) error

Validate validates this keypair

type KeypairChange

type KeypairChange struct {

	// encrypted private key
	// Required: true
	EncryptedPrivateKey *string `json:"encrypted_private_key"`

	// public key
	// Required: true
	PublicKey *string `json:"public_key"`

	// Optional and ignored user-id value
	// Format: uuid
	UserID strfmt.UUID `json:"user_id,omitempty"`
}

KeypairChange keypair change swagger:model KeypairChange

func (*KeypairChange) MarshalBinary

func (m *KeypairChange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*KeypairChange) UnmarshalBinary

func (m *KeypairChange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*KeypairChange) Validate

func (m *KeypairChange) Validate(formats strfmt.Registry) error

Validate validates this keypair change

type Message

type Message struct {

	// code
	// Required: true
	Code *int64 `json:"code"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Message message swagger:model Message

func (*Message) MarshalBinary

func (m *Message) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Message) UnmarshalBinary

func (m *Message) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Message) Validate

func (m *Message) Validate(formats strfmt.Registry) error

Validate validates this message

type PublicKey

type PublicKey struct {

	// user id
	// Required: true
	// Format: uuid
	UserID *strfmt.UUID `json:"user_id"`

	// value
	// Required: true
	Value *string `json:"value"`
}

PublicKey public key swagger:model PublicKey

func (*PublicKey) MarshalBinary

func (m *PublicKey) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*PublicKey) UnmarshalBinary

func (m *PublicKey) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*PublicKey) Validate

func (m *PublicKey) Validate(formats strfmt.Registry) error

Validate validates this public key

type SecretDefinition

type SecretDefinition struct {

	// def id
	// Format: uuid
	DefID strfmt.UUID `json:"def_id,omitempty"`

	// description
	Description string `json:"description,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// project id
	// Required: true
	// Format: uuid
	ProjectID *strfmt.UUID `json:"project_id"`

	// scope
	// Required: true
	// Enum: [user project]
	Scope *string `json:"scope"`
}

SecretDefinition secret definition swagger:model SecretDefinition

func (*SecretDefinition) MarshalBinary

func (m *SecretDefinition) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*SecretDefinition) UnmarshalBinary

func (m *SecretDefinition) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*SecretDefinition) Validate

func (m *SecretDefinition) Validate(formats strfmt.Registry) error

Validate validates this secret definition

type UID

type UID struct {

	// uid
	// Required: true
	// Format: uuid
	UID *strfmt.UUID `json:"uid"`
}

UID UID swagger:model UID

func (*UID) MarshalBinary

func (m *UID) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UID) UnmarshalBinary

func (m *UID) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UID) Validate

func (m *UID) Validate(formats strfmt.Registry) error

Validate validates this UID

type UserSecret

type UserSecret struct {

	// is user
	// Required: true
	IsUser *bool `json:"is_user"`

	// name
	// Required: true
	Name *string `json:"name"`

	// organization id
	// Required: true
	// Format: uuid
	OrganizationID *strfmt.UUID `json:"organization_id"`

	// project id
	// Format: uuid
	ProjectID strfmt.UUID `json:"project_id,omitempty"`

	// secret id
	// Required: true
	// Format: uuid
	SecretID *strfmt.UUID `json:"secret_id"`

	// user id
	// Required: true
	// Format: uuid
	UserID *strfmt.UUID `json:"user_id"`

	// value
	// Required: true
	Value *string `json:"value"`
}

UserSecret user secret swagger:model UserSecret

func (*UserSecret) MarshalBinary

func (m *UserSecret) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserSecret) UnmarshalBinary

func (m *UserSecret) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserSecret) Validate

func (m *UserSecret) Validate(formats strfmt.Registry) error

Validate validates this user secret

type UserSecretChange

type UserSecretChange struct {

	// is user
	// Required: true
	IsUser *bool `json:"is_user"`

	// name
	// Required: true
	Name *string `json:"name"`

	// project id
	// Format: uuid
	ProjectID strfmt.UUID `json:"project_id,omitempty"`

	// value
	// Required: true
	Value *string `json:"value"`
}

UserSecretChange user secret change swagger:model UserSecretChange

func (*UserSecretChange) MarshalBinary

func (m *UserSecretChange) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserSecretChange) UnmarshalBinary

func (m *UserSecretChange) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserSecretChange) Validate

func (m *UserSecretChange) Validate(formats strfmt.Registry) error

Validate validates this user secret change

type UserSecretDiff

type UserSecretDiff struct {

	// public key
	// Required: true
	PublicKey *string `json:"public_key"`

	// shares
	Shares []*UserSecretShare `json:"shares"`

	// user id
	// Required: true
	// Format: uuid
	UserID *strfmt.UUID `json:"user_id"`
}

UserSecretDiff user secret diff swagger:model UserSecretDiff

func (*UserSecretDiff) MarshalBinary

func (m *UserSecretDiff) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserSecretDiff) UnmarshalBinary

func (m *UserSecretDiff) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserSecretDiff) Validate

func (m *UserSecretDiff) Validate(formats strfmt.Registry) error

Validate validates this user secret diff

type UserSecretShare

type UserSecretShare struct {

	// name
	// Required: true
	Name *string `json:"name"`

	// project id
	// Format: uuid
	ProjectID strfmt.UUID `json:"project_id,omitempty"`

	// value
	// Required: true
	Value *string `json:"value"`
}

UserSecretShare user secret share swagger:model UserSecretShare

func (*UserSecretShare) MarshalBinary

func (m *UserSecretShare) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*UserSecretShare) UnmarshalBinary

func (m *UserSecretShare) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*UserSecretShare) Validate

func (m *UserSecretShare) Validate(formats strfmt.Registry) error

Validate validates this user secret share

Jump to

Keyboard shortcuts

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