sku_json_fmt

package
v0.0.0-...-3c84ed4 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func TomlBookmarkUrl

func TomlBookmarkUrl(
	object *sku.Transacted,
	envRepo env_repo.Env,
) (ur *url.URL, err error)

Types

type JsonWithUrl

type JsonWithUrl struct {
	Transacted
	TomlBookmark
}

func MakeJsonTomlBookmark

func MakeJsonTomlBookmark(
	object *sku.Transacted,
	envRepo env_repo.Env,
	tabs []any,
) (json JsonWithUrl, err error)

type Lock

type Lock struct {
	Type string `json:"type,omitempty"`
}

type MCP

type MCP struct {
	WithDormant

	URI         string   `json:"uri,omitempty"`
	RelatedURIs []string `json:"related_uris,omitempty"`
}

func (*MCP) FromStringAndMetadata

func (json *MCP) FromStringAndMetadata(
	objectId string,
	metadata objects.MetadataMutable,
	blobStore interfaces.BlobStore,
) (err error)

func (*MCP) FromTransacted

func (json *MCP) FromTransacted(
	object *sku.Transacted,
	blobStore interfaces.BlobStore,
) (err error)

func (*MCP) ToTransacted

func (json *MCP) ToTransacted(
	object *sku.Transacted,
	blobStore interfaces.BlobStore,
) (err error)

type TomlBookmark

type TomlBookmark struct {
	Url string `toml:"url"`
}

type Transacted

type Transacted struct {
	BlobId      string   `json:"blob-id"`
	BlobString  string   `json:"blob-string,omitempty"`
	Date        string   `json:"date"`
	Description string   `json:"description"`
	Lock        Lock     `json:"lock"`
	ObjectId    string   `json:"object-id"`
	RepoPubkey  markl.Id `json:"repo-pub_key"`
	RepoSig     markl.Id `json:"repo-sig"`
	Sha         string   `json:"sha"`
	Tags        []string `json:"tags"`
	Tai         string   `json:"tai"`
	Type        string   `json:"type"`
}

func (*Transacted) FromObjectIdStringAndMetadata

func (json *Transacted) FromObjectIdStringAndMetadata(
	objectId string,
	metadata objects.MetadataMutable,
	blobStore interfaces.BlobStore,
) (err error)

func (*Transacted) FromTransacted

func (json *Transacted) FromTransacted(
	object *sku.Transacted,
	blobStore interfaces.BlobStore,
) (err error)

func (*Transacted) ToTransacted

func (json *Transacted) ToTransacted(
	object *sku.Transacted,
	blobStore interfaces.BlobStore,
) (err error)

type WithDormant

type WithDormant struct {
	Transacted

	Dormant bool `json:"dormant"`
}

func (*WithDormant) FromStringAndMetadata

func (json *WithDormant) FromStringAndMetadata(
	objectId string,
	metadata objects.MetadataMutable,
	blobStore interfaces.BlobStore,
) (err error)

func (*WithDormant) FromTransacted

func (json *WithDormant) FromTransacted(
	object *sku.Transacted,
	blobStore interfaces.BlobStore,
) (err error)

func (*WithDormant) ToTransacted

func (json *WithDormant) ToTransacted(
	object *sku.Transacted,
	blobStore interfaces.BlobStore,
) (err error)

Source Files

  • bookmark.go
  • bookmark_url.go
  • lock.go
  • main.go
  • mcp.go
  • with_dormant.go

Jump to

Keyboard shortcuts

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