Documentation
¶
Index ¶
- func ProjectVersionSliceToJSON(e []ProjectVersion) json.RawMessage
- func ProjectVersionToJSON(e ProjectVersion) json.RawMessage
- func ReviewStatusSliceToJSON(in []ReviewStatus) json.RawMessage
- func StatusSliceToJSON(in []Status) json.RawMessage
- type ProjectVersion
- func (e ProjectVersion) ArrayFieldIdentifierToType() map[string]types.FieldType
- func (e ProjectVersion) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType
- func (e ProjectVersion) EntityIdentifier() string
- func (e ProjectVersion) FieldIdentfierToTypeMap() map[string]types.FieldType
- func (e ProjectVersion) IsDependant() bool
- func (e ProjectVersion) PrimaryKeyIdentifier() string
- func (e ProjectVersion) PrimaryKeyValue() string
- func (e ProjectVersion) String() string
- func (e ProjectVersion) ToJSON() json.RawMessage
- type ReviewStatus
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProjectVersionSliceToJSON ¶
func ProjectVersionSliceToJSON(e []ProjectVersion) json.RawMessage
func ProjectVersionToJSON ¶
func ProjectVersionToJSON(e ProjectVersion) json.RawMessage
func ReviewStatusSliceToJSON ¶
func ReviewStatusSliceToJSON(in []ReviewStatus) json.RawMessage
func StatusSliceToJSON ¶
func StatusSliceToJSON(in []Status) json.RawMessage
Types ¶
type ProjectVersion ¶
type ProjectVersion struct { UUID uuid.UUID `json:"uuid"` Version int64 `json:"version"` Identifier string `json:"identifier"` Description string `json:"description"` ProjectUUID uuid.UUID `json:"project_uuid"` Entities []entity.Entity `json:"entities"` Relationships []relationship.Relationship `json:"relationships"` Enums []enum.Enum `json:"enums"` Services []service.Service `json:"services"` BaseVersionUUID uuid.UUID `json:"base_version_uuid"` ReviewStatus ReviewStatus `json:"review_status"` Deployments []project_version_deployment.ProjectVersionDeployment `json:"deployments"` 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 NewProjectVersionSliceWithRandomValues ¶
func NewProjectVersionSliceWithRandomValues(n int) []ProjectVersion
func NewProjectVersionWithRandomValues ¶
func NewProjectVersionWithRandomValues() ProjectVersion
func ProjectVersionFromJSON ¶
func ProjectVersionFromJSON(data json.RawMessage) ProjectVersion
func ProjectVersionSliceFromJSON ¶
func ProjectVersionSliceFromJSON(data json.RawMessage) []ProjectVersion
func (ProjectVersion) ArrayFieldIdentifierToType ¶
func (e ProjectVersion) ArrayFieldIdentifierToType() map[string]types.FieldType
func (ProjectVersion) DependantFieldIdentifierToTypeMap ¶
func (e ProjectVersion) DependantFieldIdentifierToTypeMap() map[string]map[string]types.FieldType
func (ProjectVersion) EntityIdentifier ¶
func (e ProjectVersion) EntityIdentifier() string
func (ProjectVersion) FieldIdentfierToTypeMap ¶
func (e ProjectVersion) FieldIdentfierToTypeMap() map[string]types.FieldType
func (ProjectVersion) IsDependant ¶
func (e ProjectVersion) IsDependant() bool
func (ProjectVersion) PrimaryKeyIdentifier ¶
func (e ProjectVersion) PrimaryKeyIdentifier() string
func (ProjectVersion) PrimaryKeyValue ¶
func (e ProjectVersion) PrimaryKeyValue() string
func (ProjectVersion) String ¶
func (e ProjectVersion) String() string
func (ProjectVersion) ToJSON ¶
func (e ProjectVersion) 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
func JSONToStatusSlice ¶
func JSONToStatusSlice(in json.RawMessage) []Status
func StatusFromPointerString ¶
func StatusFromString ¶
Click to show internal directories.
Click to hide internal directories.