elemental: go.aporeto.io/elemental/test/model Index | Files

package testmodel

import "go.aporeto.io/elemental/test/model"

Index

Package Files

identities_registry.go list.go relationships_registry.go root.go task.go unmarshalable.go user.go

Variables

var ListAttributesMap = map[string]elemental.AttributeSpecification{
    "ID": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ID",
        Description:    `The identifier.`,
        Exposed:        true,
        Filterable:     true,
        Identifier:     true,
        Name:           "ID",
        Orderable:      true,
        PrimaryKey:     true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "CreationOnly": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "CreationOnly",
        CreationOnly:   true,
        Description:    `This attribute is creation only.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "creationOnly",
        Orderable:      true,
        Stored:         true,
        Type:           "string",
    },
    "Date": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Date",
        Description:    `The date.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "date",
        Orderable:      true,
        Stored:         true,
        Type:           "time",
    },
    "Description": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Description",
        Description:    `The description.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "description",
        Orderable:      true,
        Stored:         true,
        Type:           "string",
    },
    "Name": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Name",
        Description:    `The name.`,
        Exposed:        true,
        Filterable:     true,
        Getter:         true,
        Name:           "name",
        Orderable:      true,
        Required:       true,
        Setter:         true,
        Stored:         true,
        Type:           "string",
    },
    "ParentID": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentID",
        Description:    `The identifier of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        ForeignKey:     true,
        Name:           "parentID",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "ParentType": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentType",
        Description:    `The type of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "parentType",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "ReadOnly": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "ReadOnly",
        Description:    `This attribute is readonly.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "readOnly",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "Secret": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Secret",
        Description:    `This attribute is secret.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "secret",
        Orderable:      true,
        Secret:         true,
        Stored:         true,
        Type:           "string",
    },
    "Slice": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Slice",
        Description:    `this is a slice.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "slice",
        Orderable:      true,
        Stored:         true,
        SubType:        "string",
        Type:           "list",
    },
    "Unexposed": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Unexposed",
        Description:    `This attribute is not exposed.`,
        Filterable:     true,
        Name:           "unexposed",
        Orderable:      true,
        Stored:         true,
        Type:           "string",
    },
}

ListAttributesMap represents the map of attribute for List.

var ListIdentity = elemental.Identity{
    Name:     "list",
    Category: "lists",
    Package:  "todo-list",
    Private:  false,
}

ListIdentity represents the Identity of the object.

var ListLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{
    "id": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ID",
        Description:    `The identifier.`,
        Exposed:        true,
        Filterable:     true,
        Identifier:     true,
        Name:           "ID",
        Orderable:      true,
        PrimaryKey:     true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "creationonly": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "CreationOnly",
        CreationOnly:   true,
        Description:    `This attribute is creation only.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "creationOnly",
        Orderable:      true,
        Stored:         true,
        Type:           "string",
    },
    "date": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Date",
        Description:    `The date.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "date",
        Orderable:      true,
        Stored:         true,
        Type:           "time",
    },
    "description": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Description",
        Description:    `The description.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "description",
        Orderable:      true,
        Stored:         true,
        Type:           "string",
    },
    "name": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Name",
        Description:    `The name.`,
        Exposed:        true,
        Filterable:     true,
        Getter:         true,
        Name:           "name",
        Orderable:      true,
        Required:       true,
        Setter:         true,
        Stored:         true,
        Type:           "string",
    },
    "parentid": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentID",
        Description:    `The identifier of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        ForeignKey:     true,
        Name:           "parentID",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "parenttype": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentType",
        Description:    `The type of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "parentType",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "readonly": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "ReadOnly",
        Description:    `This attribute is readonly.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "readOnly",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "secret": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Secret",
        Description:    `This attribute is secret.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "secret",
        Orderable:      true,
        Secret:         true,
        Stored:         true,
        Type:           "string",
    },
    "slice": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Slice",
        Description:    `this is a slice.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "slice",
        Orderable:      true,
        Stored:         true,
        SubType:        "string",
        Type:           "list",
    },
    "unexposed": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Unexposed",
        Description:    `This attribute is not exposed.`,
        Filterable:     true,
        Name:           "unexposed",
        Orderable:      true,
        Stored:         true,
        Type:           "string",
    },
}

ListLowerCaseAttributesMap represents the map of attribute for List.

var RootAttributesMap = map[string]elemental.AttributeSpecification{}

RootAttributesMap represents the map of attribute for Root.

var RootIdentity = elemental.Identity{
    Name:     "root",
    Category: "root",
    Package:  "todo-list",
    Private:  false,
}

RootIdentity represents the Identity of the object.

var RootLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{}

RootLowerCaseAttributesMap represents the map of attribute for Root.

