domain

package
v1.2.0-beta.10 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrInvalidKeyType = func(kty string) error {
	return fmt.Errorf("invalid key type: %s", kty)
}

Functions

func ValidateKeyType

func ValidateKeyType(kty string) (key.KeyType, error)

Types

type Certification

type Certification struct {
	AnchorID int
	Hash     string
	DataID   string
	Data     []byte
	Record   *record.Record
}

type File

type File struct {
	File []byte
	// contains filtered or unexported fields
}

func NewFile

func NewFile(file []byte, filename, contentType string) File

func (File) Bytes

func (f File) Bytes() []byte

func (File) ContentType

func (f File) ContentType() string

func (File) FileExtension

func (f File) FileExtension() string

func (File) Filename

func (f File) Filename() string

type HostingType

type HostingType int
const (
	IPFS   HostingType = iota
	HOSTED HostingType = iota
	LOCAL  HostingType = iota
)

func ParseHostingType

func ParseHostingType(value string) (HostingType, error)

func (HostingType) String

func (h HostingType) String() string

type KeyType

type KeyType int
const (
	LOCAL_KEY           KeyType = iota
	MANAGED_KEY         KeyType = iota
	LOCAL_CERTIFICATE   KeyType = iota
	MANAGED_CERTIFICATE KeyType = iota
)

func ParseKeySource

func ParseKeySource(value string) (KeyType, error)

func (KeyType) String

func (t KeyType) String() string

type LocalKey

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

func NewLocalKey

func NewLocalKey(localKey key.LocalKey, keyType key.KeyType, id uuid.UUID) *LocalKey

func NewLocalKeyID

func NewLocalKeyID(id uuid.UUID, localKey key.LocalKey, keyType key.KeyType) *LocalKey

func (LocalKey) Id

func (l LocalKey) Id() uuid.UUID

func (LocalKey) KeyType

func (l LocalKey) KeyType() key.KeyType

func (LocalKey) KeyTypeStr

func (l LocalKey) KeyTypeStr() string

func (LocalKey) LocalKey

func (l LocalKey) LocalKey() key.LocalKey

type LocalStorageStrategy

type LocalStorageStrategy int64
const (
	LocalStorageStrategyUnknown LocalStorageStrategy = iota
	LocalStorageStrategyHash
	LocalStorageStrategyFilename
)

func LocalStorageStrategyFromString

func LocalStorageStrategyFromString(strategy string) LocalStorageStrategy

func (LocalStorageStrategy) String

func (s LocalStorageStrategy) String() string

Directories

Path Synopsis
mocks
Package mock_repository is a generated GoMock package.
Package mock_repository is a generated GoMock package.

Jump to

Keyboard shortcuts

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