common

package
v0.1.39 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: GPL-3.0 Imports: 14 Imported by: 2

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) iresponse.Response

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 BuildFromRequest(kind string, bytes []byte) (*Request, iresponse.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) (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 *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) AttemptState added in v0.1.31

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

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

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

This is non-blocking and async method

func (*Request) ProposeRemove added in v0.1.23

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

This is non-blocking and async method

func (*Request) ProposeState added in v0.1.31

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

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) Send added in v0.1.4

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

func (*Request) State added in v0.1.31

func (request *Request) State(client *client.Http, user *authentication.User) (iobjects.ObjectInterface, error)

Jump to

Keyboard shortcuts

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