params

package
v0.0.0-...-7fc1cda Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2018 License: LGPL-3.0 Imports: 1 Imported by: 2

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 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