params

package
v2.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2021 License: LGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GetACLRequest

type GetACLRequest struct {
	httprequest.Route `httprequest:"GET /:name"`
	Name              string `httprequest:"name,path"`
}

GetACLRequest holds parameters for an aclstore.Manager.GetACL call.

func (GetACLRequest) ACLName

func (r GetACLRequest) ACLName() string

ACLName returns the name of the ACL that's being retrieved.

type GetACLResponse

type GetACLResponse struct {
	Users []string `json:"users"`
}

GetACLResponse holds the response body returned by an aclstore.Manager.GetACL call.

type GetACLsRequest added in v2.1.0

type GetACLsRequest struct {
	httprequest.Route `httprequest:"GET /"`
}

GetACLsRequest holds parameters for an aclstore.Manager.GetACLs call.

func (GetACLsRequest) ACLName added in v2.1.0

func (r GetACLsRequest) ACLName() string

ACLName returns the name of the ACL that's being retrieved.

type GetACLsResponse added in v2.1.0

type GetACLsResponse struct {
	ACLs []string `json:"acls"`
}

GetACLsResponse holds the response body returned by an aclstore.Manager.GetACLs call.

type ModifyACLRequest

type ModifyACLRequest struct {
	httprequest.Route `httprequest:"POST /:name"`
	Body              ModifyACLRequestBody `httprequest:",body"`
	// Name holds the name of the ACL to change.
	Name string `httprequest:"name,path"`
}

ModifyACLRequest holds parameters for an aclstore.Manager.ModifyACL call.

func (ModifyACLRequest) ACLName

func (r ModifyACLRequest) ACLName() string

ACLName returns the name of the ACL that's being modified.

type ModifyACLRequestBody

type ModifyACLRequestBody struct {
	// Add specifies users to add to the ACL.
	Add []string `json:"add,omitempty"`
	// Remove specifies users to remove from the ACL.
	Remove []string `json:"remove,omitempty"`
}

ModifyACLRequestBody holds the HTTP body for an aclstore.Manager.ModifyACL call. It is an error for both Add and Remove to be specified at the same time.

type SetACLRequest

type SetACLRequest struct {
	httprequest.Route `httprequest:"PUT /:name"`
	Body              SetACLRequestBody `httprequest:",body"`
	// Name holds the name of the ACL to change.
	Name string `httprequest:"name,path"`
}

SetACLRequest holds parameters for an aclstore.Manager.SetACL call.

func (SetACLRequest) ACLName

func (r SetACLRequest) ACLName() string

ACLName returns the name of the ACL that's being set.

type SetACLRequestBody

type SetACLRequestBody struct {
	Users []string `json:"users"`
}

SetACLRequestBody holds the HTTP body for an aclstore.Manager.SetACL call.

Jump to

Keyboard shortcuts

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