common

package
v0.1.29 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 16, 2025 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupIdentifier added in v0.1.26

func GroupIdentifier(group string, name string) string

func Response

func Response(status int, explanation string, err error, data []byte) contracts.Response

Types

type Request

type Request struct {
	Definition *definitions.Definition
	Kind       string
	Error      error
}

func BuildFromRequest added in v0.1.5

func BuildFromRequest(kind string, bytes []byte) (*Request, contracts.Response)

func NewRequest

func NewRequest(kind string) (*Request, error)

func NewRequestFromJson added in v0.1.5

func NewRequestFromJson(kind string, data []byte) (*Request, error)

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 *Request) AttemptApply(client *http.Client, API string) error

func (*Request) AttemptRemove added in v0.1.5

func (request *Request) AttemptRemove(client *http.Client, API string) error

func (*Request) Compare added in v0.1.5

func (request *Request) Compare(client *client.Http, user *authentication.User) (contracts.ObjectInterface, error)

func (*Request) ProposeApply added in v0.1.23

func (request *Request) ProposeApply(client *http.Client, API string) error

func (*Request) ProposeRemove added in v0.1.23

func (request *Request) ProposeRemove(client *http.Client, API string) error

func (*Request) Remove added in v0.1.4

func (request *Request) Remove(client *client.Http, user *authentication.User) (contracts.ObjectInterface, error)

func (*Request) Send added in v0.1.4

func (request *Request) Send(action string, method string, client *http.Client, API string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL