Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IsAuthorizedReq ¶
type IsAuthorizedReq struct { Subjects []string `` /* 129-byte string literal not displayed */ Resource string `` /* 129-byte string literal not displayed */ Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty" toml:"action,omitempty" mapstructure:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
type Module ¶
type Module struct { *pgs.ModuleBase // contains filtered or unexported fields }
Module generates the policy mapping calls according to the proto file annotations.
func (*Module) InitContext ¶
func (m *Module) InitContext(c pgs.BuildContext)
type ValidateV2ResourceAndActions ¶
type ValidateV2ResourceAndActions struct { Subjects []string `` /* 129-byte string literal not displayed */ Resource string `` /* 129-byte string literal not displayed */ Action string `protobuf:"bytes,3,opt,name=action,proto3" json:"action,omitempty" toml:"action,omitempty" mapstructure:"action,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_unrecognized []byte `json:"-" toml:"-" mapstructure:"-,omitempty"` XXX_sizecache int32 `json:"-" toml:"-" mapstructure:"-,omitempty"` }
We were re-using the IAM V2 IsAuthorizedReq's Validate function to validate our V2 AuthZ annotations. Preserving that code here so we can continue to validate.
func (*ValidateV2ResourceAndActions) GetAction ¶
func (m *ValidateV2ResourceAndActions) GetAction() string
func (*ValidateV2ResourceAndActions) GetResource ¶
func (m *ValidateV2ResourceAndActions) GetResource() string
func (*ValidateV2ResourceAndActions) GetSubjects ¶
func (m *ValidateV2ResourceAndActions) GetSubjects() []string
type ValidateV2ResourceAndActionsValidationError ¶
type ValidateV2ResourceAndActionsValidationError struct {
// contains filtered or unexported fields
}
func (ValidateV2ResourceAndActionsValidationError) Error ¶
func (e ValidateV2ResourceAndActionsValidationError) Error() string
Click to show internal directories.
Click to hide internal directories.