rpcpb

package
v0.0.0-...-c912a3c Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package rpcpb defines RPCs exposed by the auth service.

Index

Constants

View Source
const (
	Allowlists_ListAllowlists_FullMethodName = "/auth.service.Allowlists/ListAllowlists"
	Allowlists_GetAllowlist_FullMethodName   = "/auth.service.Allowlists/GetAllowlist"
)
View Source
const (
	Groups_ListGroups_FullMethodName       = "/auth.service.Groups/ListGroups"
	Groups_GetGroup_FullMethodName         = "/auth.service.Groups/GetGroup"
	Groups_CreateGroup_FullMethodName      = "/auth.service.Groups/CreateGroup"
	Groups_UpdateGroup_FullMethodName      = "/auth.service.Groups/UpdateGroup"
	Groups_DeleteGroup_FullMethodName      = "/auth.service.Groups/DeleteGroup"
	Groups_GetSubgraph_FullMethodName      = "/auth.service.Groups/GetSubgraph"
	Groups_GetExpandedGroup_FullMethodName = "/auth.service.Groups/GetExpandedGroup"
)
View Source
const (
	Accounts_GetSelf_FullMethodName = "/auth.service.Accounts/GetSelf"
)
View Source
const (
	AuthDB_GetSnapshot_FullMethodName = "/auth.service.AuthDB/GetSnapshot"
)
View Source
const (
	ChangeLogs_ListChangeLogs_FullMethodName = "/auth.service.ChangeLogs/ListChangeLogs"
)
View Source
const (
	Replicas_ListReplicas_FullMethodName = "/auth.service.Replicas/ListReplicas"
)

Variables

View Source
var (
	PrincipalKind_name = map[int32]string{
		0: "PRINCIPAL_KIND_UNSPECIFIED",
		1: "IDENTITY",
		2: "GROUP",
		3: "GLOB",
	}
	PrincipalKind_value = map[string]int32{
		"PRINCIPAL_KIND_UNSPECIFIED": 0,
		"IDENTITY":                   1,
		"GROUP":                      2,
		"GLOB":                       3,
	}
)

Enum value maps for PrincipalKind.

View Source
var (
	ReplicaPushStatus_name = map[int32]string{
		0: "PUSH_STATUS_UNSPECIFIED",
		1: "SUCCESS",
		2: "TRANSIENT_ERROR",
		3: "FATAL_ERROR",
	}
	ReplicaPushStatus_value = map[string]int32{
		"PUSH_STATUS_UNSPECIFIED": 0,
		"SUCCESS":                 1,
		"TRANSIENT_ERROR":         2,
		"FATAL_ERROR":             3,
	}
)

Enum value maps for ReplicaPushStatus.

View Source
var Accounts_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.service.Accounts",
	HandlerType: (*AccountsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSelf",
			Handler:    _Accounts_GetSelf_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/auth_service/api/rpcpb/accounts.proto",
}

Accounts_ServiceDesc is the grpc.ServiceDesc for Accounts service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Allowlists_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.service.Allowlists",
	HandlerType: (*AllowlistsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListAllowlists",
			Handler:    _Allowlists_ListAllowlists_Handler,
		},
		{
			MethodName: "GetAllowlist",
			Handler:    _Allowlists_GetAllowlist_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/auth_service/api/rpcpb/allowlists.proto",
}

Allowlists_ServiceDesc is the grpc.ServiceDesc for Allowlists service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var AuthDB_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.service.AuthDB",
	HandlerType: (*AuthDBServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GetSnapshot",
			Handler:    _AuthDB_GetSnapshot_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/auth_service/api/rpcpb/authdb.proto",
}

AuthDB_ServiceDesc is the grpc.ServiceDesc for AuthDB service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var ChangeLogs_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.service.ChangeLogs",
	HandlerType: (*ChangeLogsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListChangeLogs",
			Handler:    _ChangeLogs_ListChangeLogs_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/auth_service/api/rpcpb/changelogs.proto",
}

ChangeLogs_ServiceDesc is the grpc.ServiceDesc for ChangeLogs service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var File_go_chromium_org_luci_auth_service_api_rpcpb_accounts_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_auth_service_api_rpcpb_allowlists_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_auth_service_api_rpcpb_authdb_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_auth_service_api_rpcpb_changelogs_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_auth_service_api_rpcpb_groups_proto protoreflect.FileDescriptor
View Source
var File_go_chromium_org_luci_auth_service_api_rpcpb_replicas_proto protoreflect.FileDescriptor
View Source
var Groups_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.service.Groups",
	HandlerType: (*GroupsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListGroups",
			Handler:    _Groups_ListGroups_Handler,
		},
		{
			MethodName: "GetGroup",
			Handler:    _Groups_GetGroup_Handler,
		},
		{
			MethodName: "CreateGroup",
			Handler:    _Groups_CreateGroup_Handler,
		},
		{
			MethodName: "UpdateGroup",
			Handler:    _Groups_UpdateGroup_Handler,
		},
		{
			MethodName: "DeleteGroup",
			Handler:    _Groups_DeleteGroup_Handler,
		},
		{
			MethodName: "GetSubgraph",
			Handler:    _Groups_GetSubgraph_Handler,
		},
		{
			MethodName: "GetExpandedGroup",
			Handler:    _Groups_GetExpandedGroup_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/auth_service/api/rpcpb/groups.proto",
}

Groups_ServiceDesc is the grpc.ServiceDesc for Groups service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

View Source
var Replicas_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "auth.service.Replicas",
	HandlerType: (*ReplicasServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "ListReplicas",
			Handler:    _Replicas_ListReplicas_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "go.chromium.org/luci/auth_service/api/rpcpb/replicas.proto",
}

Replicas_ServiceDesc is the grpc.ServiceDesc for Replicas service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func FileDescriptorSet

func FileDescriptorSet() *descriptorpb.FileDescriptorSet

FileDescriptorSet returns a descriptor set for this proto package, which includes all defined services, and all transitive dependencies.

Will not return nil.

Do NOT modify the returned descriptor.

func RegisterAccountsServer

func RegisterAccountsServer(s grpc.ServiceRegistrar, srv AccountsServer)

func RegisterAllowlistsServer

func RegisterAllowlistsServer(s grpc.ServiceRegistrar, srv AllowlistsServer)

func RegisterAuthDBServer

func RegisterAuthDBServer(s grpc.ServiceRegistrar, srv AuthDBServer)

func RegisterChangeLogsServer

func RegisterChangeLogsServer(s grpc.ServiceRegistrar, srv ChangeLogsServer)

func RegisterGroupsServer

func RegisterGroupsServer(s grpc.ServiceRegistrar, srv GroupsServer)

func RegisterReplicasServer

func RegisterReplicasServer(s grpc.ServiceRegistrar, srv ReplicasServer)

Types

type AccountsClient

type AccountsClient interface {
	// GetSelf returns information about the caller based on passed
	// authentication tokens.
	//
	// Also returns the caller's IP address (as seen by the service). Useful when
	// debugging authentication issues.
	GetSelf(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*SelfInfo, error)
}

AccountsClient is the client API for Accounts service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Accounts service contains method to examine individual accounts.

func NewAccountsClient

func NewAccountsClient(cc grpc.ClientConnInterface) AccountsClient

type AccountsServer

type AccountsServer interface {
	// GetSelf returns information about the caller based on passed
	// authentication tokens.
	//
	// Also returns the caller's IP address (as seen by the service). Useful when
	// debugging authentication issues.
	GetSelf(context.Context, *emptypb.Empty) (*SelfInfo, error)
	// contains filtered or unexported methods
}

AccountsServer is the server API for Accounts service. All implementations must embed UnimplementedAccountsServer for forward compatibility.

Accounts service contains method to examine individual accounts.

type Allowlist

type Allowlist struct {
	Name        string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                            // e.g: "some-allowlist"
	Subnets     []string               `protobuf:"bytes,2,rep,name=subnets,proto3" json:"subnets,omitempty"`                      // e.g: ["127.0.0.1/24"]
	Description string                 `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`              // e.g: "This allowlist is for ..."
	CreatedTs   *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"` // e.g: "1972-01-01T10:00:20.021Z"
	CreatedBy   string                 `protobuf:"bytes,5,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // e.g: "user:test@example.com"
	// contains filtered or unexported fields
}

Allowlist defines the allowlist for a service using LUCI Auth Service.

func (*Allowlist) Descriptor deprecated

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

Deprecated: Use Allowlist.ProtoReflect.Descriptor instead.

func (*Allowlist) GetCreatedBy

func (x *Allowlist) GetCreatedBy() string

func (*Allowlist) GetCreatedTs

func (x *Allowlist) GetCreatedTs() *timestamppb.Timestamp

func (*Allowlist) GetDescription

func (x *Allowlist) GetDescription() string

func (*Allowlist) GetName

func (x *Allowlist) GetName() string

func (*Allowlist) GetSubnets

func (x *Allowlist) GetSubnets() []string

func (*Allowlist) ProtoMessage

func (*Allowlist) ProtoMessage()

func (*Allowlist) ProtoReflect

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

func (*Allowlist) Reset

func (x *Allowlist) Reset()

func (*Allowlist) String

func (x *Allowlist) String() string

type AllowlistsClient

type AllowlistsClient interface {
	// ListAllowlists returns all the allowlists currently stored in LUCI Auth
	// service datastore. The allowlists will be returned in alphabetical order
	// based on their ID.
	ListAllowlists(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListAllowlistsResponse, error)
	// GetAllowlist returns Allowlist information for a requested Allowlist.
	GetAllowlist(ctx context.Context, in *GetAllowlistRequest, opts ...grpc.CallOption) (*Allowlist, error)
}

AllowlistsClient is the client API for Allowlists service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Allowlists service contains methods to examine allowlists for services.

func NewAllowlistsClient

func NewAllowlistsClient(cc grpc.ClientConnInterface) AllowlistsClient

type AllowlistsServer

type AllowlistsServer interface {
	// ListAllowlists returns all the allowlists currently stored in LUCI Auth
	// service datastore. The allowlists will be returned in alphabetical order
	// based on their ID.
	ListAllowlists(context.Context, *emptypb.Empty) (*ListAllowlistsResponse, error)
	// GetAllowlist returns Allowlist information for a requested Allowlist.
	GetAllowlist(context.Context, *GetAllowlistRequest) (*Allowlist, error)
	// contains filtered or unexported methods
}

AllowlistsServer is the server API for Allowlists service. All implementations must embed UnimplementedAllowlistsServer for forward compatibility.

Allowlists service contains methods to examine allowlists for services.

type AuthDBChange

type AuthDBChange struct {

	// Fields common across all change types.
	ChangeType     string                 `protobuf:"bytes,1,opt,name=change_type,json=changeType,proto3" json:"change_type,omitempty"`
	Target         string                 `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	AuthDbRev      int64                  `protobuf:"varint,3,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	Who            string                 `protobuf:"bytes,4,opt,name=who,proto3" json:"who,omitempty"`
	When           *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=when,proto3" json:"when,omitempty"`
	Comment        string                 `protobuf:"bytes,6,opt,name=comment,proto3" json:"comment,omitempty"`
	AppVersion     string                 `protobuf:"bytes,7,opt,name=app_version,json=appVersion,proto3" json:"app_version,omitempty"`
	Description    string                 `protobuf:"bytes,8,opt,name=description,proto3" json:"description,omitempty"`
	OldDescription string                 `protobuf:"bytes,9,opt,name=old_description,json=oldDescription,proto3" json:"old_description,omitempty"`
	// Fields specific to AuthDBGroupChange.
	Owners    string   `protobuf:"bytes,10,opt,name=owners,proto3" json:"owners,omitempty"`
	OldOwners string   `protobuf:"bytes,11,opt,name=old_owners,json=oldOwners,proto3" json:"old_owners,omitempty"`
	Members   []string `protobuf:"bytes,12,rep,name=members,proto3" json:"members,omitempty"`
	Globs     []string `protobuf:"bytes,13,rep,name=globs,proto3" json:"globs,omitempty"`
	Nested    []string `protobuf:"bytes,14,rep,name=nested,proto3" json:"nested,omitempty"`
	// Fields specific to AuthDBIPAllowlistChange.
	Subnets []string `protobuf:"bytes,15,rep,name=subnets,proto3" json:"subnets,omitempty"`
	// Fields specific to AuthDBIPAllowlistAssignmentChange.
	Identity    string `protobuf:"bytes,16,opt,name=identity,proto3" json:"identity,omitempty"`
	IpAllowList string `protobuf:"bytes,17,opt,name=ip_allow_list,json=ipAllowList,proto3" json:"ip_allow_list,omitempty"`
	// Fields specific to AuthDBConfigChange.
	OauthClientId            string   `protobuf:"bytes,18,opt,name=oauth_client_id,json=oauthClientId,proto3" json:"oauth_client_id,omitempty"`
	OauthClientSecret        string   `protobuf:"bytes,19,opt,name=oauth_client_secret,json=oauthClientSecret,proto3" json:"oauth_client_secret,omitempty"`
	OauthAdditionalClientIds []string `` /* 138-byte string literal not displayed */
	TokenServerUrlOld        string   `protobuf:"bytes,21,opt,name=token_server_url_old,json=tokenServerUrlOld,proto3" json:"token_server_url_old,omitempty"`
	TokenServerUrlNew        string   `protobuf:"bytes,22,opt,name=token_server_url_new,json=tokenServerUrlNew,proto3" json:"token_server_url_new,omitempty"`
	SecurityConfigOld        string   `protobuf:"bytes,23,opt,name=security_config_old,json=securityConfigOld,proto3" json:"security_config_old,omitempty"`
	SecurityConfigNew        string   `protobuf:"bytes,24,opt,name=security_config_new,json=securityConfigNew,proto3" json:"security_config_new,omitempty"`
	// Fields specific to AuthRealmsGlobalsChange.
	PermissionsAdded   []string `protobuf:"bytes,25,rep,name=permissions_added,json=permissionsAdded,proto3" json:"permissions_added,omitempty"`
	PermissionsChanged []string `protobuf:"bytes,26,rep,name=permissions_changed,json=permissionsChanged,proto3" json:"permissions_changed,omitempty"`
	PermissionsRemoved []string `protobuf:"bytes,27,rep,name=permissions_removed,json=permissionsRemoved,proto3" json:"permissions_removed,omitempty"`
	// Fields specific to AuthProjectRealmsChange.
	ConfigRevOld string `protobuf:"bytes,28,opt,name=config_rev_old,json=configRevOld,proto3" json:"config_rev_old,omitempty"`
	ConfigRevNew string `protobuf:"bytes,29,opt,name=config_rev_new,json=configRevNew,proto3" json:"config_rev_new,omitempty"`
	PermsRevOld  string `protobuf:"bytes,30,opt,name=perms_rev_old,json=permsRevOld,proto3" json:"perms_rev_old,omitempty"`
	PermsRevNew  string `protobuf:"bytes,31,opt,name=perms_rev_new,json=permsRevNew,proto3" json:"perms_rev_new,omitempty"`
	// contains filtered or unexported fields
}

