Documentation
¶
Index ¶
- func Response(status int, explanation string, err error, data []byte) contracts.Response
- type Request
- func (request *Request) Action(action string, client *client.Http, user *authentication.User) (contracts.ObjectInterface, error)
- func (request *Request) Apply(client *client.Http, user *authentication.User) (contracts.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) Compare(client *client.Http, user *authentication.User) (contracts.ObjectInterface, error)
- func (request *Request) Remove(client *client.Http, user *authentication.User) (contracts.ObjectInterface, error)
- func (request *Request) Send(action string, method string, client *http.Client, API string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Request ¶
type Request struct { Definition *definitions.Definition 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) (contracts.ObjectInterface, error)
func (*Request) Apply ¶
func (request *Request) Apply(client *client.Http, user *authentication.User) (contracts.ObjectInterface, error)
func (*Request) AttemptApply ¶ added in v0.1.5
func (*Request) AttemptRemove ¶ added in v0.1.5
func (*Request) Compare ¶ added in v0.1.5
func (request *Request) Compare(client *client.Http, user *authentication.User) (contracts.ObjectInterface, error)
func (*Request) Remove ¶ added in v0.1.4
func (request *Request) Remove(client *client.Http, user *authentication.User) (contracts.ObjectInterface, error)
Click to show internal directories.
Click to hide internal directories.