Documentation
¶
Index ¶
- func GroupIdentifier(group string, name string) string
- func Response(status int, explanation string, err error, data []byte) iresponse.Response
- type Request
- func (request *Request) Action(action string, client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
- func (request *Request) Apply(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
- func (request *Request) AttemptApply(client *http.Client, API string) error
- func (request *Request) AttemptRemove(client *http.Client, API string) error
- func (request *Request) AttemptState(client *http.Client, API string) error
- func (request *Request) Compare(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
- func (request *Request) ProposeApply(client *http.Client, API string) error
- func (request *Request) ProposeRemove(client *http.Client, API string) error
- func (request *Request) ProposeState(client *http.Client, API string) error
- func (request *Request) Remove(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
- func (request *Request) Send(action string, method string, client *http.Client, API string) error
- func (request *Request) State(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupIdentifier ¶ added in v0.1.26
Types ¶
type Request ¶
type Request struct {
Definition *definitions.Definition
DeleteC chan ievents.Event `json:"-"`
Kind string
Error error
}
func BuildFromRequest ¶ added in v0.1.5
func NewRequest ¶
func NewRequestFromJson ¶ added in v0.1.5
func (*Request) Action ¶ added in v0.1.5
func (request *Request) Action(action string, client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
func (*Request) Apply ¶
func (request *Request) Apply(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
func (*Request) AttemptApply ¶ added in v0.1.5
func (*Request) AttemptRemove ¶ added in v0.1.5
func (*Request) AttemptState ¶ added in v0.1.31
func (*Request) Compare ¶ added in v0.1.5
func (request *Request) Compare(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
func (*Request) ProposeApply ¶ added in v0.1.23
This is non-blocking and async method
func (*Request) ProposeRemove ¶ added in v0.1.23
This is non-blocking and async method
func (*Request) ProposeState ¶ added in v0.1.31
This is blocking and sync method
func (*Request) Remove ¶ added in v0.1.4
func (request *Request) Remove(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
func (*Request) State ¶ added in v0.1.31
func (request *Request) State(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)
Click to show internal directories.
Click to hide internal directories.