AuthDBChange refers to a change log entry.

func (*AuthDBChange) Descriptor deprecated

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

Deprecated: Use AuthDBChange.ProtoReflect.Descriptor instead.

func (*AuthDBChange) GetAppVersion

func (x *AuthDBChange) GetAppVersion() string

func (*AuthDBChange) GetAuthDbRev

func (x *AuthDBChange) GetAuthDbRev() int64

func (*AuthDBChange) GetChangeType

func (x *AuthDBChange) GetChangeType() string

func (*AuthDBChange) GetComment

func (x *AuthDBChange) GetComment() string

func (*AuthDBChange) GetConfigRevNew

func (x *AuthDBChange) GetConfigRevNew() string

func (*AuthDBChange) GetConfigRevOld

func (x *AuthDBChange) GetConfigRevOld() string

func (*AuthDBChange) GetDescription

func (x *AuthDBChange) GetDescription() string

func (*AuthDBChange) GetGlobs

func (x *AuthDBChange) GetGlobs() []string

func (*AuthDBChange) GetIdentity

func (x *AuthDBChange) GetIdentity() string

func (*AuthDBChange) GetIpAllowList

func (x *AuthDBChange) GetIpAllowList() string

func (*AuthDBChange) GetMembers

func (x *AuthDBChange) GetMembers() []string

func (*AuthDBChange) GetNested

func (x *AuthDBChange) GetNested() []string

func (*AuthDBChange) GetOauthAdditionalClientIds

func (x *AuthDBChange) GetOauthAdditionalClientIds() []string

func (*AuthDBChange) GetOauthClientId

func (x *AuthDBChange) GetOauthClientId() string

func (*AuthDBChange) GetOauthClientSecret

func (x *AuthDBChange) GetOauthClientSecret() string

func (*AuthDBChange) GetOldDescription

func (x *AuthDBChange) GetOldDescription() string

func (*AuthDBChange) GetOldOwners

func (x *AuthDBChange) GetOldOwners() string

func (*AuthDBChange) GetOwners

func (x *AuthDBChange) GetOwners() string

func (*AuthDBChange) GetPermissionsAdded

func (x *AuthDBChange) GetPermissionsAdded() []string

func (*AuthDBChange) GetPermissionsChanged

func (x *AuthDBChange) GetPermissionsChanged() []string

func (*AuthDBChange) GetPermissionsRemoved

func (x *AuthDBChange) GetPermissionsRemoved() []string

func (*AuthDBChange) GetPermsRevNew

func (x *AuthDBChange) GetPermsRevNew() string

func (*AuthDBChange) GetPermsRevOld

func (x *AuthDBChange) GetPermsRevOld() string

func (*AuthDBChange) GetSecurityConfigNew

func (x *AuthDBChange) GetSecurityConfigNew() string

func (*AuthDBChange) GetSecurityConfigOld

func (x *AuthDBChange) GetSecurityConfigOld() string

func (*AuthDBChange) GetSubnets

func (x *AuthDBChange) GetSubnets() []string

func (*AuthDBChange) GetTarget

func (x *AuthDBChange) GetTarget() string

func (*AuthDBChange) GetTokenServerUrlNew

func (x *AuthDBChange) GetTokenServerUrlNew() string

func (*AuthDBChange) GetTokenServerUrlOld

func (x *AuthDBChange) GetTokenServerUrlOld() string

func (*AuthDBChange) GetWhen

func (x *AuthDBChange) GetWhen() *timestamppb.Timestamp

func (*AuthDBChange) GetWho

func (x *AuthDBChange) GetWho() string

func (*AuthDBChange) ProtoMessage

func (*AuthDBChange) ProtoMessage()

func (*AuthDBChange) ProtoReflect

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

func (*AuthDBChange) Reset

func (x *AuthDBChange) Reset()

func (*AuthDBChange) String

func (x *AuthDBChange) String() string

type AuthDBClient

type AuthDBClient interface {
	// GetSnapshot serves the deflated AuthDB proto
	// message with snapshot of all groups.
	GetSnapshot(ctx context.Context, in *GetSnapshotRequest, opts ...grpc.CallOption) (*Snapshot, error)
}

AuthDBClient is the client API for AuthDB service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

AuthDB contains methods to work with AuthDB.

func NewAuthDBClient

func NewAuthDBClient(cc grpc.ClientConnInterface) AuthDBClient

type AuthDBServer

type AuthDBServer interface {
	// GetSnapshot serves the deflated AuthDB proto
	// message with snapshot of all groups.
	GetSnapshot(context.Context, *GetSnapshotRequest) (*Snapshot, error)
	// contains filtered or unexported methods
}

AuthDBServer is the server API for AuthDB service. All implementations must embed UnimplementedAuthDBServer for forward compatibility.

AuthDB contains methods to work with AuthDB.

type AuthGroup

