Documentation
¶
Index ¶
- Variables
- type Config
- func (*Config) Descriptor() ([]byte, []int)deprecated
- func (x *Config) GetRoleBindings() []*RoleBinding
- func (x *Config) GetRoles() []*Role
- func (*Config) ProtoMessage()
- func (x *Config) ProtoReflect() protoreflect.Message
- func (x *Config) Reset()
- func (x *Config) String() string
- func (m *Config) Validate() error
- func (m *Config) ValidateAll() error
- type ConfigMultiError
- type ConfigValidationError
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetActionTypes() []v1.ActionType
- func (x *Policy) GetMethod() string
- func (x *Policy) GetPolicyName() string
- func (x *Policy) GetResources() []string
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) String() string
- func (m *Policy) Validate() error
- func (m *Policy) ValidateAll() error
- type PolicyMultiError
- type PolicyValidationError
- type Principal
- func (*Principal) Descriptor() ([]byte, []int)deprecated
- func (x *Principal) GetGroup() string
- func (m *Principal) GetType() isPrincipal_Type
- func (x *Principal) GetUser() string
- func (*Principal) ProtoMessage()
- func (x *Principal) ProtoReflect() protoreflect.Message
- func (x *Principal) Reset()
- func (x *Principal) String() string
- func (m *Principal) Validate() error
- func (m *Principal) ValidateAll() error
- type PrincipalMultiError
- type PrincipalValidationError
- type Principal_Group
- type Principal_User
- type Role
- func (*Role) Descriptor() ([]byte, []int)deprecated
- func (x *Role) GetPolicies() []*Policy
- func (x *Role) GetRoleName() string
- func (*Role) ProtoMessage()
- func (x *Role) ProtoReflect() protoreflect.Message
- func (x *Role) Reset()
- func (x *Role) String() string
- func (m *Role) Validate() error
- func (m *Role) ValidateAll() error
- type RoleBinding
- func (*RoleBinding) Descriptor() ([]byte, []int)deprecated
- func (x *RoleBinding) GetPrincipals() []*Principal
- func (x *RoleBinding) GetTo() []string
- func (*RoleBinding) ProtoMessage()
- func (x *RoleBinding) ProtoReflect() protoreflect.Message
- func (x *RoleBinding) Reset()
- func (x *RoleBinding) String() string
- func (m *RoleBinding) Validate() error
- func (m *RoleBinding) ValidateAll() error
- type RoleBindingMultiError
- type RoleBindingValidationError
- func (e RoleBindingValidationError) Cause() error
- func (e RoleBindingValidationError) Error() string
- func (e RoleBindingValidationError) ErrorName() string
- func (e RoleBindingValidationError) Field() string
- func (e RoleBindingValidationError) Key() bool
- func (e RoleBindingValidationError) Reason() string
- type RoleMultiError
- type RoleValidationError
Constants ¶
This section is empty.
Variables ¶
var File_config_service_authz_v1_authz_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { RoleBindings []*RoleBinding `protobuf:"bytes,1,rep,name=role_bindings,json=roleBindings,proto3" json:"role_bindings,omitempty"` Roles []*Role `protobuf:"bytes,2,rep,name=roles,proto3" json:"roles,omitempty"` // contains filtered or unexported fields }
func (*Config) Descriptor
deprecated
func (*Config) GetRoleBindings ¶
func (x *Config) GetRoleBindings() []*RoleBinding
func (*Config) ProtoMessage ¶
func (*Config) ProtoMessage()
func (*Config) ProtoReflect ¶
func (x *Config) ProtoReflect() protoreflect.Message
func (*Config) Validate ¶
Validate checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Config) ValidateAll ¶
ValidateAll checks the field values on Config with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in ConfigMultiError, or nil if none found.
type ConfigMultiError ¶
type ConfigMultiError []error
ConfigMultiError is an error wrapping multiple validation errors returned by Config.ValidateAll() if the designated constraints aren't met.
func (ConfigMultiError) AllErrors ¶
func (m ConfigMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (ConfigMultiError) Error ¶
func (m ConfigMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type ConfigValidationError ¶
type ConfigValidationError struct {
// contains filtered or unexported fields
}
ConfigValidationError is the validation error returned by Config.Validate if the designated constraints aren't met.
func (ConfigValidationError) Cause ¶
func (e ConfigValidationError) Cause() error
Cause function returns cause value.
func (ConfigValidationError) Error ¶
func (e ConfigValidationError) Error() string
Error satisfies the builtin error interface
func (ConfigValidationError) ErrorName ¶
func (e ConfigValidationError) ErrorName() string
ErrorName returns error name.
func (ConfigValidationError) Field ¶
func (e ConfigValidationError) Field() string
Field function returns field value.
func (ConfigValidationError) Key ¶
func (e ConfigValidationError) Key() bool
Key function returns key value.
func (ConfigValidationError) Reason ¶
func (e ConfigValidationError) Reason() string
Reason function returns reason value.
type Policy ¶
type Policy struct { // For logging purposes, give the policy a defined name. PolicyName string `protobuf:"bytes,1,opt,name=policy_name,json=policyName,proto3" json:"policy_name,omitempty"` // A list of acceptable action types. If left empty, all action types are accepted. ActionTypes []v1.ActionType `` /* 132-byte string literal not displayed */ // The full method in the format of a `/SERVICE/METHOD`. Wildcards are allowed, e.g. `*` or `/SERVICE/*`. // If left empty, all methods are accepted. Method string `protobuf:"bytes,3,opt,name=method,proto3" json:"method,omitempty"` // Resource from the id annotation on proto objects. Wildcards are allowed. Resources []string `protobuf:"bytes,4,rep,name=resources,proto3" json:"resources,omitempty"` // contains filtered or unexported fields }
func (*Policy) Descriptor
deprecated
func (*Policy) GetActionTypes ¶
func (x *Policy) GetActionTypes() []v1.ActionType
func (*Policy) GetPolicyName ¶
func (*Policy) GetResources ¶
func (*Policy) ProtoMessage ¶
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶
func (x *Policy) ProtoReflect() protoreflect.Message
func (*Policy) Validate ¶
Validate checks the field values on Policy with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Policy) ValidateAll ¶
ValidateAll checks the field values on Policy with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PolicyMultiError, or nil if none found.
type PolicyMultiError ¶
type PolicyMultiError []error
PolicyMultiError is an error wrapping multiple validation errors returned by Policy.ValidateAll() if the designated constraints aren't met.
func (PolicyMultiError) AllErrors ¶
func (m PolicyMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PolicyMultiError) Error ¶
func (m PolicyMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PolicyValidationError ¶
type PolicyValidationError struct {
// contains filtered or unexported fields
}
PolicyValidationError is the validation error returned by Policy.Validate if the designated constraints aren't met.
func (PolicyValidationError) Cause ¶
func (e PolicyValidationError) Cause() error
Cause function returns cause value.
func (PolicyValidationError) Error ¶
func (e PolicyValidationError) Error() string
Error satisfies the builtin error interface
func (PolicyValidationError) ErrorName ¶
func (e PolicyValidationError) ErrorName() string
ErrorName returns error name.
func (PolicyValidationError) Field ¶
func (e PolicyValidationError) Field() string
Field function returns field value.
func (PolicyValidationError) Key ¶
func (e PolicyValidationError) Key() bool
Key function returns key value.
func (PolicyValidationError) Reason ¶
func (e PolicyValidationError) Reason() string
Reason function returns reason value.
type Principal ¶
type Principal struct { // Types that are assignable to Type: // // *Principal_User // *Principal_Group Type isPrincipal_Type `protobuf_oneof:"type"` // contains filtered or unexported fields }
func (*Principal) Descriptor
deprecated
func (*Principal) ProtoMessage ¶
func (*Principal) ProtoMessage()
func (*Principal) ProtoReflect ¶
func (x *Principal) ProtoReflect() protoreflect.Message
func (*Principal) Validate ¶
Validate checks the field values on Principal with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Principal) ValidateAll ¶
ValidateAll checks the field values on Principal with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in PrincipalMultiError, or nil if none found.
type PrincipalMultiError ¶
type PrincipalMultiError []error
PrincipalMultiError is an error wrapping multiple validation errors returned by Principal.ValidateAll() if the designated constraints aren't met.
func (PrincipalMultiError) AllErrors ¶
func (m PrincipalMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (PrincipalMultiError) Error ¶
func (m PrincipalMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type PrincipalValidationError ¶
type PrincipalValidationError struct {
// contains filtered or unexported fields
}
PrincipalValidationError is the validation error returned by Principal.Validate if the designated constraints aren't met.
func (PrincipalValidationError) Cause ¶
func (e PrincipalValidationError) Cause() error
Cause function returns cause value.
func (PrincipalValidationError) Error ¶
func (e PrincipalValidationError) Error() string
Error satisfies the builtin error interface
func (PrincipalValidationError) ErrorName ¶
func (e PrincipalValidationError) ErrorName() string
ErrorName returns error name.
func (PrincipalValidationError) Field ¶
func (e PrincipalValidationError) Field() string
Field function returns field value.
func (PrincipalValidationError) Key ¶
func (e PrincipalValidationError) Key() bool
Key function returns key value.
func (PrincipalValidationError) Reason ¶
func (e PrincipalValidationError) Reason() string
Reason function returns reason value.
type Principal_Group ¶
type Principal_Group struct {
Group string `protobuf:"bytes,2,opt,name=group,proto3,oneof"`
}
type Principal_User ¶
type Principal_User struct {
User string `protobuf:"bytes,1,opt,name=user,proto3,oneof"`
}
type Role ¶
type Role struct { RoleName string `protobuf:"bytes,1,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` Policies []*Policy `protobuf:"bytes,2,rep,name=policies,proto3" json:"policies,omitempty"` // contains filtered or unexported fields }
func (*Role) Descriptor
deprecated
func (*Role) GetPolicies ¶
func (*Role) GetRoleName ¶
func (*Role) ProtoMessage ¶
func (*Role) ProtoMessage()
func (*Role) ProtoReflect ¶
func (x *Role) ProtoReflect() protoreflect.Message
func (*Role) Validate ¶
Validate checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*Role) ValidateAll ¶
ValidateAll checks the field values on Role with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleMultiError, or nil if none found.
type RoleBinding ¶
type RoleBinding struct { To []string `protobuf:"bytes,1,rep,name=to,proto3" json:"to,omitempty"` Principals []*Principal `protobuf:"bytes,2,rep,name=principals,proto3" json:"principals,omitempty"` // contains filtered or unexported fields }
func (*RoleBinding) Descriptor
deprecated
func (*RoleBinding) Descriptor() ([]byte, []int)
Deprecated: Use RoleBinding.ProtoReflect.Descriptor instead.
func (*RoleBinding) GetPrincipals ¶
func (x *RoleBinding) GetPrincipals() []*Principal
func (*RoleBinding) GetTo ¶
func (x *RoleBinding) GetTo() []string
func (*RoleBinding) ProtoMessage ¶
func (*RoleBinding) ProtoMessage()
func (*RoleBinding) ProtoReflect ¶
func (x *RoleBinding) ProtoReflect() protoreflect.Message
func (*RoleBinding) Reset ¶
func (x *RoleBinding) Reset()
func (*RoleBinding) String ¶
func (x *RoleBinding) String() string
func (*RoleBinding) Validate ¶
func (m *RoleBinding) Validate() error
Validate checks the field values on RoleBinding with the rules defined in the proto definition for this message. If any rules are violated, the first error encountered is returned, or nil if there are no violations.
func (*RoleBinding) ValidateAll ¶
func (m *RoleBinding) ValidateAll() error
ValidateAll checks the field values on RoleBinding with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in RoleBindingMultiError, or nil if none found.
type RoleBindingMultiError ¶
type RoleBindingMultiError []error
RoleBindingMultiError is an error wrapping multiple validation errors returned by RoleBinding.ValidateAll() if the designated constraints aren't met.
func (RoleBindingMultiError) AllErrors ¶
func (m RoleBindingMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleBindingMultiError) Error ¶
func (m RoleBindingMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleBindingValidationError ¶
type RoleBindingValidationError struct {
// contains filtered or unexported fields
}
RoleBindingValidationError is the validation error returned by RoleBinding.Validate if the designated constraints aren't met.
func (RoleBindingValidationError) Cause ¶
func (e RoleBindingValidationError) Cause() error
Cause function returns cause value.
func (RoleBindingValidationError) Error ¶
func (e RoleBindingValidationError) Error() string
Error satisfies the builtin error interface
func (RoleBindingValidationError) ErrorName ¶
func (e RoleBindingValidationError) ErrorName() string
ErrorName returns error name.
func (RoleBindingValidationError) Field ¶
func (e RoleBindingValidationError) Field() string
Field function returns field value.
func (RoleBindingValidationError) Key ¶
func (e RoleBindingValidationError) Key() bool
Key function returns key value.
func (RoleBindingValidationError) Reason ¶
func (e RoleBindingValidationError) Reason() string
Reason function returns reason value.
type RoleMultiError ¶
type RoleMultiError []error
RoleMultiError is an error wrapping multiple validation errors returned by Role.ValidateAll() if the designated constraints aren't met.
func (RoleMultiError) AllErrors ¶
func (m RoleMultiError) AllErrors() []error
AllErrors returns a list of validation violation errors.
func (RoleMultiError) Error ¶
func (m RoleMultiError) Error() string
Error returns a concatenation of all the error messages it wraps.
type RoleValidationError ¶
type RoleValidationError struct {
// contains filtered or unexported fields
}
RoleValidationError is the validation error returned by Role.Validate if the designated constraints aren't met.
func (RoleValidationError) Cause ¶
func (e RoleValidationError) Cause() error
Cause function returns cause value.
func (RoleValidationError) Error ¶
func (e RoleValidationError) Error() string
Error satisfies the builtin error interface
func (RoleValidationError) ErrorName ¶
func (e RoleValidationError) ErrorName() string
ErrorName returns error name.
func (RoleValidationError) Field ¶
func (e RoleValidationError) Field() string
Field function returns field value.
func (RoleValidationError) Key ¶
func (e RoleValidationError) Key() bool
Key function returns key value.
func (RoleValidationError) Reason ¶
func (e RoleValidationError) Reason() string
Reason function returns reason value.