var TaskAttributesMap = map[string]elemental.AttributeSpecification{
    "ID": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ID",
        Description:    `The identifier.`,
        Exposed:        true,
        Filterable:     true,
        Identifier:     true,
        Name:           "ID",
        Orderable:      true,
        PrimaryKey:     true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "Description": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Description",
        Description:    `The description.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "description",
        Orderable:      true,
        Stored:         true,
        Type:           "string",
    },
    "Name": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Name",
        Description:    `The name.`,
        Exposed:        true,
        Filterable:     true,
        Getter:         true,
        Name:           "name",
        Orderable:      true,
        Required:       true,
        Setter:         true,
        Stored:         true,
        Type:           "string",
    },
    "ParentID": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentID",
        Description:    `The identifier of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        ForeignKey:     true,
        Name:           "parentID",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "ParentType": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentType",
        Description:    `The type of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "parentType",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "Status": elemental.AttributeSpecification{
        AllowedChoices: []string{"DONE", "PROGRESS", "TODO"},
        ConvertedName:  "Status",
        DefaultValue:   TaskStatusTODO,
        Description:    `The status of the task.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "status",
        Orderable:      true,
        Stored:         true,
        Type:           "enum",
    },
}

TaskAttributesMap represents the map of attribute for Task.

var TaskIdentity = elemental.Identity{
    Name:     "task",
    Category: "tasks",
    Package:  "todo-list",
    Private:  false,
}

TaskIdentity represents the Identity of the object.

var TaskLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{
    "id": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ID",
        Description:    `The identifier.`,
        Exposed:        true,
        Filterable:     true,
        Identifier:     true,
        Name:           "ID",
        Orderable:      true,
        PrimaryKey:     true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "description": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Description",
        Description:    `The description.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "description",
        Orderable:      true,
        Stored:         true,
        Type:           "string",
    },
    "name": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "Name",
        Description:    `The name.`,
        Exposed:        true,
        Filterable:     true,
        Getter:         true,
        Name:           "name",
        Orderable:      true,
        Required:       true,
        Setter:         true,
        Stored:         true,
        Type:           "string",
    },
    "parentid": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentID",
        Description:    `The identifier of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        ForeignKey:     true,
        Name:           "parentID",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "parenttype": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentType",
        Description:    `The type of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "parentType",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "status": elemental.AttributeSpecification{
        AllowedChoices: []string{"DONE", "PROGRESS", "TODO"},
        ConvertedName:  "Status",
        DefaultValue:   TaskStatusTODO,
        Description:    `The status of the task.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "status",
        Orderable:      true,
        Stored:         true,
        Type:           "enum",
    },
}

TaskLowerCaseAttributesMap represents the map of attribute for Task.

var UnmarshalableListIdentity = elemental.Identity{Name: "list", Category: "lists"}

UnmarshalableListIdentity represents the Identity of the object.

var UserAttributesMap = map[string]elemental.AttributeSpecification{
    "ID": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ID",
        Description:    `The identifier.`,
        Exposed:        true,
        Filterable:     true,
        Identifier:     true,
        Name:           "ID",
        Orderable:      true,
        PrimaryKey:     true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "FirstName": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "FirstName",
        Description:    `The first name.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "firstName",
        Orderable:      true,
        Required:       true,
        Stored:         true,
        Type:           "string",
    },
    "LastName": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "LastName",
        Description:    `The last name.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "lastName",
        Orderable:      true,
        Required:       true,
        Stored:         true,
        Type:           "string",
    },
    "ParentID": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentID",
        Description:    `The identifier of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        ForeignKey:     true,
        Name:           "parentID",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "ParentType": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentType",
        Description:    `The type of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "parentType",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "UserName": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "UserName",
        Description:    `the login.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "userName",
        Orderable:      true,
        Required:       true,
        Stored:         true,
        Type:           "string",
    },
}

UserAttributesMap represents the map of attribute for User.

var UserIdentity = elemental.Identity{
    Name:     "user",
    Category: "users",
    Package:  "todo-list",
    Private:  false,
}

UserIdentity represents the Identity of the object.

var UserLowerCaseAttributesMap = map[string]elemental.AttributeSpecification{
    "id": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ID",
        Description:    `The identifier.`,
        Exposed:        true,
        Filterable:     true,
        Identifier:     true,
        Name:           "ID",
        Orderable:      true,
        PrimaryKey:     true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "firstname": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "FirstName",
        Description:    `The first name.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "firstName",
        Orderable:      true,
        Required:       true,
        Stored:         true,
        Type:           "string",
    },
    "lastname": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "LastName",
        Description:    `The last name.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "lastName",
        Orderable:      true,
        Required:       true,
        Stored:         true,
        Type:           "string",
    },
    "parentid": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentID",
        Description:    `The identifier of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        ForeignKey:     true,
        Name:           "parentID",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "parenttype": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        Autogenerated:  true,
        ConvertedName:  "ParentType",
        Description:    `The type of the parent of the object.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "parentType",
        Orderable:      true,
        ReadOnly:       true,
        Stored:         true,
        Type:           "string",
    },
    "username": elemental.AttributeSpecification{
        AllowedChoices: []string{},
        ConvertedName:  "UserName",
        Description:    `the login.`,
        Exposed:        true,
        Filterable:     true,
        Name:           "userName",
        Orderable:      true,
        Required:       true,
        Stored:         true,
        Type:           "string",
    },
}

UserLowerCaseAttributesMap represents the map of attribute for User.

func AliasesForIdentity Uses

func AliasesForIdentity(identity elemental.Identity) []string

AliasesForIdentity returns all the aliases for the given identity.

func AllIdentities Uses

func AllIdentities() []elemental.Identity

AllIdentities returns all existing identities.

func Manager Uses

func Manager() elemental.ModelManager

Manager returns the model elemental.ModelManager.

func ModelVersion Uses

func ModelVersion() float64

ModelVersion returns the current version of the model.

type List Uses

type List struct {
    // The identifier.
    ID  string `json:"ID" msgpack:"ID" bson:"_id" mapstructure:"ID,omitempty"`

    // This attribute is creation only.
    CreationOnly string `json:"creationOnly" msgpack:"creationOnly" bson:"creationonly" mapstructure:"creationOnly,omitempty"`

    // The date.
    Date time.Time `json:"date" msgpack:"date" bson:"date" mapstructure:"date,omitempty"`

    // The description.
    Description string `json:"description" msgpack:"description" bson:"description" mapstructure:"description,omitempty"`

    // The name.
    Name string `json:"name" msgpack:"name" bson:"name" mapstructure:"name,omitempty"`

    // The identifier of the parent of the object.
    ParentID string `json:"parentID" msgpack:"parentID" bson:"parentid" mapstructure:"parentID,omitempty"`

    // The type of the parent of the object.
    ParentType string `json:"parentType" msgpack:"parentType" bson:"parenttype" mapstructure:"parentType,omitempty"`

    // This attribute is readonly.
    ReadOnly string `json:"readOnly" msgpack:"readOnly" bson:"readonly" mapstructure:"readOnly,omitempty"`

    // This attribute is secret.
    Secret string `json:"secret" msgpack:"secret" bson:"secret" mapstructure:"secret,omitempty"`

    // this is a slice.
    Slice []string `json:"slice" msgpack:"slice" bson:"slice" mapstructure:"slice,omitempty"`

    // This attribute is not exposed.
    Unexposed string `json:"-" msgpack:"-" bson:"unexposed" mapstructure:"-,omitempty"`

    ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"`
}