type AuthGroup struct {
	Name        string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`                            // e.g: "auth-service-access"
	Members     []string               `protobuf:"bytes,2,rep,name=members,proto3" json:"members,omitempty"`                      // e.g: ["user:t@example.com"]
	Globs       []string               `protobuf:"bytes,3,rep,name=globs,proto3" json:"globs,omitempty"`                          // e.g: ["user:*@example.com"
	Nested      []string               `protobuf:"bytes,4,rep,name=nested,proto3" json:"nested,omitempty"`                        // e.g: ["another-group-0", "another-group-1"]
	Description string                 `protobuf:"bytes,5,opt,name=description,proto3" json:"description,omitempty"`              // e.g: "This group is used for ..."
	Owners      string                 `protobuf:"bytes,6,opt,name=owners,proto3" json:"owners,omitempty"`                        // e.g: "administrators"
	CreatedTs   *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"` // e.g: "1972-01-01T10:00:20.021Z"
	CreatedBy   string                 `protobuf:"bytes,8,opt,name=created_by,json=createdBy,proto3" json:"created_by,omitempty"` // e.g: "user:test@example.com"
	// Output only. Whether the caller can modify this group.
	CallerCanModify bool `protobuf:"varint,9,opt,name=caller_can_modify,json=callerCanModify,proto3" json:"caller_can_modify,omitempty"`
	// Output only. Whether the caller can view member emails.
	CallerCanViewMembers bool `` /* 127-byte string literal not displayed */
	// Number of member emails redacted, if any.
	NumRedacted int32 `protobuf:"varint,11,opt,name=num_redacted,json=numRedacted,proto3" json:"num_redacted,omitempty"`
	// An opaque string that indicates the version of the group being edited.
	// This will be sent to the client in responses, and should be sent back
	// to the server for update and delete requests in order to protect against
	// concurrent modification errors. See https://google.aip.dev/154.
	// Technically this is a "weak etag", meaning that if two AuthGroups have the
	// same etag, they are not guaranteed to be byte-for-byte identical. This is
	// because under the hood we generate it based on the last-modified time
	// (though this should not be relied on as it may change in future).
	Etag string `protobuf:"bytes,99,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

AuthGroup defines an individual group.

func (*AuthGroup) Descriptor deprecated

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

Deprecated: Use AuthGroup.ProtoReflect.Descriptor instead.

func (*AuthGroup) GetCallerCanModify

func (x *AuthGroup) GetCallerCanModify() bool

func (*AuthGroup) GetCallerCanViewMembers

func (x *AuthGroup) GetCallerCanViewMembers() bool

func (*AuthGroup) GetCreatedBy

func (x *AuthGroup) GetCreatedBy() string

func (*AuthGroup) GetCreatedTs

func (x *AuthGroup) GetCreatedTs() *timestamppb.Timestamp

func (*AuthGroup) GetDescription

func (x *AuthGroup) GetDescription() string

func (*AuthGroup) GetEtag

func (x *AuthGroup) GetEtag() string

func (*AuthGroup) GetGlobs

func (x *AuthGroup) GetGlobs() []string

func (*AuthGroup) GetMembers

func (x *AuthGroup) GetMembers() []string

func (*AuthGroup) GetName

func (x *AuthGroup) GetName() string

func (*AuthGroup) GetNested

func (x *AuthGroup) GetNested() []string

func (*AuthGroup) GetNumRedacted

func (x *AuthGroup) GetNumRedacted() int32

func (*AuthGroup) GetOwners

func (x *AuthGroup) GetOwners() string

func (*AuthGroup) ProtoMessage

func (*AuthGroup) ProtoMessage()

func (*AuthGroup) ProtoReflect

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

func (*AuthGroup) Reset

func (x *AuthGroup) Reset()

func (*AuthGroup) String

func (x *AuthGroup) String() string

type ChangeLogsClient

type ChangeLogsClient interface {
	// ListChangeLogs returns all the change logs in Datastore.
	ListChangeLogs(ctx context.Context, in *ListChangeLogsRequest, opts ...grpc.CallOption) (*ListChangeLogsResponse, error)
}

ChangeLogsClient is the client API for ChangeLogs service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

ChangeLogs service contains methods to examine change logs.

func NewChangeLogsClient

func NewChangeLogsClient(cc grpc.ClientConnInterface) ChangeLogsClient

type ChangeLogsServer

type ChangeLogsServer interface {
	// ListChangeLogs returns all the change logs in Datastore.
	ListChangeLogs(context.Context, *ListChangeLogsRequest) (*ListChangeLogsResponse, error)
	// contains filtered or unexported methods
}

ChangeLogsServer is the server API for ChangeLogs service. All implementations must embed UnimplementedChangeLogsServer for forward compatibility.

ChangeLogs service contains methods to examine change logs.

type CreateGroupRequest

type CreateGroupRequest struct {

	// Details of the group to create. Not all fields will be written to the new
	// group: if the request specifies fields that should be automatically
	// generated (e.g. created/modified timestamps), these will be ignored.
	Group *AuthGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// contains filtered or unexported fields
}

CreateGroupRequest requests the creation of a new group.

func (*CreateGroupRequest) Descriptor deprecated

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

Deprecated: Use CreateGroupRequest.ProtoReflect.Descriptor instead.

func (*CreateGroupRequest) GetGroup

func (x *CreateGroupRequest) GetGroup() *AuthGroup

func (*CreateGroupRequest) ProtoMessage

func (*CreateGroupRequest) ProtoMessage()

func (*CreateGroupRequest) ProtoReflect

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

func (*CreateGroupRequest) Reset

func (x *CreateGroupRequest) Reset()

func (*CreateGroupRequest) String

func (x *CreateGroupRequest) String() string

type DeleteGroupRequest

type DeleteGroupRequest struct {

	// Name of the group to delete.
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	// The current etag of the group.
	// If an etag is provided and does not match the current etag of the group,
	// deletion will be blocked and an ABORTED error will be returned.
	Etag string `protobuf:"bytes,2,opt,name=etag,proto3" json:"etag,omitempty"`
	// contains filtered or unexported fields
}

DeleteGroupRequest requests the deletion of a group.

func (*DeleteGroupRequest) Descriptor deprecated

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

Deprecated: Use DeleteGroupRequest.ProtoReflect.Descriptor instead.

func (*DeleteGroupRequest) GetEtag

func (x *DeleteGroupRequest) GetEtag() string

func (*DeleteGroupRequest) GetName

func (x *DeleteGroupRequest) GetName() string

func (*DeleteGroupRequest) ProtoMessage

func (*DeleteGroupRequest) ProtoMessage()

func (*DeleteGroupRequest) ProtoReflect

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

func (*DeleteGroupRequest) Reset

func (x *DeleteGroupRequest) Reset()

func (*DeleteGroupRequest) String

func (x *DeleteGroupRequest) String() string

type GetAllowlistRequest

type GetAllowlistRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g: "some-allowlist"
	// contains filtered or unexported fields
}

GetAllowlistRequest is to specify the allowlist being requested.

func (*GetAllowlistRequest) Descriptor deprecated

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

Deprecated: Use GetAllowlistRequest.ProtoReflect.Descriptor instead.

func (*GetAllowlistRequest) GetName

func (x *GetAllowlistRequest) GetName() string

func (*GetAllowlistRequest) ProtoMessage

func (*GetAllowlistRequest) ProtoMessage()

func (*GetAllowlistRequest) ProtoReflect

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

func (*GetAllowlistRequest) Reset

func (x *GetAllowlistRequest) Reset()

func (*GetAllowlistRequest) String

func (x *GetAllowlistRequest) String() string

type GetGroupRequest

type GetGroupRequest struct {
	Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // e.g: "administrators"
	// contains filtered or unexported fields
}

GetGroupRequest is to specify an individual group.

func (*GetGroupRequest) Descriptor deprecated

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

Deprecated: Use GetGroupRequest.ProtoReflect.Descriptor instead.

func (*GetGroupRequest) GetName

func (x *GetGroupRequest) GetName() string

func (*GetGroupRequest) ProtoMessage

func (*GetGroupRequest) ProtoMessage()

func (*GetGroupRequest) ProtoReflect

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

func (*GetGroupRequest) Reset

func (x *GetGroupRequest) Reset()

func (*GetGroupRequest) String

func (x *GetGroupRequest) String() string

type GetSnapshotRequest

type GetSnapshotRequest struct {

	// Version of the snapshot to get or 0 to get the latest one.
	// Not all versions may be available (i.e. there may be gaps in revision
	// numbers).
	Revision int64 `protobuf:"varint,1,opt,name=revision,proto3" json:"revision,omitempty"`
	// If true response will not return actual snapshot, just its SHA256
	// hash, revision number and timestamp.
	SkipBody bool `protobuf:"varint,2,opt,name=skip_body,json=skipBody,proto3" json:"skip_body,omitempty"`
	// contains filtered or unexported fields
}

GetSnapshotRequest is passed to GetSnapshot rpc.

func (*GetSnapshotRequest) Descriptor deprecated

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

Deprecated: Use GetSnapshotRequest.ProtoReflect.Descriptor instead.

func (*GetSnapshotRequest) GetRevision

func (x *GetSnapshotRequest) GetRevision() int64

func (*GetSnapshotRequest) GetSkipBody

func (x *GetSnapshotRequest) GetSkipBody() bool

func (*GetSnapshotRequest) ProtoMessage

func (*GetSnapshotRequest) ProtoMessage()

func (*GetSnapshotRequest) ProtoReflect

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

func (*GetSnapshotRequest) Reset

func (x *GetSnapshotRequest) Reset()

func (*GetSnapshotRequest) String

func (x *GetSnapshotRequest) String() string

type GetSubgraphRequest

type GetSubgraphRequest struct {
	Principal *Principal `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
	// contains filtered or unexported fields
}

