schema

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	ProjectID  uuid.UUID         `bson:"project_id" json:"project_id"`
	ProviderID uuid.UUID         `bson:"provider_id" json:"provider_id"`
	SecretID   uuid.UUID         `bson:"secrets_id" json:"secrets_id"`
	Name       string            `bson:"name" json:"name"`
	Buckets    []*storage.Bucket `bson:"buckets" json:"buckets"`
	Data       []byte            `bson:"data" json:"data"`
}

func ProviderFromProto

func ProviderFromProto(projectID, providerID, secretsID uuid.UUID, p *storage.Provider) (*Provider, error)

func (*Provider) ToProto

func (p *Provider) ToProto() (*storage.Provider, error)

func (*Provider) ToProtoEntry

func (p *Provider) ToProtoEntry() (*storage.ProviderEntry, error)

Jump to

Keyboard shortcuts

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