extension_version

package
v1.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExecutionModeSliceToJSON

func ExecutionModeSliceToJSON(in []ExecutionMode) json.RawMessage

func ExtensionVersionSliceToJSON

func ExtensionVersionSliceToJSON(e []ExtensionVersion) json.RawMessage

func ExtensionVersionToJSON

func ExtensionVersionToJSON(e ExtensionVersion) json.RawMessage

func ReviewStatusSliceToJSON

func ReviewStatusSliceToJSON(in []ReviewStatus) json.RawMessage

func StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

Types

type ExecutionMode

type ExecutionMode int64
const (
	EXECUTION_MODE_INVALID ExecutionMode = iota
	EXECUTION_MODE_MANUAL
	EXECUTION_MODE_AUTOMATIC
)

func ExecutionModeFromPointerString

func ExecutionModeFromPointerString(in *string) ExecutionMode

func ExecutionModeFromString

func ExecutionModeFromString(in string) ExecutionMode

func JSONToExecutionModeSlice

func JSONToExecutionModeSlice(in json.RawMessage) []ExecutionMode

func (ExecutionMode) String

func (e ExecutionMode) String() string

func (ExecutionMode) StringPtr

func (e ExecutionMode) StringPtr() *string

func (ExecutionMode) ToInt64

func (e ExecutionMode) ToInt64() int64

type ExtensionVersion

type ExtensionVersion struct {
	UUID                uuid.UUID       `json:"uuid"`
	Version             int64           `json:"version"`
	ExtensionUUID       uuid.UUID       `json:"extension_uuid"`
	DisplayVersion      string          `json:"display_version"`
	Description         string          `json:"description"`
	RepositoryTag       string          `json:"repository_tag"`
	ConfigurationEntity string          `json:"configuration_entity"`
	ExecutionMode       []ExecutionMode `json:"execution_mode"`
	ReviewStatus        ReviewStatus    `json:"review_status"`
	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 ExtensionVersionFromJSON

func ExtensionVersionFromJSON(data json.RawMessage) ExtensionVersion

func ExtensionVersionSliceFromJSON

func ExtensionVersionSliceFromJSON(data json.RawMessage) []ExtensionVersion

func NewExtensionVersionSliceWithRandomValues

func NewExtensionVersionSliceWithRandomValues(n int) []ExtensionVersion

func NewExtensionVersionWithRandomValues

func NewExtensionVersionWithRandomValues() ExtensionVersion

func (ExtensionVersion) ArrayFieldIdentifierToType

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

func (ExtensionVersion) DependantFieldIdentifierToTypeMap

func (e ExtensionVersion) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType

func (ExtensionVersion) EntityIdentifier

func (e ExtensionVersion) EntityIdentifier() string

func (ExtensionVersion) FieldIdentfierToTypeMap

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

func (ExtensionVersion) IsDependant

func (e ExtensionVersion) IsDependant() bool

func (ExtensionVersion) PrimaryKeyIdentifier

func (e ExtensionVersion) PrimaryKeyIdentifier() string

func (ExtensionVersion) PrimaryKeyValue

func (e ExtensionVersion) PrimaryKeyValue() string

func (ExtensionVersion) String

func (e ExtensionVersion) String() string

func (ExtensionVersion) ToJSON

func (e ExtensionVersion) ToJSON() json.RawMessage

type ReviewStatus

type ReviewStatus int64
const (
	REVIEW_STATUS_INVALID ReviewStatus = iota
	REVIEW_STATUS_DRAFT
	REVIEW_STATUS_IN_REVIEW
	REVIEW_STATUS_APPROVED
	REVIEW_STATUS_REJECTED
	REVIEW_STATUS_PUBLISHED
)

func JSONToReviewStatusSlice

func JSONToReviewStatusSlice(in json.RawMessage) []ReviewStatus

func ReviewStatusFromPointerString

func ReviewStatusFromPointerString(in *string) ReviewStatus

func ReviewStatusFromString

func ReviewStatusFromString(in string) ReviewStatus

func (ReviewStatus) String

func (e ReviewStatus) String() string

func (ReviewStatus) StringPtr

func (e ReviewStatus) StringPtr() *string

func (ReviewStatus) ToInt64

func (e ReviewStatus) ToInt64() int64

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

Jump to

Keyboard shortcuts

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