GetSubgraphRequest contains the Principal that is the basis of the search for inclusion and is the root of the output subgraph.

func (*GetSubgraphRequest) Descriptor deprecated

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

Deprecated: Use GetSubgraphRequest.ProtoReflect.Descriptor instead.

func (*GetSubgraphRequest) GetPrincipal

func (x *GetSubgraphRequest) GetPrincipal() *Principal

func (*GetSubgraphRequest) ProtoMessage

func (*GetSubgraphRequest) ProtoMessage()

func (*GetSubgraphRequest) ProtoReflect

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

func (*GetSubgraphRequest) Reset

func (x *GetSubgraphRequest) Reset()

func (*GetSubgraphRequest) String

func (x *GetSubgraphRequest) String() string

type GroupsClient

type GroupsClient interface {
	// ListGroups returns all the groups currently stored in LUCI Auth service
	// datastore. The groups will be returned in alphabetical order based on their
	// ID.
	ListGroups(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListGroupsResponse, error)
	// GetGroup returns information about an individual group, given the name.
	GetGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*AuthGroup, error)
	// CreateGroup creates a new group.
	CreateGroup(ctx context.Context, in *CreateGroupRequest, opts ...grpc.CallOption) (*AuthGroup, error)
	// UpdateGroup updates an existing group.
	UpdateGroup(ctx context.Context, in *UpdateGroupRequest, opts ...grpc.CallOption) (*AuthGroup, error)
	// DeleteGroup deletes a group.
	DeleteGroup(ctx context.Context, in *DeleteGroupRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
	// GetSubgraph returns a Subgraph without information about groups that
	// include a principal (perhaps indirectly or via globs). Here a principal is
	// either an identity, a group or a glob (see PrincipalKind enum).
	GetSubgraph(ctx context.Context, in *GetSubgraphRequest, opts ...grpc.CallOption) (*Subgraph, error)
	// GetExpandedGroup returns the requested AuthGroup, with subgroups fully
	// expanded, i.e.
	// - `members` will include direct and indirect members;
	// - `globs` will include direct and indirect globs; and
	// - `nested` will include direct and indirect subgroups.
	GetExpandedGroup(ctx context.Context, in *GetGroupRequest, opts ...grpc.CallOption) (*AuthGroup, error)
}

GroupsClient is the client API for Groups service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

Groups service contains methods to examine groups.

func NewGroupsClient

func NewGroupsClient(cc grpc.ClientConnInterface) GroupsClient

type GroupsServer

type GroupsServer interface {
	// ListGroups returns all the groups currently stored in LUCI Auth service
	// datastore. The groups will be returned in alphabetical order based on their
	// ID.
	ListGroups(context.Context, *emptypb.Empty) (*ListGroupsResponse, error)
	// GetGroup returns information about an individual group, given the name.
	GetGroup(context.Context, *GetGroupRequest) (*AuthGroup, error)
	// CreateGroup creates a new group.
	CreateGroup(context.Context, *CreateGroupRequest) (*AuthGroup, error)
	// UpdateGroup updates an existing group.
	UpdateGroup(context.Context, *UpdateGroupRequest) (*AuthGroup, error)
	// DeleteGroup deletes a group.
	DeleteGroup(context.Context, *DeleteGroupRequest) (*emptypb.Empty, error)
	// GetSubgraph returns a Subgraph without information about groups that
	// include a principal (perhaps indirectly or via globs). Here a principal is
	// either an identity, a group or a glob (see PrincipalKind enum).
	GetSubgraph(context.Context, *GetSubgraphRequest) (*Subgraph, error)
	// GetExpandedGroup returns the requested AuthGroup, with subgroups fully
	// expanded, i.e.
	// - `members` will include direct and indirect members;
	// - `globs` will include direct and indirect globs; and
	// - `nested` will include direct and indirect subgroups.
	GetExpandedGroup(context.Context, *GetGroupRequest) (*AuthGroup, error)
	// contains filtered or unexported methods
}

GroupsServer is the server API for Groups service. All implementations must embed UnimplementedGroupsServer for forward compatibility.

Groups service contains methods to examine groups.

type ListAllowlistsResponse

type ListAllowlistsResponse struct {

	// List of all allowlists.
	Allowlists []*Allowlist `protobuf:"bytes,1,rep,name=allowlists,proto3" json:"allowlists,omitempty"`
	// The URL to view the IP Allowlists config file.
	ConfigViewUrl string `protobuf:"bytes,2,opt,name=config_view_url,json=configViewUrl,proto3" json:"config_view_url,omitempty"`
	// The revision of the IP allowlists config corresponding to the returned IP
	// allowlists.
	ConfigRevision string `protobuf:"bytes,3,opt,name=config_revision,json=configRevision,proto3" json:"config_revision,omitempty"`
	// contains filtered or unexported fields
}

ListAllowlistsResponse is all the allowlists present in LUCI Auth Service.

func (*ListAllowlistsResponse) Descriptor deprecated

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

Deprecated: Use ListAllowlistsResponse.ProtoReflect.Descriptor instead.

func (*ListAllowlistsResponse) GetAllowlists

func (x *ListAllowlistsResponse) GetAllowlists() []*Allowlist

func (*ListAllowlistsResponse) GetConfigRevision

func (x *ListAllowlistsResponse) GetConfigRevision() string

func (*ListAllowlistsResponse) GetConfigViewUrl

func (x *ListAllowlistsResponse) GetConfigViewUrl() string

func (*ListAllowlistsResponse) ProtoMessage

func (*ListAllowlistsResponse) ProtoMessage()