List represents the model of a list

func NewList Uses

func NewList() *List

NewList returns a new *List

func (*List) AttributeSpecifications Uses

func (*List) AttributeSpecifications() map[string]elemental.AttributeSpecification

AttributeSpecifications returns the full attribute specifications map.

func (*List) DeepCopy Uses

func (o *List) DeepCopy() *List

DeepCopy returns a deep copy if the List.

func (*List) DeepCopyInto Uses

func (o *List) DeepCopyInto(out *List)

DeepCopyInto copies the receiver into the given *List.

func (*List) DefaultOrder Uses

func (o *List) DefaultOrder() []string

DefaultOrder returns the list of default ordering fields.

func (*List) Doc Uses

func (o *List) Doc() string

Doc returns the documentation for the object

func (*List) GetName Uses

func (o *List) GetName() string

GetName returns the Name of the receiver.

func (*List) Identifier Uses

func (o *List) Identifier() string

Identifier returns the value of the object's unique identifier.

func (*List) Identity Uses

func (o *List) Identity() elemental.Identity

Identity returns the Identity of the object.

func (*List) Patch Uses

func (o *List) Patch(sparse elemental.SparseIdentifiable)

Patch apply the non nil value of a *SparseList to the object.

func (*List) SetIdentifier Uses

func (o *List) SetIdentifier(id string)

SetIdentifier sets the value of the object's unique identifier.

func (*List) SetName Uses

func (o *List) SetName(name string)

SetName sets the property Name of the receiver using the given value.

func (*List) SpecificationForAttribute Uses

func (*List) SpecificationForAttribute(name string) elemental.AttributeSpecification

SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.

func (*List) String Uses

func (o *List) String() string

func (*List) ToSparse Uses

func (o *List) ToSparse(fields ...string) elemental.SparseIdentifiable

ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.

func (*List) Validate Uses

func (o *List) Validate() error

Validate valides the current information stored into the structure.

func (*List) ValueForAttribute Uses

func (o *List) ValueForAttribute(name string) interface{}

ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.

func (*List) Version Uses

func (o *List) Version() int

Version returns the hardcoded version of the model.

type ListsList Uses

type ListsList []*List

ListsList represents a list of Lists

func (ListsList) Append Uses

func (o ListsList) Append(objects ...elemental.Identifiable) elemental.Identifiables

Append appends the objects to the a new copy of the ListsList.

func (ListsList) Copy Uses

func (o ListsList) Copy() elemental.Identifiables

Copy returns a pointer to a copy the ListsList.

func (ListsList) DefaultOrder Uses

func (o ListsList) DefaultOrder() []string

DefaultOrder returns the default ordering fields of the content.

func (ListsList) Identity Uses

func (o ListsList) Identity() elemental.Identity

Identity returns the identity of the objects in the list.

func (ListsList) List Uses

func (o ListsList) List() elemental.IdentifiablesList

List converts the object to an elemental.IdentifiablesList.

func (ListsList) ToSparse Uses

func (o ListsList) ToSparse(fields ...string) elemental.Identifiables

ToSparse returns the ListsList converted to SparseListsList. Objects in the list will only contain the given fields. No field means entire field set.

func (ListsList) Version Uses

func (o ListsList) Version() int

Version returns the version of the content.

type Root Uses

type Root struct {
    ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"`
}

Root represents the model of a root

func NewRoot Uses

func NewRoot() *Root

NewRoot returns a new *Root

func (*Root) AttributeSpecifications Uses

