v1

package
v0.0.0-...-455e706 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2022 License: MIT, Apache-2.0, BSD-2-Clause, + 3 more Imports: 2 Imported by: 0

Documentation

Overview

Package v1 defines schemes used by iam-authz-server.

Index

Constants

View Source
const GroupName = "iam.authz"

GroupName is the group name use in this package. If use a public domain name, need set the GroupName to service name. For example: if restful path is: https://marmotedu.com/apimachinery/v1/secrets, we can set GroupName="apimachinery".

Variables

View Source
var SchemeGroupVersion = scheme.GroupVersion{Group: GroupName, Version: "v1"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Resource

func Resource(resource string) scheme.GroupResource

Resource takes an unqualified resource and returns a Group qualified GroupResource.

Types

type Response

type Response struct {
	Allowed bool   `json:"allowed"`
	Denied  bool   `json:"denied,omitempty"`
	Reason  string `json:"reason,omitempty"`
	Error   string `json:"error,omitempty"`
}

Response represents the response of subject access review request.

func (*Response) ToString

func (rsp *Response) ToString() string

ToString marshal Response struct to a json string.

Jump to

Keyboard shortcuts

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