func (*ListAllowlistsResponse) ProtoReflect

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

func (*ListAllowlistsResponse) Reset

func (x *ListAllowlistsResponse) Reset()

func (*ListAllowlistsResponse) String

func (x *ListAllowlistsResponse) String() string

type ListChangeLogsRequest

type ListChangeLogsRequest struct {

	// AuthDB revision that the change log was made.
	AuthDbRev int64 `protobuf:"varint,1,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	// Entity that was changed in the change log.
	Target string `protobuf:"bytes,2,opt,name=target,proto3" json:"target,omitempty"`
	// The value of next_page_token received in a ListChangeLogsResponse. Used
	// to get the next page of change logs. If empty, gets the first page.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// The maximum number of change logs to include in the response.
	PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// contains filtered or unexported fields
}

ListChangeLogsRequest is a request to get a list of change logs, which can be filtered by auth_db_rev and/or target.

func (*ListChangeLogsRequest) Descriptor deprecated

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

Deprecated: Use ListChangeLogsRequest.ProtoReflect.Descriptor instead.

func (*ListChangeLogsRequest) GetAuthDbRev

func (x *ListChangeLogsRequest) GetAuthDbRev() int64

func (*ListChangeLogsRequest) GetPageSize

func (x *ListChangeLogsRequest) GetPageSize() int32

func (*ListChangeLogsRequest) GetPageToken

func (x *ListChangeLogsRequest) GetPageToken() string

func (*ListChangeLogsRequest) GetTarget

func (x *ListChangeLogsRequest) GetTarget() string

func (*ListChangeLogsRequest) ProtoMessage

func (*ListChangeLogsRequest) ProtoMessage()

func (*ListChangeLogsRequest) ProtoReflect

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

func (*ListChangeLogsRequest) Reset

func (x *ListChangeLogsRequest) Reset()

func (*ListChangeLogsRequest) String

func (x *ListChangeLogsRequest) String() string

type ListChangeLogsResponse

type ListChangeLogsResponse struct {

	// A list of change logs.
	Changes []*AuthDBChange `protobuf:"bytes,1,rep,name=changes,proto3" json:"changes,omitempty"`
	// The value to use as the page_token in a ListChangeLogsRequest to get the
	// next page of change logs. If empty, there are no more change logs.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

ListChangeLogsResponse contains a list of change logs that matched the query.

func (*ListChangeLogsResponse) Descriptor deprecated

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

Deprecated: Use ListChangeLogsResponse.ProtoReflect.Descriptor instead.

func (*ListChangeLogsResponse) GetChanges

func (x *ListChangeLogsResponse) GetChanges() []*AuthDBChange

func (*ListChangeLogsResponse) GetNextPageToken

func (x *ListChangeLogsResponse) GetNextPageToken() string

func (*ListChangeLogsResponse) ProtoMessage

func (*ListChangeLogsResponse) ProtoMessage()

func (*ListChangeLogsResponse) ProtoReflect

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

func (*ListChangeLogsResponse) Reset

func (x *ListChangeLogsResponse) Reset()

func (*ListChangeLogsResponse) String

func (x *ListChangeLogsResponse) String() string

type ListGroupsResponse

type ListGroupsResponse struct {

	// List of all groups. In order to keep the response lightweight, each
	// AuthGroup will contain only metadata, i.e. the membership list fields will
	// be left empty.
	Groups []*AuthGroup `protobuf:"bytes,1,rep,name=groups,proto3" json:"groups,omitempty"`
	// contains filtered or unexported fields
}

ListGroupsResponse is all the groups listed in LUCI Auth Service.

func (*ListGroupsResponse) Descriptor deprecated

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

Deprecated: Use ListGroupsResponse.ProtoReflect.Descriptor instead.

func (*ListGroupsResponse) GetGroups

func (x *ListGroupsResponse) GetGroups() []*AuthGroup

func (*ListGroupsResponse) ProtoMessage

func (*ListGroupsResponse) ProtoMessage()

func (*ListGroupsResponse) ProtoReflect

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

func (*ListGroupsResponse) Reset

func (x *ListGroupsResponse) Reset()

func (*ListGroupsResponse) String

func (x *ListGroupsResponse) String() string

type ListReplicasResponse

type ListReplicasResponse struct {

	// State of Auth Service's latest AuthDB revision.
	PrimaryRevision *protocol.AuthDBRevision `protobuf:"bytes,1,opt,name=primary_revision,json=primaryRevision,proto3" json:"primary_revision,omitempty"`
	// Value of components.auth.version.__version__ used by primary.
	AuthCodeVersion string `protobuf:"bytes,2,opt,name=auth_code_version,json=authCodeVersion,proto3" json:"auth_code_version,omitempty"`
	// All replica services' states that have Auth Service configured as their
	// primary service from which to receive AuthDB replication calls.
	Replicas []*ReplicaState `protobuf:"bytes,3,rep,name=replicas,proto3" json:"replicas,omitempty"`
	// When the ListReplicas request was processed, according to Auth Service's
	// clock.
	ProcessedAt *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=processed_at,json=processedAt,proto3" json:"processed_at,omitempty"`
	// contains filtered or unexported fields
}

func (*ListReplicasResponse) Descriptor deprecated

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

Deprecated: Use ListReplicasResponse.ProtoReflect.Descriptor instead.

func (*ListReplicasResponse) GetAuthCodeVersion

func (x *ListReplicasResponse) GetAuthCodeVersion() string

func (*ListReplicasResponse) GetPrimaryRevision

func (x *ListReplicasResponse) GetPrimaryRevision() *protocol.AuthDBRevision

func (*ListReplicasResponse) GetProcessedAt

func (x *ListReplicasResponse) GetProcessedAt() *timestamppb.Timestamp

func (*ListReplicasResponse) GetReplicas

func (x *ListReplicasResponse) GetReplicas() []*ReplicaState

func (*ListReplicasResponse) ProtoMessage

func (*ListReplicasResponse) ProtoMessage()

func (*ListReplicasResponse) ProtoReflect

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

func (*ListReplicasResponse) Reset

func (x *ListReplicasResponse) Reset()

func (*ListReplicasResponse) String

func (x *ListReplicasResponse) String() string

type Node

type Node struct {

	// The principal represented by this node.
	Principal *Principal `protobuf:"bytes,1,opt,name=principal,proto3" json:"principal,omitempty"`
	// Nodes that directly include this principal.
	//
	// Each item is an index of a Node in Subgraph's `nodes` list.
	IncludedBy []int32 `protobuf:"varint,2,rep,packed,name=included_by,json=includedBy,proto3" json:"included_by,omitempty"`
	// contains filtered or unexported fields
}

Each Node is a representation of a Principal. Each subgraph will only contain one Node per principal; in other words, a principal uniquely identifies a Node.

func (*Node) Descriptor deprecated

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

Deprecated: Use Node.ProtoReflect.Descriptor instead.

func (*Node) GetIncludedBy

func (x *Node) GetIncludedBy() []int32

func (*Node) GetPrincipal

func (x *Node) GetPrincipal() *Principal

func (*Node) ProtoMessage

