authz_go_proto

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthorizationPolicy

type AuthorizationPolicy struct {
	// roles is a map of roles keyed by labels used in RoleLabels.
	Roles map[string]*AuthorizationPolicy_Role `` /* 151-byte string literal not displayed */
	// resource_to_role_labels specifies the authorization policy keyed by resource directory_id.
	ResourceToRoleLabels map[string]*AuthorizationPolicy_RoleLabels `` /* 213-byte string literal not displayed */
	XXX_NoUnkeyedLiteral struct{}                                   `json:"-"`
	XXX_unrecognized     []byte                                     `json:"-"`
	XXX_sizecache        int32                                      `json:"-"`
}

AuthorizationPolicy contains an authorization policy.

func (*AuthorizationPolicy) Descriptor

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

func (*AuthorizationPolicy) GetResourceToRoleLabels

func (m *AuthorizationPolicy) GetResourceToRoleLabels() map[string]*AuthorizationPolicy_RoleLabels

func (*AuthorizationPolicy) GetRoles

func (*AuthorizationPolicy) ProtoMessage

func (*AuthorizationPolicy) ProtoMessage()

func (*AuthorizationPolicy) Reset

func (m *AuthorizationPolicy) Reset()

func (*AuthorizationPolicy) String

func (m *AuthorizationPolicy) String() string

func (*AuthorizationPolicy) XXX_DiscardUnknown

func (m *AuthorizationPolicy) XXX_DiscardUnknown()

func (*AuthorizationPolicy) XXX_Marshal

func (m *AuthorizationPolicy) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizationPolicy) XXX_Merge

func (m *AuthorizationPolicy) XXX_Merge(src proto.Message)

func (*AuthorizationPolicy) XXX_Size

func (m *AuthorizationPolicy) XXX_Size() int

func (*AuthorizationPolicy) XXX_Unmarshal

func (m *AuthorizationPolicy) XXX_Unmarshal(b []byte) error

type AuthorizationPolicy_Resource

type AuthorizationPolicy_Resource struct {
	// directory_id contains the Key Transparency directory of this entry.
	DirectoryId          string   `protobuf:"bytes,1,opt,name=directory_id,json=directoryId,proto3" json:"directory_id,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Resource contains the resource being accessed.

func (*AuthorizationPolicy_Resource) Descriptor

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

func (*AuthorizationPolicy_Resource) GetDirectoryId

func (m *AuthorizationPolicy_Resource) GetDirectoryId() string

func (*AuthorizationPolicy_Resource) ProtoMessage

func (*AuthorizationPolicy_Resource) ProtoMessage()

func (*AuthorizationPolicy_Resource) Reset

func (m *AuthorizationPolicy_Resource) Reset()

func (*AuthorizationPolicy_Resource) String

func (*AuthorizationPolicy_Resource) XXX_DiscardUnknown

func (m *AuthorizationPolicy_Resource) XXX_DiscardUnknown()

func (*AuthorizationPolicy_Resource) XXX_Marshal

func (m *AuthorizationPolicy_Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizationPolicy_Resource) XXX_Merge

func (m *AuthorizationPolicy_Resource) XXX_Merge(src proto.Message)

func (*AuthorizationPolicy_Resource) XXX_Size

func (m *AuthorizationPolicy_Resource) XXX_Size() int

func (*AuthorizationPolicy_Resource) XXX_Unmarshal

func (m *AuthorizationPolicy_Resource) XXX_Unmarshal(b []byte) error

type AuthorizationPolicy_Role

type AuthorizationPolicy_Role struct {
	// principals contains an application specific identifier for this entry.
	Principals           []string `protobuf:"bytes,1,rep,name=principals,proto3" json:"principals,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

Role contains a specific identity of an authorization entry.

func (*AuthorizationPolicy_Role) Descriptor

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

func (*AuthorizationPolicy_Role) GetPrincipals

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

func (*AuthorizationPolicy_Role) ProtoMessage

func (*AuthorizationPolicy_Role) ProtoMessage()

func (*AuthorizationPolicy_Role) Reset

func (m *AuthorizationPolicy_Role) Reset()

func (*AuthorizationPolicy_Role) String

func (m *AuthorizationPolicy_Role) String() string

func (*AuthorizationPolicy_Role) XXX_DiscardUnknown

func (m *AuthorizationPolicy_Role) XXX_DiscardUnknown()

func (*AuthorizationPolicy_Role) XXX_Marshal

func (m *AuthorizationPolicy_Role) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizationPolicy_Role) XXX_Merge

func (m *AuthorizationPolicy_Role) XXX_Merge(src proto.Message)

func (*AuthorizationPolicy_Role) XXX_Size

func (m *AuthorizationPolicy_Role) XXX_Size() int

func (*AuthorizationPolicy_Role) XXX_Unmarshal

func (m *AuthorizationPolicy_Role) XXX_Unmarshal(b []byte) error

type AuthorizationPolicy_RoleLabels

type AuthorizationPolicy_RoleLabels struct {
	Labels               []string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

RoleLabels contains a lot of role labels identifying each role.

func (*AuthorizationPolicy_RoleLabels) Descriptor

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

func (*AuthorizationPolicy_RoleLabels) GetLabels

func (m *AuthorizationPolicy_RoleLabels) GetLabels() []string

func (*AuthorizationPolicy_RoleLabels) ProtoMessage

func (*AuthorizationPolicy_RoleLabels) ProtoMessage()

func (*AuthorizationPolicy_RoleLabels) Reset

func (m *AuthorizationPolicy_RoleLabels) Reset()

func (*AuthorizationPolicy_RoleLabels) String

func (*AuthorizationPolicy_RoleLabels) XXX_DiscardUnknown

func (m *AuthorizationPolicy_RoleLabels) XXX_DiscardUnknown()

func (*AuthorizationPolicy_RoleLabels) XXX_Marshal

func (m *AuthorizationPolicy_RoleLabels) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*AuthorizationPolicy_RoleLabels) XXX_Merge

func (m *AuthorizationPolicy_RoleLabels) XXX_Merge(src proto.Message)

func (*AuthorizationPolicy_RoleLabels) XXX_Size

func (m *AuthorizationPolicy_RoleLabels) XXX_Size() int

func (*AuthorizationPolicy_RoleLabels) XXX_Unmarshal

func (m *AuthorizationPolicy_RoleLabels) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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