object_store

package
v1.0.43 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ObjectStoreSliceToJSON

func ObjectStoreSliceToJSON(e []ObjectStore) json.RawMessage

func ObjectStoreToJSON

func ObjectStoreToJSON(e ObjectStore) json.RawMessage

func StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

func TypeSliceToJSON

func TypeSliceToJSON(in []Type) json.RawMessage

Types

type ObjectStore

type ObjectStore struct {
	UUID          uuid.UUID                                      `json:"uuid"`
	Identifier    string                                         `json:"identifier"`
	Type          Type                                           `json:"type"`
	TypeConfig    object_store_type_config.ObjectStoreTypeConfig `json:"type_config"`
	Status        Status                                         `json:"status"`
	CreatedAt     time.Time                                      `json:"created_at"`
	UpdatedAt     time.Time                                      `json:"updated_at"`
	CreatedByUUID uuid.UUID                                      `json:"created_by_uuid"`
	UpdatedByUUID uuid.UUID                                      `json:"updated_by_uuid"`
}

func NewObjectStoreSliceWithRandomValues

func NewObjectStoreSliceWithRandomValues(n int) []ObjectStore

func NewObjectStoreWithRandomValues

func NewObjectStoreWithRandomValues() ObjectStore

func ObjectStoreFromJSON

func ObjectStoreFromJSON(data json.RawMessage) ObjectStore

func ObjectStoreSliceFromJSON

func ObjectStoreSliceFromJSON(data json.RawMessage) []ObjectStore

func (ObjectStore) ArrayFieldIdentifierToType

func (e ObjectStore) ArrayFieldIdentifierToType() map[string]types.FieldType

func (ObjectStore) EntityIdentifier

func (e ObjectStore) EntityIdentifier() string

func (ObjectStore) FieldIdentfierToTypeMap

func (e ObjectStore) FieldIdentfierToTypeMap() map[string]types.FieldType

func (ObjectStore) IsDependant

func (e ObjectStore) IsDependant() bool

func (ObjectStore) OrderedFieldIdentifiers added in v1.0.35

func (e ObjectStore) OrderedFieldIdentifiers() []string

func (ObjectStore) String

func (e ObjectStore) String() string

func (ObjectStore) ToJSON

func (e ObjectStore) ToJSON() json.RawMessage

type Status

type Status int64
const (
	STATUS_INVALID Status = iota
	STATUS_ACTIVE
	STATUS_DISABLED
)

func JSONToStatusSlice

func JSONToStatusSlice(in json.RawMessage) []Status

func StatusFromPointerString

func StatusFromPointerString(in *string) Status

func StatusFromString

func StatusFromString(in string) Status

func (Status) String

func (e Status) String() string

func (Status) StringPtr

func (e Status) StringPtr() *string

func (Status) ToInt64

func (e Status) ToInt64() int64

type Type

type Type int64
const (
	TYPE_INVALID Type = iota
	TYPE_S3
)

func JSONToTypeSlice

func JSONToTypeSlice(in json.RawMessage) []Type

func TypeFromPointerString

func TypeFromPointerString(in *string) Type

func TypeFromString

func TypeFromString(in string) Type

func (Type) String

func (e Type) String() string

func (Type) StringPtr

func (e Type) StringPtr() *string

func (Type) ToInt64

func (e Type) ToInt64() int64

Jump to

Keyboard shortcuts

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