Documentation

Overview

    Package pb is a generated protocol buffer package.

    It is generated from these files:

    service.proto
    

    It has these top-level messages:

    DiscoverRequestsRequest
    Principal
    Subject
    ContextRequest
    DiscoverRequestsResponse
    ResetRequestsRequest
    ResetRequestsResponse
    DiscoverPoliciesRequest
    DiscoverPoliciesResponse
    Function
    FunctionQueryRequest
    FunctionQueryResponse
    AndPrincipals
    Empty
    ServiceRequest
    PolicyRequest
    ServiceQueryResponse
    ServiceQueryRequest
    PolicyQueryRequest
    PolicyQueryResponse
    Policy
    RolePolicyRequest
    RolePolicyQueryRequest
    RolePolicyQueryResponse
    RolePolicy
    Service
    PolicyAndRolePolicyCounts
    PolicyCountsMap
    

    Index

    Constants

    This section is empty.

    Variables

    View Source
    var Effect_name = map[int32]string{
    	0: "GRANT",
    	1: "DENY",
    }
    View Source
    var Effect_value = map[string]int32{
    	"GRANT": 0,
    	"DENY":  1,
    }
    View Source
    var ServiceType_name = map[int32]string{
    	0: "APPLICATION",
    	1: "K8S_CLUSTER",
    }
    View Source
    var ServiceType_value = map[string]int32{
    	"APPLICATION": 0,
    	"K8S_CLUSTER": 1,
    }

    Functions

    func RegisterPolicyManagerServer

    func RegisterPolicyManagerServer(s *grpc.Server, srv PolicyManagerServer)

    Types

    type AndPrincipals

    type AndPrincipals struct {
    	Principals []string `protobuf:"bytes,1,rep,name=principals" json:"principals,omitempty"`
    }

    func (*AndPrincipals) Descriptor

    func (*AndPrincipals) Descriptor() ([]byte, []int)

    func (*AndPrincipals) GetPrincipals

    func (m *AndPrincipals) GetPrincipals() []string

    func (*AndPrincipals) ProtoMessage

    func (*AndPrincipals) ProtoMessage()

    func (*AndPrincipals) Reset

    func (m *AndPrincipals) Reset()

    func (*AndPrincipals) String

    func (m *AndPrincipals) String() string

    type ContextRequest

    type ContextRequest struct {
    	Subject     *Subject          `protobuf:"bytes,1,opt,name=subject" json:"subject,omitempty"`
    	ServiceName string            `protobuf:"bytes,2,opt,name=serviceName" json:"serviceName,omitempty"`
    	Resource    string            `protobuf:"bytes,3,opt,name=resource" json:"resource,omitempty"`
    	Action      string            `protobuf:"bytes,4,opt,name=action" json:"action,omitempty"`
    	Attributes  map[string]string `` /* 140-byte string literal not displayed */
    }

    func (*ContextRequest) Descriptor

    func (*ContextRequest) Descriptor() ([]byte, []int)

    func (*ContextRequest) GetAction

    func (m *ContextRequest) GetAction() string

    func (*ContextRequest) GetAttributes

    func (m *ContextRequest) GetAttributes() map[string]string

    func (*ContextRequest) GetResource

    func (m *ContextRequest) GetResource() string

    func (*ContextRequest) GetServiceName

    func (m *ContextRequest) GetServiceName() string

    func (*ContextRequest) GetSubject

    func (m *ContextRequest) GetSubject() *Subject

    func (*ContextRequest) ProtoMessage

    func (*ContextRequest) ProtoMessage()

    func (*ContextRequest) Reset

    func (m *ContextRequest) Reset()

    func (*ContextRequest) String

    func (m *ContextRequest) String() string

    type DiscoverPoliciesRequest

    type DiscoverPoliciesRequest struct {
    	ServiceName   string `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
    	PrincipalType string `protobuf:"bytes,2,opt,name=principalType" json:"principalType,omitempty"`
    	PrincipalName string `protobuf:"bytes,3,opt,name=principalName" json:"principalName,omitempty"`
    	PrincipalIdd  string `protobuf:"bytes,4,opt,name=principalIdd" json:"principalIdd,omitempty"`
    }

    func (*DiscoverPoliciesRequest) Descriptor

    func (*DiscoverPoliciesRequest) Descriptor() ([]byte, []int)

    func (*DiscoverPoliciesRequest) GetPrincipalIdd

    func (m *DiscoverPoliciesRequest) GetPrincipalIdd() string

    func (*DiscoverPoliciesRequest) GetPrincipalName

    func (m *DiscoverPoliciesRequest) GetPrincipalName() string

    func (*DiscoverPoliciesRequest) GetPrincipalType

    func (m *DiscoverPoliciesRequest) GetPrincipalType() string

    func (*DiscoverPoliciesRequest) GetServiceName

    func (m *DiscoverPoliciesRequest) GetServiceName() string

    func (*DiscoverPoliciesRequest) ProtoMessage

    func (*DiscoverPoliciesRequest) ProtoMessage()

    func (*DiscoverPoliciesRequest) Reset

    func (m *DiscoverPoliciesRequest) Reset()

    func (*DiscoverPoliciesRequest) String

    func (m *DiscoverPoliciesRequest) String() string

    type DiscoverPoliciesResponse

    type DiscoverPoliciesResponse struct {
    	Services []*Service `protobuf:"bytes,1,rep,name=services" json:"services,omitempty"`
    	Revision int64      `protobuf:"varint,2,opt,name=revision" json:"revision,omitempty"`
    }

    func (*DiscoverPoliciesResponse) Descriptor

    func (*DiscoverPoliciesResponse) Descriptor() ([]byte, []int)

    func (*DiscoverPoliciesResponse) GetRevision

    func (m *DiscoverPoliciesResponse) GetRevision() int64

    func (*DiscoverPoliciesResponse) GetServices

    func (m *DiscoverPoliciesResponse) GetServices() []*Service

    func (*DiscoverPoliciesResponse) ProtoMessage

    func (*DiscoverPoliciesResponse) ProtoMessage()

    func (*DiscoverPoliciesResponse) Reset

    func (m *DiscoverPoliciesResponse) Reset()

    func (*DiscoverPoliciesResponse) String

    func (m *DiscoverPoliciesResponse) String() string

    type DiscoverRequestsRequest

    type DiscoverRequestsRequest struct {
    	ServiceName string `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
    	Last        bool   `protobuf:"varint,2,opt,name=last" json:"last,omitempty"`
    	Revision    int64  `protobuf:"varint,3,opt,name=revision" json:"revision,omitempty"`
    }

    func (*DiscoverRequestsRequest) Descriptor

    func (*DiscoverRequestsRequest) Descriptor() ([]byte, []int)

    func (*DiscoverRequestsRequest) GetLast

    func (m *DiscoverRequestsRequest) GetLast() bool

    func (*DiscoverRequestsRequest) GetRevision

    func (m *DiscoverRequestsRequest) GetRevision() int64

    func (*DiscoverRequestsRequest) GetServiceName

    func (m *DiscoverRequestsRequest) GetServiceName() string

    func (*DiscoverRequestsRequest) ProtoMessage

    func (*DiscoverRequestsRequest) ProtoMessage()

    func (*DiscoverRequestsRequest) Reset

    func (m *DiscoverRequestsRequest) Reset()

    func (*DiscoverRequestsRequest) String

    func (m *DiscoverRequestsRequest) String() string

    type DiscoverRequestsResponse

    type DiscoverRequestsResponse struct {
    	Requests []*ContextRequest `protobuf:"bytes,1,rep,name=requests" json:"requests,omitempty"`
    	Revision int64             `protobuf:"varint,2,opt,name=revision" json:"revision,omitempty"`
    }

    func (*DiscoverRequestsResponse) Descriptor

    func (*DiscoverRequestsResponse) Descriptor() ([]byte, []int)

    func (*DiscoverRequestsResponse) GetRequests

    func (m *DiscoverRequestsResponse) GetRequests() []*ContextRequest

    func (*DiscoverRequestsResponse) GetRevision

    func (m *DiscoverRequestsResponse) GetRevision() int64

    func (*DiscoverRequestsResponse) ProtoMessage

    func (*DiscoverRequestsResponse) ProtoMessage()

    func (*DiscoverRequestsResponse) Reset

    func (m *DiscoverRequestsResponse) Reset()

    func (*DiscoverRequestsResponse) String

    func (m *DiscoverRequestsResponse) String() string

    type Effect

    type Effect int32
    const (
    	Effect_GRANT Effect = 0
    	Effect_DENY  Effect = 1
    )

    func (Effect) EnumDescriptor

    func (Effect) EnumDescriptor() ([]byte, []int)

    func (Effect) String

    func (x Effect) String() string

    type Empty

    type Empty struct {
    }

    func (*Empty) Descriptor

    func (*Empty) Descriptor() ([]byte, []int)

    func (*Empty) ProtoMessage

    func (*Empty) ProtoMessage()

    func (*Empty) Reset

    func (m *Empty) Reset()

    func (*Empty) String

    func (m *Empty) String() string

    type Function

    type Function struct {
    	Name           string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    	Description    string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
    	FuncUrl        string `protobuf:"bytes,3,opt,name=funcUrl" json:"funcUrl,omitempty"`
    	LocalFuncUrl   string `protobuf:"bytes,4,opt,name=localFuncUrl" json:"localFuncUrl,omitempty"`
    	Ca             string `protobuf:"bytes,5,opt,name=ca" json:"ca,omitempty"`
    	ResultCachable bool   `protobuf:"varint,6,opt,name=resultCachable" json:"resultCachable,omitempty"`
    	ResultTTL      int64  `protobuf:"varint,7,opt,name=resultTTL" json:"resultTTL,omitempty"`
    }

    func (*Function) Descriptor

    func (*Function) Descriptor() ([]byte, []int)

    func (*Function) GetCa

    func (m *Function) GetCa() string

    func (*Function) GetDescription

    func (m *Function) GetDescription() string

    func (*Function) GetFuncUrl

    func (m *Function) GetFuncUrl() string

    func (*Function) GetLocalFuncUrl

    func (m *Function) GetLocalFuncUrl() string

    func (*Function) GetName

    func (m *Function) GetName() string

    func (*Function) GetResultCachable

    func (m *Function) GetResultCachable() bool

    func (*Function) GetResultTTL

    func (m *Function) GetResultTTL() int64

    func (*Function) ProtoMessage

    func (*Function) ProtoMessage()

    func (*Function) Reset

    func (m *Function) Reset()

    func (*Function) String

    func (m *Function) String() string

    type FunctionQueryRequest

    type FunctionQueryRequest struct {
    	Name    string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    	Filters string `protobuf:"bytes,2,opt,name=filters" json:"filters,omitempty"`
    }

    func (*FunctionQueryRequest) Descriptor

    func (*FunctionQueryRequest) Descriptor() ([]byte, []int)

    func (*FunctionQueryRequest) GetFilters

    func (m *FunctionQueryRequest) GetFilters() string

    func (*FunctionQueryRequest) GetName

    func (m *FunctionQueryRequest) GetName() string

    func (*FunctionQueryRequest) ProtoMessage

    func (*FunctionQueryRequest) ProtoMessage()

    func (*FunctionQueryRequest) Reset

    func (m *FunctionQueryRequest) Reset()

    func (*FunctionQueryRequest) String

    func (m *FunctionQueryRequest) String() string

    type FunctionQueryResponse

    type FunctionQueryResponse struct {
    	Functions []*Function `protobuf:"bytes,1,rep,name=functions" json:"functions,omitempty"`
    }

    func (*FunctionQueryResponse) Descriptor

    func (*FunctionQueryResponse) Descriptor() ([]byte, []int)

    func (*FunctionQueryResponse) GetFunctions

    func (m *FunctionQueryResponse) GetFunctions() []*Function

    func (*FunctionQueryResponse) ProtoMessage

    func (*FunctionQueryResponse) ProtoMessage()

    func (*FunctionQueryResponse) Reset

    func (m *FunctionQueryResponse) Reset()

    func (*FunctionQueryResponse) String

    func (m *FunctionQueryResponse) String() string

    type Policy

    type Policy struct {
    	Id          string               `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
    	Name        string               `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
    	Effect      Effect               `protobuf:"varint,3,opt,name=effect,enum=pb.Effect" json:"effect,omitempty"`
    	Permissions []*Policy_Permission `protobuf:"bytes,4,rep,name=permissions" json:"permissions,omitempty"`
    	Principals  []*AndPrincipals     `protobuf:"bytes,5,rep,name=principals" json:"principals,omitempty"`
    	Condition   string               `protobuf:"bytes,6,opt,name=condition" json:"condition,omitempty"`
    }

    func (*Policy) Descriptor

    func (*Policy) Descriptor() ([]byte, []int)

    func (*Policy) GetCondition

    func (m *Policy) GetCondition() string

    func (*Policy) GetEffect

    func (m *Policy) GetEffect() Effect

    func (*Policy) GetId

    func (m *Policy) GetId() string

    func (*Policy) GetName

    func (m *Policy) GetName() string

    func (*Policy) GetPermissions

    func (m *Policy) GetPermissions() []*Policy_Permission

    func (*Policy) GetPrincipals

    func (m *Policy) GetPrincipals() []*AndPrincipals

    func (*Policy) ProtoMessage

    func (*Policy) ProtoMessage()

    func (*Policy) Reset

    func (m *Policy) Reset()

    func (*Policy) String

    func (m *Policy) String() string

    type PolicyAndRolePolicyCounts

    type PolicyAndRolePolicyCounts struct {
    	PolicyCount     int64 `protobuf:"varint,1,opt,name=policyCount" json:"policyCount,omitempty"`
    	RolePolicyCount int64 `protobuf:"varint,2,opt,name=rolePolicyCount" json:"rolePolicyCount,omitempty"`
    }

    func (*PolicyAndRolePolicyCounts) Descriptor

    func (*PolicyAndRolePolicyCounts) Descriptor() ([]byte, []int)

    func (*PolicyAndRolePolicyCounts) GetPolicyCount

    func (m *PolicyAndRolePolicyCounts) GetPolicyCount() int64

    func (*PolicyAndRolePolicyCounts) GetRolePolicyCount

    func (m *PolicyAndRolePolicyCounts) GetRolePolicyCount() int64

    func (*PolicyAndRolePolicyCounts) ProtoMessage

    func (*PolicyAndRolePolicyCounts) ProtoMessage()

    func (*PolicyAndRolePolicyCounts) Reset

    func (m *PolicyAndRolePolicyCounts) Reset()

    func (*PolicyAndRolePolicyCounts) String

    func (m *PolicyAndRolePolicyCounts) String() string

    type PolicyCountsMap

    type PolicyCountsMap struct {
    	CountMap map[string]*PolicyAndRolePolicyCounts `` /* 136-byte string literal not displayed */
    }

    func (*PolicyCountsMap) Descriptor

    func (*PolicyCountsMap) Descriptor() ([]byte, []int)

    func (*PolicyCountsMap) GetCountMap

    func (m *PolicyCountsMap) GetCountMap() map[string]*PolicyAndRolePolicyCounts

    func (*PolicyCountsMap) ProtoMessage

    func (*PolicyCountsMap) ProtoMessage()

    func (*PolicyCountsMap) Reset

    func (m *PolicyCountsMap) Reset()

    func (*PolicyCountsMap) String

    func (m *PolicyCountsMap) String() string

    type PolicyManagerClient

    type PolicyManagerClient interface {
    	CreateFunction(ctx context.Context, in *Function, opts ...grpc.CallOption) (*Function, error)
    	QueryFunctions(ctx context.Context, in *FunctionQueryRequest, opts ...grpc.CallOption) (*FunctionQueryResponse, error)
    	DeleteFunctions(ctx context.Context, in *FunctionQueryRequest, opts ...grpc.CallOption) (*Empty, error)
    	CreateService(ctx context.Context, in *ServiceRequest, opts ...grpc.CallOption) (*Service, error)
    	QueryServices(ctx context.Context, in *ServiceQueryRequest, opts ...grpc.CallOption) (*ServiceQueryResponse, error)
    	DeleteServices(ctx context.Context, in *ServiceQueryRequest, opts ...grpc.CallOption) (*Empty, error)
    	CreatePolicy(ctx context.Context, in *PolicyRequest, opts ...grpc.CallOption) (*Policy, error)
    	QueryPolicies(ctx context.Context, in *PolicyQueryRequest, opts ...grpc.CallOption) (*PolicyQueryResponse, error)
    	DeletePolicies(ctx context.Context, in *PolicyQueryRequest, opts ...grpc.CallOption) (*Empty, error)
    	CreateRolePolicy(ctx context.Context, in *RolePolicyRequest, opts ...grpc.CallOption) (*RolePolicy, error)
    	QueryRolePolicies(ctx context.Context, in *RolePolicyQueryRequest, opts ...grpc.CallOption) (*RolePolicyQueryResponse, error)
    	DeleteRolePolicies(ctx context.Context, in *RolePolicyQueryRequest, opts ...grpc.CallOption) (*Empty, error)
    	ListPolicyCounts(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*PolicyCountsMap, error)
    	GetDiscoverRequests(ctx context.Context, in *DiscoverRequestsRequest, opts ...grpc.CallOption) (*DiscoverRequestsResponse, error)
    	ResetDiscoverRequests(ctx context.Context, in *ResetRequestsRequest, opts ...grpc.CallOption) (*ResetRequestsResponse, error)
    	GetDiscoverPolicies(ctx context.Context, in *DiscoverPoliciesRequest, opts ...grpc.CallOption) (*DiscoverPoliciesResponse, error)
    }

    func NewPolicyManagerClient

    func NewPolicyManagerClient(cc *grpc.ClientConn) PolicyManagerClient

    type PolicyQueryRequest

    type PolicyQueryRequest struct {
    	ServiceName string `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
    	PolicyID    string `protobuf:"bytes,2,opt,name=policyID" json:"policyID,omitempty"`
    	Filters     string `protobuf:"bytes,3,opt,name=filters" json:"filters,omitempty"`
    }

    func (*PolicyQueryRequest) Descriptor

    func (*PolicyQueryRequest) Descriptor() ([]byte, []int)

    func (*PolicyQueryRequest) GetFilters

    func (m *PolicyQueryRequest) GetFilters() string

    func (*PolicyQueryRequest) GetPolicyID

    func (m *PolicyQueryRequest) GetPolicyID() string

    func (*PolicyQueryRequest) GetServiceName

    func (m *PolicyQueryRequest) GetServiceName() string

    func (*PolicyQueryRequest) ProtoMessage

    func (*PolicyQueryRequest) ProtoMessage()

    func (*PolicyQueryRequest) Reset

    func (m *PolicyQueryRequest) Reset()

    func (*PolicyQueryRequest) String

    func (m *PolicyQueryRequest) String() string

    type PolicyQueryResponse

    type PolicyQueryResponse struct {
    	Policies []*Policy `protobuf:"bytes,1,rep,name=policies" json:"policies,omitempty"`
    }

    func (*PolicyQueryResponse) Descriptor

    func (*PolicyQueryResponse) Descriptor() ([]byte, []int)

    func (*PolicyQueryResponse) GetPolicies

    func (m *PolicyQueryResponse) GetPolicies() []*Policy

    func (*PolicyQueryResponse) ProtoMessage

    func (*PolicyQueryResponse) ProtoMessage()

    func (*PolicyQueryResponse) Reset

    func (m *PolicyQueryResponse) Reset()

    func (*PolicyQueryResponse) String

    func (m *PolicyQueryResponse) String() string

    type PolicyRequest

    type PolicyRequest struct {
    	ServiceName string  `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
    	Policy      *Policy `protobuf:"bytes,2,opt,name=policy" json:"policy,omitempty"`
    }

    func (*PolicyRequest) Descriptor

    func (*PolicyRequest) Descriptor() ([]byte, []int)

    func (*PolicyRequest) GetPolicy

    func (m *PolicyRequest) GetPolicy() *Policy

    func (*PolicyRequest) GetServiceName

    func (m *PolicyRequest) GetServiceName() string

    func (*PolicyRequest) ProtoMessage

    func (*PolicyRequest) ProtoMessage()

    func (*PolicyRequest) Reset

    func (m *PolicyRequest) Reset()

    func (*PolicyRequest) String

    func (m *PolicyRequest) String() string

    type Policy_Permission

    type Policy_Permission struct {
    	Resource           string   `protobuf:"bytes,1,opt,name=resource" json:"resource,omitempty"`
    	ResourceExpression string   `protobuf:"bytes,2,opt,name=resource_expression,json=resourceExpression" json:"resource_expression,omitempty"`
    	Actions            []string `protobuf:"bytes,3,rep,name=actions" json:"actions,omitempty"`
    }

    func (*Policy_Permission) Descriptor

    func (*Policy_Permission) Descriptor() ([]byte, []int)

    func (*Policy_Permission) GetActions

    func (m *Policy_Permission) GetActions() []string

    func (*Policy_Permission) GetResource

    func (m *Policy_Permission) GetResource() string

    func (*Policy_Permission) GetResourceExpression

    func (m *Policy_Permission) GetResourceExpression() string

    func (*Policy_Permission) ProtoMessage

    func (*Policy_Permission) ProtoMessage()

    func (*Policy_Permission) Reset

    func (m *Policy_Permission) Reset()

    func (*Policy_Permission) String

    func (m *Policy_Permission) String() string

    type Principal

    type Principal struct {
    	Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
    	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
    	Idd  string `protobuf:"bytes,3,opt,name=idd" json:"idd,omitempty"`
    }

    func (*Principal) Descriptor

    func (*Principal) Descriptor() ([]byte, []int)

    func (*Principal) GetIdd

    func (m *Principal) GetIdd() string

    func (*Principal) GetName

    func (m *Principal) GetName() string

    func (*Principal) GetType

    func (m *Principal) GetType() string

    func (*Principal) ProtoMessage

    func (*Principal) ProtoMessage()

    func (*Principal) Reset

    func (m *Principal) Reset()

    func (*Principal) String

    func (m *Principal) String() string

    type ResetRequestsRequest

    type ResetRequestsRequest struct {
    	ServiceName string `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
    }

    func (*ResetRequestsRequest) Descriptor

    func (*ResetRequestsRequest) Descriptor() ([]byte, []int)

    func (*ResetRequestsRequest) GetServiceName

    func (m *ResetRequestsRequest) GetServiceName() string

    func (*ResetRequestsRequest) ProtoMessage

    func (*ResetRequestsRequest) ProtoMessage()

    func (*ResetRequestsRequest) Reset

    func (m *ResetRequestsRequest) Reset()

    func (*ResetRequestsRequest) String

    func (m *ResetRequestsRequest) String() string

    type ResetRequestsResponse

    type ResetRequestsResponse struct {
    }

    func (*ResetRequestsResponse) Descriptor

    func (*ResetRequestsResponse) Descriptor() ([]byte, []int)

    func (*ResetRequestsResponse) ProtoMessage

    func (*ResetRequestsResponse) ProtoMessage()

    func (*ResetRequestsResponse) Reset

    func (m *ResetRequestsResponse) Reset()

    func (*ResetRequestsResponse) String

    func (m *ResetRequestsResponse) String() string

    type RolePolicy

    type RolePolicy struct {
    	Id                  string   `protobuf:"bytes,1,opt,name=id" json:"id,omitempty"`
    	Name                string   `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
    	Effect              Effect   `protobuf:"varint,3,opt,name=effect,enum=pb.Effect" json:"effect,omitempty"`
    	Roles               []string `protobuf:"bytes,4,rep,name=roles" json:"roles,omitempty"`
    	Principals          []string `protobuf:"bytes,5,rep,name=principals" json:"principals,omitempty"`
    	Resources           []string `protobuf:"bytes,6,rep,name=resources" json:"resources,omitempty"`
    	ResourceExpressions []string `protobuf:"bytes,7,rep,name=resource_expressions,json=resourceExpressions" json:"resource_expressions,omitempty"`
    	Condition           string   `protobuf:"bytes,8,opt,name=condition" json:"condition,omitempty"`
    }

    func (*RolePolicy) Descriptor

    func (*RolePolicy) Descriptor() ([]byte, []int)

    func (*RolePolicy) GetCondition

    func (m *RolePolicy) GetCondition() string

    func (*RolePolicy) GetEffect

    func (m *RolePolicy) GetEffect() Effect

    func (*RolePolicy) GetId

    func (m *RolePolicy) GetId() string

    func (*RolePolicy) GetName

    func (m *RolePolicy) GetName() string

    func (*RolePolicy) GetPrincipals

    func (m *RolePolicy) GetPrincipals() []string

    func (*RolePolicy) GetResourceExpressions

    func (m *RolePolicy) GetResourceExpressions() []string

    func (*RolePolicy) GetResources

    func (m *RolePolicy) GetResources() []string

    func (*RolePolicy) GetRoles

    func (m *RolePolicy) GetRoles() []string

    func (*RolePolicy) ProtoMessage

    func (*RolePolicy) ProtoMessage()

    func (*RolePolicy) Reset

    func (m *RolePolicy) Reset()

    func (*RolePolicy) String

    func (m *RolePolicy) String() string

    type RolePolicyQueryRequest

    type RolePolicyQueryRequest struct {
    	ServiceName  string `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
    	RolePolicyID string `protobuf:"bytes,2,opt,name=rolePolicyID" json:"rolePolicyID,omitempty"`
    	Filters      string `protobuf:"bytes,3,opt,name=filters" json:"filters,omitempty"`
    }

    func (*RolePolicyQueryRequest) Descriptor

    func (*RolePolicyQueryRequest) Descriptor() ([]byte, []int)

    func (*RolePolicyQueryRequest) GetFilters

    func (m *RolePolicyQueryRequest) GetFilters() string

    func (*RolePolicyQueryRequest) GetRolePolicyID

    func (m *RolePolicyQueryRequest) GetRolePolicyID() string

    func (*RolePolicyQueryRequest) GetServiceName

    func (m *RolePolicyQueryRequest) GetServiceName() string

    func (*RolePolicyQueryRequest) ProtoMessage

    func (*RolePolicyQueryRequest) ProtoMessage()

    func (*RolePolicyQueryRequest) Reset

    func (m *RolePolicyQueryRequest) Reset()

    func (*RolePolicyQueryRequest) String

    func (m *RolePolicyQueryRequest) String() string

    type RolePolicyQueryResponse

    type RolePolicyQueryResponse struct {
    	RolePolicies []*RolePolicy `protobuf:"bytes,1,rep,name=rolePolicies" json:"rolePolicies,omitempty"`
    }

    func (*RolePolicyQueryResponse) Descriptor

    func (*RolePolicyQueryResponse) Descriptor() ([]byte, []int)

    func (*RolePolicyQueryResponse) GetRolePolicies

    func (m *RolePolicyQueryResponse) GetRolePolicies() []*RolePolicy

    func (*RolePolicyQueryResponse) ProtoMessage

    func (*RolePolicyQueryResponse) ProtoMessage()

    func (*RolePolicyQueryResponse) Reset

    func (m *RolePolicyQueryResponse) Reset()

    func (*RolePolicyQueryResponse) String

    func (m *RolePolicyQueryResponse) String() string

    type RolePolicyRequest

    type RolePolicyRequest struct {
    	ServiceName string      `protobuf:"bytes,1,opt,name=serviceName" json:"serviceName,omitempty"`
    	RolePolicy  *RolePolicy `protobuf:"bytes,2,opt,name=rolePolicy" json:"rolePolicy,omitempty"`
    }

    func (*RolePolicyRequest) Descriptor

    func (*RolePolicyRequest) Descriptor() ([]byte, []int)

    func (*RolePolicyRequest) GetRolePolicy

    func (m *RolePolicyRequest) GetRolePolicy() *RolePolicy

    func (*RolePolicyRequest) GetServiceName

    func (m *RolePolicyRequest) GetServiceName() string

    func (*RolePolicyRequest) ProtoMessage

    func (*RolePolicyRequest) ProtoMessage()

    func (*RolePolicyRequest) Reset

    func (m *RolePolicyRequest) Reset()

    func (*RolePolicyRequest) String

    func (m *RolePolicyRequest) String() string

    type Service

    type Service struct {
    	Name         string        `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    	Type         ServiceType   `protobuf:"varint,2,opt,name=type,enum=pb.ServiceType" json:"type,omitempty"`
    	Policies     []*Policy     `protobuf:"bytes,3,rep,name=policies" json:"policies,omitempty"`
    	RolePolicies []*RolePolicy `protobuf:"bytes,4,rep,name=role_policies,json=rolePolicies" json:"role_policies,omitempty"`
    }

    func (*Service) Descriptor

    func (*Service) Descriptor() ([]byte, []int)

    func (*Service) GetName

    func (m *Service) GetName() string

    func (*Service) GetPolicies

    func (m *Service) GetPolicies() []*Policy

    func (*Service) GetRolePolicies

    func (m *Service) GetRolePolicies() []*RolePolicy

    func (*Service) GetType

    func (m *Service) GetType() ServiceType

    func (*Service) ProtoMessage

    func (*Service) ProtoMessage()

    func (*Service) Reset

    func (m *Service) Reset()

    func (*Service) String

    func (m *Service) String() string

    type ServiceQueryRequest

    type ServiceQueryRequest struct {
    	Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    }

    func (*ServiceQueryRequest) Descriptor

    func (*ServiceQueryRequest) Descriptor() ([]byte, []int)

    func (*ServiceQueryRequest) GetName

    func (m *ServiceQueryRequest) GetName() string

    func (*ServiceQueryRequest) ProtoMessage

    func (*ServiceQueryRequest) ProtoMessage()

    func (*ServiceQueryRequest) Reset

    func (m *ServiceQueryRequest) Reset()

    func (*ServiceQueryRequest) String

    func (m *ServiceQueryRequest) String() string

    type ServiceQueryResponse

    type ServiceQueryResponse struct {
    	Services []*Service `protobuf:"bytes,1,rep,name=services" json:"services,omitempty"`
    }

    func (*ServiceQueryResponse) Descriptor

    func (*ServiceQueryResponse) Descriptor() ([]byte, []int)

    func (*ServiceQueryResponse) GetServices

    func (m *ServiceQueryResponse) GetServices() []*Service

    func (*ServiceQueryResponse) ProtoMessage

    func (*ServiceQueryResponse) ProtoMessage()

    func (*ServiceQueryResponse) Reset

    func (m *ServiceQueryResponse) Reset()

    func (*ServiceQueryResponse) String

    func (m *ServiceQueryResponse) String() string

    type ServiceRequest

    type ServiceRequest struct {
    	Name string      `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
    	Type ServiceType `protobuf:"varint,2,opt,name=type,enum=pb.ServiceType" json:"type,omitempty"`
    }

    func (*ServiceRequest) Descriptor

    func (*ServiceRequest) Descriptor() ([]byte, []int)

    func (*ServiceRequest) GetName

    func (m *ServiceRequest) GetName() string

    func (*ServiceRequest) GetType

    func (m *ServiceRequest) GetType() ServiceType

    func (*ServiceRequest) ProtoMessage

    func (*ServiceRequest) ProtoMessage()

    func (*ServiceRequest) Reset

    func (m *ServiceRequest) Reset()

    func (*ServiceRequest) String

    func (m *ServiceRequest) String() string

    type ServiceType

    type ServiceType int32
    const (
    	ServiceType_APPLICATION ServiceType = 0
    	ServiceType_K8S_CLUSTER ServiceType = 1
    )

    func (ServiceType) EnumDescriptor

    func (ServiceType) EnumDescriptor() ([]byte, []int)

    func (ServiceType) String

    func (x ServiceType) String() string

    type Subject

    type Subject struct {
    	Principals []*Principal `protobuf:"bytes,1,rep,name=principals" json:"principals,omitempty"`
    	TokenType  string       `protobuf:"bytes,2,opt,name=tokenType" json:"tokenType,omitempty"`
    	Token      string       `protobuf:"bytes,3,opt,name=token" json:"token,omitempty"`
    }

    func (*Subject) Descriptor

    func (*Subject) Descriptor() ([]byte, []int)

    func (*Subject) GetPrincipals

    func (m *Subject) GetPrincipals() []*Principal

    func (*Subject) GetToken

    func (m *Subject) GetToken() string

    func (*Subject) GetTokenType

    func (m *Subject) GetTokenType() string

    func (*Subject) ProtoMessage

    func (*Subject) ProtoMessage()

    func (*Subject) Reset

    func (m *Subject) Reset()

    func (*Subject) String

    func (m *Subject) String() string

    Source Files