func (*Root) AttributeSpecifications() map[string]elemental.AttributeSpecification

AttributeSpecifications returns the full attribute specifications map.

func (*Root) DeepCopy Uses

func (o *Root) DeepCopy() *Root

DeepCopy returns a deep copy if the Root.

func (*Root) DeepCopyInto Uses

func (o *Root) DeepCopyInto(out *Root)

DeepCopyInto copies the receiver into the given *Root.

func (*Root) DefaultOrder Uses

func (o *Root) DefaultOrder() []string

DefaultOrder returns the list of default ordering fields.

func (*Root) Doc Uses

func (o *Root) Doc() string

Doc returns the documentation for the object

func (*Root) Identifier Uses

func (o *Root) Identifier() string

Identifier returns the value of the object's unique identifier.

func (*Root) Identity Uses

func (o *Root) Identity() elemental.Identity

Identity returns the Identity of the object.

func (*Root) SetIdentifier Uses

func (o *Root) SetIdentifier(id string)

SetIdentifier sets the value of the object's unique identifier.

func (*Root) SpecificationForAttribute Uses

func (*Root) SpecificationForAttribute(name string) elemental.AttributeSpecification

SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.

func (*Root) String Uses

func (o *Root) String() string

func (*Root) Validate Uses

func (o *Root) Validate() error

Validate valides the current information stored into the structure.

func (*Root) ValueForAttribute Uses

func (o *Root) ValueForAttribute(name string) interface{}

ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.

func (*Root) Version Uses

func (o *Root) Version() int

Version returns the hardcoded version of the model.

type SparseList Uses

type SparseList struct {
    // The identifier.
    ID  *string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"_id" mapstructure:"ID,omitempty"`

    // This attribute is creation only.
    CreationOnly *string `json:"creationOnly,omitempty" msgpack:"creationOnly,omitempty" bson:"creationonly,omitempty" mapstructure:"creationOnly,omitempty"`

    // The date.
    Date *time.Time `json:"date,omitempty" msgpack:"date,omitempty" bson:"date,omitempty" mapstructure:"date,omitempty"`

    // The description.
    Description *string `json:"description,omitempty" msgpack:"description,omitempty" bson:"description,omitempty" mapstructure:"description,omitempty"`

    // The name.
    Name *string `json:"name,omitempty" msgpack:"name,omitempty" bson:"name,omitempty" mapstructure:"name,omitempty"`

    // The identifier of the parent of the object.
    ParentID *string `json:"parentID,omitempty" msgpack:"parentID,omitempty" bson:"parentid,omitempty" mapstructure:"parentID,omitempty"`

    // The type of the parent of the object.
    ParentType *string `json:"parentType,omitempty" msgpack:"parentType,omitempty" bson:"parenttype,omitempty" mapstructure:"parentType,omitempty"`

    // This attribute is readonly.
    ReadOnly *string `json:"readOnly,omitempty" msgpack:"readOnly,omitempty" bson:"readonly,omitempty" mapstructure:"readOnly,omitempty"`

    // This attribute is secret.
    Secret *string `json:"secret,omitempty" msgpack:"secret,omitempty" bson:"secret,omitempty" mapstructure:"secret,omitempty"`

    // this is a slice.
    Slice *[]string `json:"slice,omitempty" msgpack:"slice,omitempty" bson:"slice,omitempty" mapstructure:"slice,omitempty"`

    // This attribute is not exposed.
    Unexposed *string `json:"-" msgpack:"-" bson:"unexposed,omitempty" mapstructure:"-,omitempty"`

    ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"`
}

SparseList represents the sparse version of a list.

func NewSparseList Uses

func NewSparseList() *SparseList

NewSparseList returns a new SparseList.

func (*SparseList) DeepCopy Uses

func (o *SparseList) DeepCopy() *SparseList

DeepCopy returns a deep copy if the SparseList.

func (*SparseList) DeepCopyInto Uses

func (o *SparseList) DeepCopyInto(out *SparseList)

DeepCopyInto copies the receiver into the given *SparseList.

func (*SparseList) GetName Uses

func (o *SparseList) GetName() string

GetName returns the Name of the receiver.

func (*SparseList) Identifier Uses

func (o *SparseList) Identifier() string

Identifier returns the value of the sparse object's unique identifier.

func (*SparseList) Identity Uses

func (o *SparseList) Identity() elemental.Identity

Identity returns the Identity of the sparse object.

func (*SparseList) SetIdentifier Uses

func (o *SparseList) SetIdentifier(id string)

SetIdentifier sets the value of the sparse object's unique identifier.

func (*SparseList) SetName Uses

func (o *SparseList) SetName(name string)

SetName sets the property Name of the receiver using the address of the given value.

func (*SparseList) ToPlain Uses

func (o *SparseList) ToPlain() elemental.PlainIdentifiable

ToPlain returns the plain version of the sparse model.

func (*SparseList) Version Uses

func (o *SparseList) Version() int

Version returns the hardcoded version of the model.

type SparseListsList Uses

type SparseListsList []*SparseList

SparseListsList represents a list of SparseLists

func (SparseListsList) Append Uses

func (o SparseListsList) Append(objects ...elemental.Identifiable) elemental.Identifiables

Append appends the objects to the a new copy of the SparseListsList.

