Documentation ¶
Index ¶
- type IHasName
- type IHasSpace
- type IResource
- type IResources
- type Links
- type PagedResults
- type ProcessReferenceDataItem
- type ReferenceDataItem
- type Resource
- func (r *Resource) GetID() string
- func (r *Resource) GetLinks() map[string]string
- func (r *Resource) GetModifiedBy() string
- func (r *Resource) GetModifiedOn() *time.Time
- func (r *Resource) SetID(id string)
- func (r *Resource) SetLinks(links map[string]string)
- func (r *Resource) SetModifiedBy(modifiedBy string)
- func (r *Resource) SetModifiedOn(modifiedOn *time.Time)
- func (r *Resource) Validate() error
- type Resources
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IResource ¶
type IResource interface { GetID() string GetModifiedBy() string GetModifiedOn() *time.Time GetLinks() map[string]string SetID(string) SetLinks(map[string]string) SetModifiedBy(string) SetModifiedOn(*time.Time) Validate() error }
IResource defines the interface for resources.
type IResources ¶ added in v2.3.0
type PagedResults ¶
type ReferenceDataItem ¶
type Resource ¶
type Resource struct { ID string `json:"Id,omitempty"` ModifiedBy string `json:"LastModifiedBy,omitempty"` ModifiedOn *time.Time `json:"LastModifiedOn,omitempty"` Links map[string]string `json:"Links,omitempty"` }
func NewResource ¶
func NewResource() *Resource
func (*Resource) GetModifiedBy ¶
GetModifiedBy returns the name of the account that modified the value of this resource.
func (*Resource) GetModifiedOn ¶
GetModifiedOn returns the time when the value of this resource was changed.
func (*Resource) SetModifiedBy ¶
SetModifiedBy set the name of the account that modified the value of this resource.
func (*Resource) SetModifiedOn ¶
SetModifiedOn set the time when the value of this resource was changed.
type Resources ¶
type Resources[T any] struct { Items []T `json:"Items"` PagedResults }
func (*Resources[T]) GetAllPages ¶ added in v2.3.0
GetAllPages will retrive all remaining next pages in the link collection and return the result as list of concatenated Items; Including the items from the base Resource.
Click to show internal directories.
Click to hide internal directories.