func (*Node) ProtoMessage()

func (*Node) ProtoReflect

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

func (*Node) Reset

func (x *Node) Reset()

func (*Node) String

func (x *Node) String() string

type Principal

type Principal struct {
	Kind PrincipalKind `protobuf:"varint,1,opt,name=kind,proto3,enum=auth.service.PrincipalKind" json:"kind,omitempty"` // e.g. IDENTITY, GROUP, GLOB
	Name string        `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`                                  // e.g. "user*@example.com", "some-group", "user:m0@example.com"
	// contains filtered or unexported fields
}

Principal is an entity that can be found in the Subgraph. A Principal can represent a group, identity, or glob. See PrincipalKind for clarification on how each Principal kind is represented.

func (*Principal) Descriptor deprecated

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

Deprecated: Use Principal.ProtoReflect.Descriptor instead.

func (*Principal) GetKind

func (x *Principal) GetKind() PrincipalKind

func (*Principal) GetName

func (x *Principal) GetName() string

func (*Principal) ProtoMessage

func (*Principal) ProtoMessage()

func (*Principal) ProtoReflect

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

func (*Principal) Reset

func (x *Principal) Reset()

func (*Principal) String

func (x *Principal) String() string

type PrincipalKind

type PrincipalKind int32

PrincipalKind denotes the type of principal of a specific entity.

const (
	PrincipalKind_PRINCIPAL_KIND_UNSPECIFIED PrincipalKind = 0
	// A single individual identity, e.g. "user:someone@example.com".
	PrincipalKind_IDENTITY PrincipalKind = 1
	// A group name, e.g. "some-group".
	PrincipalKind_GROUP PrincipalKind = 2
	// An identity glob, e.g. "user*@example.com".
	PrincipalKind_GLOB PrincipalKind = 3
)

func (PrincipalKind) Descriptor

func (PrincipalKind) Enum

func (x PrincipalKind) Enum() *PrincipalKind

func (PrincipalKind) EnumDescriptor deprecated

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

Deprecated: Use PrincipalKind.Descriptor instead.

func (PrincipalKind) Number

func (PrincipalKind) String

func (x PrincipalKind) String() string

func (PrincipalKind) Type

type ReplicaPushStatus

type ReplicaPushStatus int32

The status of a push attempt to a replica.

const (
	ReplicaPushStatus_PUSH_STATUS_UNSPECIFIED ReplicaPushStatus = 0
	ReplicaPushStatus_SUCCESS                 ReplicaPushStatus = 1
	ReplicaPushStatus_TRANSIENT_ERROR         ReplicaPushStatus = 2
	ReplicaPushStatus_FATAL_ERROR             ReplicaPushStatus = 3
)

func (ReplicaPushStatus) Descriptor

func (ReplicaPushStatus) Enum

func (ReplicaPushStatus) EnumDescriptor deprecated

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

Deprecated: Use ReplicaPushStatus.Descriptor instead.

func (ReplicaPushStatus) Number

func (ReplicaPushStatus) String

func (x ReplicaPushStatus) String() string

func (ReplicaPushStatus) Type

type ReplicaState

type ReplicaState struct {

	// The App ID of the replica.
	AppId string `protobuf:"bytes,1,opt,name=app_id,json=appId,proto3" json:"app_id,omitempty"`
	// Base URL of the replica host which can receive AuthDB push updates, e.g.
	// "https://luci-config-dev.appspot.com"
	BaseUrl string `protobuf:"bytes,2,opt,name=base_url,json=baseUrl,proto3" json:"base_url,omitempty"`
	// The replica's current AuthDB revision.
	AuthDbRev int64 `protobuf:"varint,3,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	// Timestamp of when the replica's current AuthDB revision was created (by
	// the primary service's clock).
	RevModified *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=rev_modified,json=revModified,proto3" json:"rev_modified,omitempty"`
	// Value of components.auth.version.__version__ used by the replica.
	AuthCodeVersion string `protobuf:"bytes,5,opt,name=auth_code_version,json=authCodeVersion,proto3" json:"auth_code_version,omitempty"`
	// Timestamp of when the last push attempt started.
	PushStarted *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=push_started,json=pushStarted,proto3" json:"push_started,omitempty"`
	// Timestamp of when the last push attempt finished (regardless of status).
	PushFinished *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=push_finished,json=pushFinished,proto3" json:"push_finished,omitempty"`
	// Status of the last push attempt.
	PushStatus ReplicaPushStatus `` /* 128-byte string literal not displayed */
	// Error message of the last push attempt. If the last push attempt was
	// successful, this will be an empty string.
	PushError string `protobuf:"bytes,9,opt,name=push_error,json=pushError,proto3" json:"push_error,omitempty"`
	// contains filtered or unexported fields
}

func (*ReplicaState) Descriptor deprecated

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

Deprecated: Use ReplicaState.ProtoReflect.Descriptor instead.

func (*ReplicaState) GetAppId

func (x *ReplicaState) GetAppId() string

func (*ReplicaState) GetAuthCodeVersion

func (x *ReplicaState) GetAuthCodeVersion() string

func (*ReplicaState) GetAuthDbRev

func (x *ReplicaState) GetAuthDbRev() int64

func (*ReplicaState) GetBaseUrl

func (x *ReplicaState) GetBaseUrl() string

func (*ReplicaState) GetPushError

func (x *ReplicaState) GetPushError() string

func (*ReplicaState) GetPushFinished

func (x *ReplicaState) GetPushFinished() *timestamppb.Timestamp

func (*ReplicaState) GetPushStarted

func (x *ReplicaState) GetPushStarted() *timestamppb.Timestamp

func (*ReplicaState) GetPushStatus

func (x *ReplicaState) GetPushStatus() ReplicaPushStatus

func (*ReplicaState) GetRevModified

func (x *ReplicaState) GetRevModified() *timestamppb.Timestamp

func (*ReplicaState) ProtoMessage

func (*ReplicaState) ProtoMessage()

func (*ReplicaState) ProtoReflect

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

func (*ReplicaState) Reset

func (x *ReplicaState) Reset()

func (*ReplicaState) String

func (x *ReplicaState) String() string

type ReplicasClient

type ReplicasClient interface {
	// ListReplicas lists the replicas that have been linked with Auth Service
	// as their primary AuthDB service.
	ListReplicas(ctx context.Context, in *emptypb.Empty, opts ...grpc.CallOption) (*ListReplicasResponse, error)
}

ReplicasClient is the client API for Replicas service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.

func NewReplicasClient

func NewReplicasClient(cc grpc.ClientConnInterface) ReplicasClient

type ReplicasServer

type ReplicasServer interface {
	// ListReplicas lists the replicas that have been linked with Auth Service
	// as their primary AuthDB service.
	ListReplicas(context.Context, *emptypb.Empty) (*ListReplicasResponse, error)
	// contains filtered or unexported methods
}

ReplicasServer is the server API for Replicas service. All implementations must embed UnimplementedReplicasServer for forward compatibility.

type SelfInfo