func (SparseListsList) Copy Uses

func (o SparseListsList) Copy() elemental.Identifiables

Copy returns a pointer to a copy the SparseListsList.

func (SparseListsList) DefaultOrder Uses

func (o SparseListsList) DefaultOrder() []string

DefaultOrder returns the default ordering fields of the content.

func (SparseListsList) Identity Uses

func (o SparseListsList) Identity() elemental.Identity

Identity returns the identity of the objects in the list.

func (SparseListsList) List Uses

func (o SparseListsList) List() elemental.IdentifiablesList

List converts the object to an elemental.IdentifiablesList.

func (SparseListsList) ToPlain Uses

func (o SparseListsList) ToPlain() elemental.IdentifiablesList

ToPlain returns the SparseListsList converted to ListsList.

func (SparseListsList) Version Uses

func (o SparseListsList) Version() int

Version returns the version of the content.

type SparseTask Uses

type SparseTask struct {
    // The identifier.
    ID  *string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"_id" mapstructure:"ID,omitempty"`

    // The description.
    Description *string `json:"description,omitempty" msgpack:"description,omitempty" bson:"description,omitempty" mapstructure:"description,omitempty"`

    // The name.
    Name *string `json:"name,omitempty" msgpack:"name,omitempty" bson:"name,omitempty" mapstructure:"name,omitempty"`

    // The identifier of the parent of the object.
    ParentID *string `json:"parentID,omitempty" msgpack:"parentID,omitempty" bson:"parentid,omitempty" mapstructure:"parentID,omitempty"`

    // The type of the parent of the object.
    ParentType *string `json:"parentType,omitempty" msgpack:"parentType,omitempty" bson:"parenttype,omitempty" mapstructure:"parentType,omitempty"`

    // The status of the task.
    Status *TaskStatusValue `json:"status,omitempty" msgpack:"status,omitempty" bson:"status,omitempty" mapstructure:"status,omitempty"`

    ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"`
}

SparseTask represents the sparse version of a task.

func NewSparseTask Uses

func NewSparseTask() *SparseTask

NewSparseTask returns a new SparseTask.

func (*SparseTask) DeepCopy Uses

func (o *SparseTask) DeepCopy() *SparseTask

DeepCopy returns a deep copy if the SparseTask.

func (*SparseTask) DeepCopyInto Uses

func (o *SparseTask) DeepCopyInto(out *SparseTask)

DeepCopyInto copies the receiver into the given *SparseTask.

func (*SparseTask) GetName Uses

func (o *SparseTask) GetName() string

GetName returns the Name of the receiver.

func (*SparseTask) Identifier Uses

func (o *SparseTask) Identifier() string

Identifier returns the value of the sparse object's unique identifier.

func (*SparseTask) Identity Uses

func (o *SparseTask) Identity() elemental.Identity

Identity returns the Identity of the sparse object.

func (*SparseTask) SetIdentifier Uses

func (o *SparseTask) SetIdentifier(id string)

SetIdentifier sets the value of the sparse object's unique identifier.

func (*SparseTask) SetName Uses

func (o *SparseTask) SetName(name string)

SetName sets the property Name of the receiver using the address of the given value.

func (*SparseTask) ToPlain Uses

func (o *SparseTask) ToPlain() elemental.PlainIdentifiable

ToPlain returns the plain version of the sparse model.

func (*SparseTask) Version Uses

func (o *SparseTask) Version() int

Version returns the hardcoded version of the model.

type SparseTasksList Uses

type SparseTasksList []*SparseTask

SparseTasksList represents a list of SparseTasks

func (SparseTasksList) Append Uses

func (o SparseTasksList) Append(objects ...elemental.Identifiable) elemental.Identifiables

Append appends the objects to the a new copy of the SparseTasksList.

func (SparseTasksList) Copy Uses

func (o SparseTasksList) Copy() elemental.Identifiables

Copy returns a pointer to a copy the SparseTasksList.

func (SparseTasksList) DefaultOrder Uses

func (o SparseTasksList) DefaultOrder() []string

DefaultOrder returns the default ordering fields of the content.

func (SparseTasksList) Identity Uses

func (o SparseTasksList) Identity() elemental.Identity

Identity returns the identity of the objects in the list.

func (SparseTasksList) List Uses

func (o SparseTasksList) List() elemental.IdentifiablesList

List converts the object to an elemental.IdentifiablesList.

func (SparseTasksList) ToPlain Uses

func (o SparseTasksList) ToPlain() elemental.IdentifiablesList

ToPlain returns the SparseTasksList converted to TasksList.

func (SparseTasksList) Version Uses

func (o SparseTasksList) Version() int

Version returns the version of the content.

type SparseUser Uses

type SparseUser struct {
    // The identifier.
    ID  *string `json:"ID,omitempty" msgpack:"ID,omitempty" bson:"_id" mapstructure:"ID,omitempty"`

    // The first name.
    FirstName *string `json:"firstName,omitempty" msgpack:"firstName,omitempty" bson:"firstname,omitempty" mapstructure:"firstName,omitempty"`

    // The last name.
    LastName *string `json:"lastName,omitempty" msgpack:"lastName,omitempty" bson:"lastname,omitempty" mapstructure:"lastName,omitempty"`

    // The identifier of the parent of the object.
    ParentID *string `json:"parentID,omitempty" msgpack:"parentID,omitempty" bson:"parentid,omitempty" mapstructure:"parentID,omitempty"`

    // The type of the parent of the object.
    ParentType *string `json:"parentType,omitempty" msgpack:"parentType,omitempty" bson:"parenttype,omitempty" mapstructure:"parentType,omitempty"`

    // the login.
    UserName *string `json:"userName,omitempty" msgpack:"userName,omitempty" bson:"username,omitempty" mapstructure:"userName,omitempty"`

    ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"`
}

SparseUser represents the sparse version of a user.

func NewSparseUser Uses

func NewSparseUser() *SparseUser

NewSparseUser returns a new SparseUser.

func (*SparseUser) DeepCopy Uses

func (o *SparseUser) DeepCopy() *SparseUser

DeepCopy returns a deep copy if the SparseUser.

func (*SparseUser) DeepCopyInto Uses

func (o *SparseUser) DeepCopyInto(out *SparseUser)

DeepCopyInto copies the receiver into the given *SparseUser.

func (*SparseUser) Identifier Uses

func (o *SparseUser) Identifier() string

Identifier returns the value of the sparse object's unique identifier.

func (*SparseUser) Identity Uses

func (o *SparseUser) Identity() elemental.Identity

Identity returns the Identity of the sparse object.

func (*SparseUser) SetIdentifier Uses

func (o *SparseUser) SetIdentifier(id string)

SetIdentifier sets the value of the sparse object's unique identifier.

func (*SparseUser) ToPlain Uses

func (o *SparseUser) ToPlain() elemental.PlainIdentifiable

ToPlain returns the plain version of the sparse model.

func (*SparseUser) Version Uses

func (o *SparseUser) Version() int

Version returns the hardcoded version of the model.

type SparseUsersList Uses

type SparseUsersList []*SparseUser

SparseUsersList represents a list of SparseUsers

func (SparseUsersList) Append Uses

func (o SparseUsersList) Append(objects ...elemental.Identifiable) elemental.Identifiables

Append appends the objects to the a new copy of the SparseUsersList.

func (SparseUsersList) Copy Uses

func (o SparseUsersList) Copy() elemental.Identifiables

Copy returns a pointer to a copy the SparseUsersList.

func (SparseUsersList) DefaultOrder Uses

func (o SparseUsersList) DefaultOrder() []string

DefaultOrder returns the default ordering fields of the content.

func (SparseUsersList) Identity Uses

func (o SparseUsersList) Identity() elemental.Identity

Identity returns the identity of the objects in the list.

func (SparseUsersList) List Uses

func (o SparseUsersList) List() elemental.IdentifiablesList

List converts the object to an elemental.IdentifiablesList.

func (SparseUsersList) ToPlain Uses

func (o SparseUsersList) ToPlain() elemental.IdentifiablesList

ToPlain returns the SparseUsersList converted to UsersList.

func (SparseUsersList) Version Uses

func (o SparseUsersList) Version() int

Version returns the version of the content.

type Task Uses

type Task struct {
    // The identifier.
    ID  string `json:"ID" msgpack:"ID" bson:"_id" mapstructure:"ID,omitempty"`

    // The description.
    Description string `json:"description" msgpack:"description" bson:"description" mapstructure:"description,omitempty"`

    // The name.
    Name string `json:"name" msgpack:"name" bson:"name" mapstructure:"name,omitempty"`

    // The identifier of the parent of the object.
    ParentID string `json:"parentID" msgpack:"parentID" bson:"parentid" mapstructure:"parentID,omitempty"`

    // The type of the parent of the object.
    ParentType string `json:"parentType" msgpack:"parentType" bson:"parenttype" mapstructure:"parentType,omitempty"`

    // The status of the task.
    Status TaskStatusValue `json:"status" msgpack:"status" bson:"status" mapstructure:"status,omitempty"`

    ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"`
}

Task represents the model of a task

func NewTask Uses

func NewTask() *Task

NewTask returns a new *Task

func (*Task) AttributeSpecifications Uses

func (*Task) AttributeSpecifications() map[string]elemental.AttributeSpecification

AttributeSpecifications returns the full attribute specifications map.

func (*Task) DeepCopy Uses

func (o *Task) DeepCopy() *Task

DeepCopy returns a deep copy if the Task.

func (*Task) DeepCopyInto Uses

func (o *Task) DeepCopyInto(out *Task)

DeepCopyInto copies the receiver into the given *Task.

func (*Task) DefaultOrder Uses

func (o *Task) DefaultOrder() []string

DefaultOrder returns the list of default ordering fields.

func (*Task) Doc Uses

func (o *Task) Doc() string

Doc returns the documentation for the object

func (*Task) GetName Uses

func (o *Task) GetName() string

GetName returns the Name of the receiver.

func (*Task) Identifier Uses

func (o *Task) Identifier() string

Identifier returns the value of the object's unique identifier.

func (*Task) Identity Uses

func (o *Task) Identity() elemental.Identity

Identity returns the Identity of the object.

func (*Task) Patch Uses

func (o *Task) Patch(sparse elemental.SparseIdentifiable)

Patch apply the non nil value of a *SparseTask to the object.

func (*Task) SetIdentifier Uses

