Documentation ¶
Index ¶
- func New(client *client.Client, user *authentication.User) contracts.ObjectInterface
- func SendRequest(client *http.Client, URL string, method string, data []byte) *contracts.Response
- type Object
- func (obj *Object) AddLocal(format contracts.Format, data []byte) error
- func (obj *Object) ChangeDetected() bool
- func (obj *Object) Diff(definition []byte) bool
- func (obj *Object) Exists() bool
- func (obj *Object) Find(format contracts.Format) error
- func (obj *Object) FindMany(format contracts.Format) (map[string]contracts.ObjectInterface, error)
- func (obj *Object) GetDefinition() map[string]any
- func (obj *Object) GetDefinitionByte() []byte
- func (obj *Object) GetDefinitionString() string
- func (obj *Object) GetDiff() []diff.Change
- func (obj *Object) Propose(format contracts.Format, data []byte) error
- func (obj *Object) RemoveLocal(format contracts.Format) (bool, error)
- func (obj *Object) Wait(format contracts.Format) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New(client *client.Client, user *authentication.User) contracts.ObjectInterface
Types ¶
type Object ¶
type Object struct { Byte []byte String string Definition map[string]interface{} Category string Changelog diff.Changelog Raw bool Owner string Created time.Time Updated time.Time User *authentication.User // contains filtered or unexported fields }
func (*Object) ChangeDetected ¶
func (*Object) GetDefinition ¶
func (*Object) GetDefinitionByte ¶
func (*Object) GetDefinitionString ¶
func (*Object) RemoveLocal ¶ added in v0.0.114
Click to show internal directories.
Click to hide internal directories.