type SelfInfo struct {
	Identity string `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // e.g. "user:someone@example.com"
	Ip       string `protobuf:"bytes,2,opt,name=ip,proto3" json:"ip,omitempty"`             // e.g. "192.168.0.1"
	// contains filtered or unexported fields
}

SelfInfo is information about the caller.

func (*SelfInfo) Descriptor deprecated

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

Deprecated: Use SelfInfo.ProtoReflect.Descriptor instead.

func (*SelfInfo) GetIdentity

func (x *SelfInfo) GetIdentity() string

func (*SelfInfo) GetIp

func (x *SelfInfo) GetIp() string

func (*SelfInfo) ProtoMessage

func (*SelfInfo) ProtoMessage()

func (*SelfInfo) ProtoReflect

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

func (*SelfInfo) Reset

func (x *SelfInfo) Reset()

func (*SelfInfo) String

func (x *SelfInfo) String() string

type Snapshot

type Snapshot struct {

	// Revision number of this Snapshot.
	AuthDbRev int64 `protobuf:"varint,1,opt,name=auth_db_rev,json=authDbRev,proto3" json:"auth_db_rev,omitempty"`
	// SHA256 hash for this Snapshot.
	AuthDbSha256 string `protobuf:"bytes,2,opt,name=auth_db_sha256,json=authDbSha256,proto3" json:"auth_db_sha256,omitempty"`
	// Deflated AuthDB proto message, omitted if skip_body is true.
	AuthDbDeflated []byte `protobuf:"bytes,3,opt,name=auth_db_deflated,json=authDbDeflated,proto3" json:"auth_db_deflated,omitempty"`
	// Time that this Snapshot was created.
	CreatedTs *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=created_ts,json=createdTs,proto3" json:"created_ts,omitempty"`
	// contains filtered or unexported fields
}

Snapshot contains information about a specific AuthDB revision. The revision number is used to identify this snapshot.

func (*Snapshot) Descriptor deprecated

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

Deprecated: Use Snapshot.ProtoReflect.Descriptor instead.

func (*Snapshot) GetAuthDbDeflated

func (x *Snapshot) GetAuthDbDeflated() []byte

func (*Snapshot) GetAuthDbRev

func (x *Snapshot) GetAuthDbRev() int64

func (*Snapshot) GetAuthDbSha256

func (x *Snapshot) GetAuthDbSha256() string

func (*Snapshot) GetCreatedTs

func (x *Snapshot) GetCreatedTs() *timestamppb.Timestamp

func (*Snapshot) ProtoMessage

func (*Snapshot) ProtoMessage()

func (*Snapshot) ProtoReflect

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

func (*Snapshot) Reset

func (x *Snapshot) Reset()

func (*Snapshot) String

func (x *Snapshot) String() string

type Subgraph

type Subgraph struct {
	Nodes []*Node `protobuf:"bytes,1,rep,name=nodes,proto3" json:"nodes,omitempty"`
	// contains filtered or unexported fields
}

The Subgraph returned by GetSubgraph RPC.

The node representing a principal passed to GetSubgraph is always the first in the list.

func (*Subgraph) Descriptor deprecated

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

Deprecated: Use Subgraph.ProtoReflect.Descriptor instead.

func (*Subgraph) GetNodes

func (x *Subgraph) GetNodes() []*Node

func (*Subgraph) ProtoMessage

func (*Subgraph) ProtoMessage()

func (*Subgraph) ProtoReflect

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

func (*Subgraph) Reset

func (x *Subgraph) Reset()

func (*Subgraph) String

func (x *Subgraph) String() string

type UnimplementedAccountsServer

type UnimplementedAccountsServer struct{}

UnimplementedAccountsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAccountsServer) GetSelf

type UnimplementedAllowlistsServer

type UnimplementedAllowlistsServer struct{}

UnimplementedAllowlistsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAllowlistsServer) GetAllowlist

func (UnimplementedAllowlistsServer) ListAllowlists

type UnimplementedAuthDBServer

type UnimplementedAuthDBServer struct{}

UnimplementedAuthDBServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAuthDBServer) GetSnapshot

type UnimplementedChangeLogsServer

type UnimplementedChangeLogsServer struct{}

UnimplementedChangeLogsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedChangeLogsServer) ListChangeLogs

type UnimplementedGroupsServer

type UnimplementedGroupsServer struct{}

UnimplementedGroupsServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedGroupsServer) CreateGroup

func (UnimplementedGroupsServer) DeleteGroup

func (UnimplementedGroupsServer) GetExpandedGroup

func (UnimplementedGroupsServer) GetGroup

func (UnimplementedGroupsServer) GetSubgraph

func (UnimplementedGroupsServer) ListGroups

func (UnimplementedGroupsServer) UpdateGroup

type UnimplementedReplicasServer

type UnimplementedReplicasServer struct{}

UnimplementedReplicasServer must be embedded to have forward compatible implementations.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedReplicasServer) ListReplicas

type UnsafeAccountsServer

type UnsafeAccountsServer interface {
	// contains filtered or unexported methods
}

UnsafeAccountsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AccountsServer will result in compilation errors.

type UnsafeAllowlistsServer

type UnsafeAllowlistsServer interface {
	// contains filtered or unexported methods
}

UnsafeAllowlistsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AllowlistsServer will result in compilation errors.

type UnsafeAuthDBServer

type UnsafeAuthDBServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthDBServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthDBServer will result in compilation errors.

type UnsafeChangeLogsServer

type UnsafeChangeLogsServer interface {
	// contains filtered or unexported methods
}

UnsafeChangeLogsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChangeLogsServer will result in compilation errors.

type UnsafeGroupsServer

type UnsafeGroupsServer interface {
	// contains filtered or unexported methods
}

UnsafeGroupsServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to GroupsServer will result in compilation errors.

type UnsafeReplicasServer

type UnsafeReplicasServer interface {
	// contains filtered or unexported methods
}

UnsafeReplicasServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ReplicasServer will result in compilation errors.

type UpdateGroupRequest

type UpdateGroupRequest struct {

	// Details of the group to update. The group's 'name' field is used to
	// identify the group to update.
	Group *AuthGroup `protobuf:"bytes,1,opt,name=group,proto3" json:"group,omitempty"`
	// The list of fields to be updated.
	UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"`
	// contains filtered or unexported fields
}

UpdateGroupRequest requests an update to an existing group.

func (*UpdateGroupRequest) Descriptor deprecated

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

Deprecated: Use UpdateGroupRequest.ProtoReflect.Descriptor instead.

func (*UpdateGroupRequest) GetGroup

func (x *UpdateGroupRequest) GetGroup() *AuthGroup

func (*UpdateGroupRequest) GetUpdateMask

func (x *UpdateGroupRequest) GetUpdateMask() *fieldmaskpb.FieldMask

func (*UpdateGroupRequest) ProtoMessage

func (*UpdateGroupRequest) ProtoMessage()

func (*UpdateGroupRequest) ProtoReflect

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

func (*UpdateGroupRequest) Reset

func (x *UpdateGroupRequest) Reset()

func (*UpdateGroupRequest) String

func (x *UpdateGroupRequest) String() string

Jump to

Keyboard shortcuts

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