func (o *Task) SetIdentifier(id string)

SetIdentifier sets the value of the object's unique identifier.

func (*Task) SetName Uses

func (o *Task) SetName(name string)

SetName sets the property Name of the receiver using the given value.

func (*Task) SpecificationForAttribute Uses

func (*Task) SpecificationForAttribute(name string) elemental.AttributeSpecification

SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.

func (*Task) String Uses

func (o *Task) String() string

func (*Task) ToSparse Uses

func (o *Task) ToSparse(fields ...string) elemental.SparseIdentifiable

ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.

func (*Task) Validate Uses

func (o *Task) Validate() error

Validate valides the current information stored into the structure.

func (*Task) ValueForAttribute Uses

func (o *Task) ValueForAttribute(name string) interface{}

ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.

func (*Task) Version Uses

func (o *Task) Version() int

Version returns the hardcoded version of the model.

type TaskStatusValue Uses

type TaskStatusValue string

TaskStatusValue represents the possible values for attribute "status".

const (
    // TaskStatusDONE represents the value DONE.
    TaskStatusDONE TaskStatusValue = "DONE"

    // TaskStatusPROGRESS represents the value PROGRESS.
    TaskStatusPROGRESS TaskStatusValue = "PROGRESS"

    // TaskStatusTODO represents the value TODO.
    TaskStatusTODO TaskStatusValue = "TODO"
)

type TasksList Uses

type TasksList []*Task

TasksList represents a list of Tasks

func (TasksList) Append Uses

func (o TasksList) Append(objects ...elemental.Identifiable) elemental.Identifiables

Append appends the objects to the a new copy of the TasksList.

func (TasksList) Copy Uses

func (o TasksList) Copy() elemental.Identifiables

Copy returns a pointer to a copy the TasksList.

func (TasksList) DefaultOrder Uses

func (o TasksList) DefaultOrder() []string

DefaultOrder returns the default ordering fields of the content.

func (TasksList) Identity Uses

func (o TasksList) Identity() elemental.Identity

Identity returns the identity of the objects in the list.

func (TasksList) List Uses

func (o TasksList) List() elemental.IdentifiablesList

List converts the object to an elemental.IdentifiablesList.

func (TasksList) ToSparse Uses

func (o TasksList) ToSparse(fields ...string) elemental.Identifiables

ToSparse returns the TasksList converted to SparseTasksList. Objects in the list will only contain the given fields. No field means entire field set.

func (TasksList) Version Uses

func (o TasksList) Version() int

Version returns the version of the content.

type UnmarshalableError Uses

type UnmarshalableError struct {
    elemental.Error
}

An UnmarshalableError is a List that cannot be marshalled or unmarshalled.

func (*UnmarshalableError) MarshalJSON Uses

func (o *UnmarshalableError) MarshalJSON() ([]byte, error)

MarshalJSON makes the UnmarshalableError not marshalable.

func (*UnmarshalableError) MarshalMsgpack Uses

func (o *UnmarshalableError) MarshalMsgpack() ([]byte, error)

MarshalMsgpack makes the UnmarshalableError not marshalable.

func (*UnmarshalableError) UnmarshalJSON Uses

func (o *UnmarshalableError) UnmarshalJSON([]byte) error

UnmarshalJSON makes the UnmarshalableError not unmarshalable.

func (*UnmarshalableError) UnmarshalMsgpack Uses

func (o *UnmarshalableError) UnmarshalMsgpack([]byte) error

UnmarshalMsgpack makes the UnmarshalableError not unmarshalable.

type UnmarshalableList Uses

type UnmarshalableList struct {
    List
}

An UnmarshalableList is a List that cannot be marshalled or unmarshalled.

func NewUnmarshalableList Uses

func NewUnmarshalableList() *UnmarshalableList

NewUnmarshalableList returns a new UnmarshalableList.

func (*UnmarshalableList) Identity Uses

func (o *UnmarshalableList) Identity() elemental.Identity

Identity returns the identity.

func (*UnmarshalableList) MarshalJSON Uses

func (o *UnmarshalableList) MarshalJSON() ([]byte, error)

MarshalJSON makes the UnmarshalableList not marshalable.

func (*UnmarshalableList) MarshalMsgpack Uses

func (o *UnmarshalableList) MarshalMsgpack() ([]byte, error)

MarshalMsgpack makes the UnmarshalableList not marshalable.

func (*UnmarshalableList) UnmarshalJSON Uses

func (o *UnmarshalableList) UnmarshalJSON([]byte) error

UnmarshalJSON makes the UnmarshalableList not unmarshalable.

func (*UnmarshalableList) UnmarshalMsgpack Uses

func (o *UnmarshalableList) UnmarshalMsgpack([]byte) error

UnmarshalMsgpack makes the UnmarshalableList not unmarshalable.

func (*UnmarshalableList) Validate Uses

func (o *UnmarshalableList) Validate() elemental.Errors

Validate validates the data

type UnmarshalableListsList Uses

type UnmarshalableListsList []*UnmarshalableList

UnmarshalableListsList represents a list of UnmarshalableLists

func (UnmarshalableListsList) Append Uses

func (o UnmarshalableListsList) Append(objects ...elemental.Identifiable) elemental.Identifiables

