project

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 AccessTypeSliceToJSON added in v1.0.17

func AccessTypeSliceToJSON(in []AccessType) json.RawMessage

func ProjectSliceToJSON

func ProjectSliceToJSON(e []Project) json.RawMessage

func ProjectToJSON

func ProjectToJSON(e Project) json.RawMessage

func StatusSliceToJSON

func StatusSliceToJSON(in []Status) json.RawMessage

Types

type AccessType added in v1.0.17

type AccessType int64
const (
	ACCESS_TYPE_INVALID AccessType = iota
	ACCESS_TYPE_INHERIT
	ACCESS_TYPE_CUSTOM
)

func AccessTypeFromPointerString added in v1.0.17

func AccessTypeFromPointerString(in *string) AccessType

func AccessTypeFromString added in v1.0.17

func AccessTypeFromString(in string) AccessType

func JSONToAccessTypeSlice added in v1.0.17

func JSONToAccessTypeSlice(in json.RawMessage) []AccessType

func (AccessType) String added in v1.0.17

func (e AccessType) String() string

func (AccessType) StringPtr added in v1.0.17

func (e AccessType) StringPtr() *string

func (AccessType) ToInt64 added in v1.0.17

func (e AccessType) ToInt64() int64

type Project

type Project struct {
	UUID              uuid.UUID                            `json:"uuid"`
	Version           int64                                `json:"version"`
	Name              string                               `json:"name"`
	Description       *string                              `json:"description"`
	Tags              []string                             `json:"tags"`
	URL               *string                              `json:"url"`
	OwnerUUID         uuid.UUID                            `json:"owner_uuid"`
	TeamUUID          uuid.UUID                            `json:"team_uuid"`
	AccessType        AccessType                           `json:"access_type"`
	ProjectExtensions []project_extension.ProjectExtension `json:"project_extensions"`
	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 NewProjectSliceWithRandomValues

func NewProjectSliceWithRandomValues(n int) []Project

func NewProjectWithRandomValues

func NewProjectWithRandomValues() Project

func ProjectFromJSON

func ProjectFromJSON(data json.RawMessage) Project

func ProjectSliceFromJSON

func ProjectSliceFromJSON(data json.RawMessage) []Project

func (Project) ArrayFieldIdentifierToType

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

func (Project) DependantFieldIdentifierToTypeMap

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

func (Project) EntityIdentifier

func (e Project) EntityIdentifier() string

func (Project) FieldIdentfierToTypeMap

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

func (Project) IsDependant

func (e Project) IsDependant() bool

func (Project) OrderedFieldIdentifiers added in v1.0.35

func (e Project) OrderedFieldIdentifiers() []string

func (Project) PrimaryKeyIdentifier

func (e Project) PrimaryKeyIdentifier() string

func (Project) PrimaryKeyValue

func (e Project) PrimaryKeyValue() string

func (Project) String

func (e Project) String() string

func (Project) ToJSON

func (e Project) 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

Jump to

Keyboard shortcuts

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