authz_go_proto

package
Version: v0.3.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_authz_proto protoreflect.FileDescriptor

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 */
	// contains filtered or unexported fields
}

AuthorizationPolicy contains an authorization policy.

func (*AuthorizationPolicy) Descriptor deprecated

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

Deprecated: Use AuthorizationPolicy.ProtoReflect.Descriptor instead.

func (*AuthorizationPolicy) GetResourceToRoleLabels

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

func (*AuthorizationPolicy) GetRoles

func (*AuthorizationPolicy) ProtoMessage

func (*AuthorizationPolicy) ProtoMessage()

func (*AuthorizationPolicy) ProtoReflect added in v0.3.0

func (x *AuthorizationPolicy) ProtoReflect() protoreflect.Message

func (*AuthorizationPolicy) Reset

func (x *AuthorizationPolicy) Reset()

func (*AuthorizationPolicy) String

func (x *AuthorizationPolicy) String() string

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"`
	// contains filtered or unexported fields
}

Resource contains the resource being accessed.

func (*AuthorizationPolicy_Resource) Descriptor deprecated

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

Deprecated: Use AuthorizationPolicy_Resource.ProtoReflect.Descriptor instead.

func (*AuthorizationPolicy_Resource) GetDirectoryId

func (x *AuthorizationPolicy_Resource) GetDirectoryId() string

func (*AuthorizationPolicy_Resource) ProtoMessage

func (*AuthorizationPolicy_Resource) ProtoMessage()

func (*AuthorizationPolicy_Resource) ProtoReflect added in v0.3.0

func (*AuthorizationPolicy_Resource) Reset

func (x *AuthorizationPolicy_Resource) Reset()

func (*AuthorizationPolicy_Resource) String

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"`
	// contains filtered or unexported fields
}

Role contains a specific identity of an authorization entry.

func (*AuthorizationPolicy_Role) Descriptor deprecated

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

Deprecated: Use AuthorizationPolicy_Role.ProtoReflect.Descriptor instead.

func (*AuthorizationPolicy_Role) GetPrincipals

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

func (*AuthorizationPolicy_Role) ProtoMessage

func (*AuthorizationPolicy_Role) ProtoMessage()

func (*AuthorizationPolicy_Role) ProtoReflect added in v0.3.0

func (x *AuthorizationPolicy_Role) ProtoReflect() protoreflect.Message

func (*AuthorizationPolicy_Role) Reset

func (x *AuthorizationPolicy_Role) Reset()

func (*AuthorizationPolicy_Role) String

func (x *AuthorizationPolicy_Role) String() string

type AuthorizationPolicy_RoleLabels

type AuthorizationPolicy_RoleLabels struct {
	Labels []string `protobuf:"bytes,1,rep,name=labels,proto3" json:"labels,omitempty"`
	// contains filtered or unexported fields
}

RoleLabels contains a lot of role labels identifying each role.

func (*AuthorizationPolicy_RoleLabels) Descriptor deprecated

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

Deprecated: Use AuthorizationPolicy_RoleLabels.ProtoReflect.Descriptor instead.

func (*AuthorizationPolicy_RoleLabels) GetLabels

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

func (*AuthorizationPolicy_RoleLabels) ProtoMessage

func (*AuthorizationPolicy_RoleLabels) ProtoMessage()

func (*AuthorizationPolicy_RoleLabels) ProtoReflect added in v0.3.0

func (*AuthorizationPolicy_RoleLabels) Reset

func (x *AuthorizationPolicy_RoleLabels) Reset()

func (*AuthorizationPolicy_RoleLabels) String

Source Files

Jump to

Keyboard shortcuts

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