Append appends the objects to the a new copy of the UnmarshalableListsList.

func (UnmarshalableListsList) Copy Uses

func (o UnmarshalableListsList) Copy() elemental.Identifiables

Copy returns a pointer to a copy the UnmarshalableListsList.

func (UnmarshalableListsList) DefaultOrder Uses

func (o UnmarshalableListsList) DefaultOrder() []string

DefaultOrder returns the default ordering fields of the content.

func (UnmarshalableListsList) Identity Uses

func (o UnmarshalableListsList) Identity() elemental.Identity

Identity returns the identity of the objects in the list.

func (UnmarshalableListsList) List Uses

func (o UnmarshalableListsList) List() elemental.IdentifiablesList

List converts the object to an elemental.IdentifiablesList.

func (UnmarshalableListsList) Version Uses

func (o UnmarshalableListsList) Version() int

Version returns the version of the content.

type User Uses

type User struct {
    // The identifier.
    ID  string `json:"ID" msgpack:"ID" bson:"_id" mapstructure:"ID,omitempty"`

    // The first name.
    FirstName string `json:"firstName" msgpack:"firstName" bson:"firstname" mapstructure:"firstName,omitempty"`

    // The last name.
    LastName string `json:"lastName" msgpack:"lastName" bson:"lastname" mapstructure:"lastName,omitempty"`

    // The identifier of the parent of the object.
    ParentID string `json:"parentID" msgpack:"parentID" bson:"parentid" mapstructure:"parentID,omitempty"`

    // The type of the parent of the object.
    ParentType string `json:"parentType" msgpack:"parentType" bson:"parenttype" mapstructure:"parentType,omitempty"`

    // the login.
    UserName string `json:"userName" msgpack:"userName" bson:"username" mapstructure:"userName,omitempty"`

    ModelVersion int `json:"-" msgpack:"-" bson:"_modelversion"`
}

User represents the model of a user

func NewUser Uses

func NewUser() *User

NewUser returns a new *User

func (*User) AttributeSpecifications Uses

func (*User) AttributeSpecifications() map[string]elemental.AttributeSpecification

AttributeSpecifications returns the full attribute specifications map.

func (*User) DeepCopy Uses

func (o *User) DeepCopy() *User

DeepCopy returns a deep copy if the User.

func (*User) DeepCopyInto Uses

func (o *User) DeepCopyInto(out *User)

DeepCopyInto copies the receiver into the given *User.

func (*User) DefaultOrder Uses

func (o *User) DefaultOrder() []string

DefaultOrder returns the list of default ordering fields.

func (*User) Doc Uses

func (o *User) Doc() string

Doc returns the documentation for the object

func (*User) Identifier Uses

func (o *User) Identifier() string

Identifier returns the value of the object's unique identifier.

func (*User) Identity Uses

func (o *User) Identity() elemental.Identity

Identity returns the Identity of the object.

func (*User) Patch Uses

func (o *User) Patch(sparse elemental.SparseIdentifiable)

Patch apply the non nil value of a *SparseUser to the object.

func (*User) SetIdentifier Uses

func (o *User) SetIdentifier(id string)

SetIdentifier sets the value of the object's unique identifier.

func (*User) SpecificationForAttribute Uses

func (*User) SpecificationForAttribute(name string) elemental.AttributeSpecification

SpecificationForAttribute returns the AttributeSpecification for the given attribute name key.

func (*User) String Uses

func (o *User) String() string

func (*User) ToSparse Uses

func (o *User) ToSparse(fields ...string) elemental.SparseIdentifiable

ToSparse returns the sparse version of the model. The returned object will only contain the given fields. No field means entire field set.

func (*User) Validate Uses

func (o *User) Validate() error

Validate valides the current information stored into the structure.

func (*User) ValueForAttribute Uses

func (o *User) ValueForAttribute(name string) interface{}

ValueForAttribute returns the value for the given attribute. This is a very advanced function that you should not need but in some very specific use cases.

func (*User) Version Uses

func (o *User) Version() int

Version returns the hardcoded version of the model.

type UsersList Uses

type UsersList []*User

UsersList represents a list of Users

func (UsersList) Append Uses

func (o UsersList) Append(objects ...elemental.Identifiable) elemental.Identifiables

Append appends the objects to the a new copy of the UsersList.

func (UsersList) Copy Uses

func (o UsersList) Copy() elemental.Identifiables

Copy returns a pointer to a copy the UsersList.

func (UsersList) DefaultOrder Uses

func (o UsersList) DefaultOrder() []string

DefaultOrder returns the default ordering fields of the content.

func (UsersList) Identity Uses

func (o UsersList) Identity() elemental.Identity

Identity returns the identity of the objects in the list.

func (UsersList) List Uses

func (o UsersList) List() elemental.IdentifiablesList

List converts the object to an elemental.IdentifiablesList.

func (UsersList) ToSparse Uses

func (o UsersList) ToSparse(fields ...string) elemental.Identifiables

ToSparse returns the UsersList converted to SparseUsersList. Objects in the list will only contain the given fields. No field means entire field set.

func (UsersList) Version Uses

func (o UsersList) Version() int

Version returns the version of the content.

Package testmodel imports 4 packages (graph). Updated 2019-05-01. Refresh now. Tools for package owners.