Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterBotServiceServer(s grpc.ServiceRegistrar, srv BotServiceServer)
- func RegisterWorkloadIdentityServiceServer(s grpc.ServiceRegistrar, srv WorkloadIdentityServiceServer)
- type Bot
- func (*Bot) Descriptor() ([]byte, []int)deprecated
- func (x *Bot) GetKind() string
- func (x *Bot) GetMetadata() *v1.Metadata
- func (x *Bot) GetSpec() *BotSpec
- func (x *Bot) GetStatus() *BotStatus
- func (x *Bot) GetSubKind() string
- func (x *Bot) GetVersion() string
- func (*Bot) ProtoMessage()
- func (x *Bot) ProtoReflect() protoreflect.Message
- func (x *Bot) Reset()
- func (x *Bot) String() string
- type BotServiceClient
- type BotServiceServer
- type BotSpec
- type BotStatus
- type CreateBotRequest
- type DeleteBotRequest
- type GetBotRequest
- type ListBotsRequest
- func (*ListBotsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListBotsRequest) GetPageSize() int32
- func (x *ListBotsRequest) GetPageToken() string
- func (*ListBotsRequest) ProtoMessage()
- func (x *ListBotsRequest) ProtoReflect() protoreflect.Message
- func (x *ListBotsRequest) Reset()
- func (x *ListBotsRequest) String() string
- type ListBotsResponse
- func (*ListBotsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListBotsResponse) GetBots() []*Bot
- func (x *ListBotsResponse) GetNextPageToken() string
- func (*ListBotsResponse) ProtoMessage()
- func (x *ListBotsResponse) ProtoReflect() protoreflect.Message
- func (x *ListBotsResponse) Reset()
- func (x *ListBotsResponse) String() string
- type SVIDRequest
- func (*SVIDRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SVIDRequest) GetDnsSans() []string
- func (x *SVIDRequest) GetHint() string
- func (x *SVIDRequest) GetIpSans() []string
- func (x *SVIDRequest) GetPublicKey() []byte
- func (x *SVIDRequest) GetSpiffeIdPath() string
- func (x *SVIDRequest) GetTtl() *durationpb.Duration
- func (*SVIDRequest) ProtoMessage()
- func (x *SVIDRequest) ProtoReflect() protoreflect.Message
- func (x *SVIDRequest) Reset()
- func (x *SVIDRequest) String() string
- type SVIDResponse
- func (*SVIDResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SVIDResponse) GetCertificate() []byte
- func (x *SVIDResponse) GetHint() string
- func (x *SVIDResponse) GetSpiffeId() string
- func (*SVIDResponse) ProtoMessage()
- func (x *SVIDResponse) ProtoReflect() protoreflect.Message
- func (x *SVIDResponse) Reset()
- func (x *SVIDResponse) String() string
- type SignX509SVIDsRequest
- func (*SignX509SVIDsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *SignX509SVIDsRequest) GetSvids() []*SVIDRequest
- func (*SignX509SVIDsRequest) ProtoMessage()
- func (x *SignX509SVIDsRequest) ProtoReflect() protoreflect.Message
- func (x *SignX509SVIDsRequest) Reset()
- func (x *SignX509SVIDsRequest) String() string
- type SignX509SVIDsResponse
- func (*SignX509SVIDsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *SignX509SVIDsResponse) GetSvids() []*SVIDResponse
- func (*SignX509SVIDsResponse) ProtoMessage()
- func (x *SignX509SVIDsResponse) ProtoReflect() protoreflect.Message
- func (x *SignX509SVIDsResponse) Reset()
- func (x *SignX509SVIDsResponse) String() string
- type Trait
- type UnimplementedBotServiceServer
- func (UnimplementedBotServiceServer) CreateBot(context.Context, *CreateBotRequest) (*Bot, error)
- func (UnimplementedBotServiceServer) DeleteBot(context.Context, *DeleteBotRequest) (*emptypb.Empty, error)
- func (UnimplementedBotServiceServer) GetBot(context.Context, *GetBotRequest) (*Bot, error)
- func (UnimplementedBotServiceServer) ListBots(context.Context, *ListBotsRequest) (*ListBotsResponse, error)
- func (UnimplementedBotServiceServer) UpdateBot(context.Context, *UpdateBotRequest) (*Bot, error)
- func (UnimplementedBotServiceServer) UpsertBot(context.Context, *UpsertBotRequest) (*Bot, error)
- type UnimplementedWorkloadIdentityServiceServer
- type UnsafeBotServiceServer
- type UnsafeWorkloadIdentityServiceServer
- type UpdateBotRequest
- func (*UpdateBotRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UpdateBotRequest) GetBot() *Bot
- func (x *UpdateBotRequest) GetUpdateMask() *fieldmaskpb.FieldMask
- func (*UpdateBotRequest) ProtoMessage()
- func (x *UpdateBotRequest) ProtoReflect() protoreflect.Message
- func (x *UpdateBotRequest) Reset()
- func (x *UpdateBotRequest) String() string
- type UpsertBotRequest
- type WorkloadIdentityServiceClient
- type WorkloadIdentityServiceServer
Constants ¶
const ( BotService_GetBot_FullMethodName = "/teleport.machineid.v1.BotService/GetBot" BotService_ListBots_FullMethodName = "/teleport.machineid.v1.BotService/ListBots" BotService_CreateBot_FullMethodName = "/teleport.machineid.v1.BotService/CreateBot" BotService_UpdateBot_FullMethodName = "/teleport.machineid.v1.BotService/UpdateBot" BotService_UpsertBot_FullMethodName = "/teleport.machineid.v1.BotService/UpsertBot" BotService_DeleteBot_FullMethodName = "/teleport.machineid.v1.BotService/DeleteBot" )
const (
WorkloadIdentityService_SignX509SVIDs_FullMethodName = "/teleport.machineid.v1.WorkloadIdentityService/SignX509SVIDs"
)
Variables ¶
var BotService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "teleport.machineid.v1.BotService", HandlerType: (*BotServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetBot", Handler: _BotService_GetBot_Handler, }, { MethodName: "ListBots", Handler: _BotService_ListBots_Handler, }, { MethodName: "CreateBot", Handler: _BotService_CreateBot_Handler, }, { MethodName: "UpdateBot", Handler: _BotService_UpdateBot_Handler, }, { MethodName: "UpsertBot", Handler: _BotService_UpsertBot_Handler, }, { MethodName: "DeleteBot", Handler: _BotService_DeleteBot_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "teleport/machineid/v1/bot_service.proto", }
BotService_ServiceDesc is the grpc.ServiceDesc for BotService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_teleport_machineid_v1_bot_proto protoreflect.FileDescriptor
var File_teleport_machineid_v1_bot_service_proto protoreflect.FileDescriptor
var File_teleport_machineid_v1_workload_identity_service_proto protoreflect.FileDescriptor
var WorkloadIdentityService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "teleport.machineid.v1.WorkloadIdentityService", HandlerType: (*WorkloadIdentityServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "SignX509SVIDs", Handler: _WorkloadIdentityService_SignX509SVIDs_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "teleport/machineid/v1/workload_identity_service.proto", }
WorkloadIdentityService_ServiceDesc is the grpc.ServiceDesc for WorkloadIdentityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterBotServiceServer ¶
func RegisterBotServiceServer(s grpc.ServiceRegistrar, srv BotServiceServer)
func RegisterWorkloadIdentityServiceServer ¶
func RegisterWorkloadIdentityServiceServer(s grpc.ServiceRegistrar, srv WorkloadIdentityServiceServer)
Types ¶
type Bot ¶
type Bot struct { // The kind of resource represented. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Differentiates variations of the same kind. All resources should // contain one, even if it is never populated. SubKind string `protobuf:"bytes,2,opt,name=sub_kind,json=subKind,proto3" json:"sub_kind,omitempty"` // The version of the resource being represented. Version string `protobuf:"bytes,3,opt,name=version,proto3" json:"version,omitempty"` // Common metadata that all resources share. Metadata *v1.Metadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` // The configured properties of a Bot. Spec *BotSpec `protobuf:"bytes,5,opt,name=spec,proto3" json:"spec,omitempty"` // Fields that are set by the server as results of operations. These should // not be modified by users. Status *BotStatus `protobuf:"bytes,6,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
A Bot is a Teleport identity intended to be used by Machines. The Bot resource defines a Bot and configures its properties.
func (*Bot) Descriptor
deprecated
func (*Bot) GetMetadata ¶
func (*Bot) GetSubKind ¶
func (*Bot) GetVersion ¶
func (*Bot) ProtoMessage ¶
func (*Bot) ProtoMessage()
func (*Bot) ProtoReflect ¶
func (x *Bot) ProtoReflect() protoreflect.Message
type BotServiceClient ¶
type BotServiceClient interface { // GetBot is used to query a Bot resource by its name. // // This will return a NotFound error if the specified Bot does not exist. GetBot(ctx context.Context, in *GetBotRequest, opts ...grpc.CallOption) (*Bot, error) // ListBots is used to query Bots. // // Follows the pagination semantics of // https://cloud.google.com/apis/design/standard_methods#list. ListBots(ctx context.Context, in *ListBotsRequest, opts ...grpc.CallOption) (*ListBotsResponse, error) // CreateBot is used to create a Bot. // // This will return an error if a Bot by that name already exists. CreateBot(ctx context.Context, in *CreateBotRequest, opts ...grpc.CallOption) (*Bot, error) // UpdateBot is used to modify an existing Bot. UpdateBot(ctx context.Context, in *UpdateBotRequest, opts ...grpc.CallOption) (*Bot, error) // UpsertBot is used to create or replace an existing Bot. // // Prefer using CreateBot and UpdateBot. UpsertBot(ctx context.Context, in *UpsertBotRequest, opts ...grpc.CallOption) (*Bot, error) // DeleteBot is used to delete a specific Bot. // // This will return a NotFound error if the specified Bot does not exist. DeleteBot(ctx context.Context, in *DeleteBotRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
BotServiceClient is the client API for BotService 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 NewBotServiceClient ¶
func NewBotServiceClient(cc grpc.ClientConnInterface) BotServiceClient
type BotServiceServer ¶
type BotServiceServer interface { // GetBot is used to query a Bot resource by its name. // // This will return a NotFound error if the specified Bot does not exist. GetBot(context.Context, *GetBotRequest) (*Bot, error) // ListBots is used to query Bots. // // Follows the pagination semantics of // https://cloud.google.com/apis/design/standard_methods#list. ListBots(context.Context, *ListBotsRequest) (*ListBotsResponse, error) // CreateBot is used to create a Bot. // // This will return an error if a Bot by that name already exists. CreateBot(context.Context, *CreateBotRequest) (*Bot, error) // UpdateBot is used to modify an existing Bot. UpdateBot(context.Context, *UpdateBotRequest) (*Bot, error) // UpsertBot is used to create or replace an existing Bot. // // Prefer using CreateBot and UpdateBot. UpsertBot(context.Context, *UpsertBotRequest) (*Bot, error) // DeleteBot is used to delete a specific Bot. // // This will return a NotFound error if the specified Bot does not exist. DeleteBot(context.Context, *DeleteBotRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
BotServiceServer is the server API for BotService service. All implementations must embed UnimplementedBotServiceServer for forward compatibility
type BotSpec ¶
type BotSpec struct { // The roles that the bot should be able to impersonate. Roles []string `protobuf:"bytes,1,rep,name=roles,proto3" json:"roles,omitempty"` // The traits that will be associated with the bot for the purposes of role // templating. // // Where multiple specified with the same name, these will be merged by the // server. Traits []*Trait `protobuf:"bytes,2,rep,name=traits,proto3" json:"traits,omitempty"` // contains filtered or unexported fields }
The configured properties of a Bot.
func (*BotSpec) Descriptor
deprecated
func (*BotSpec) ProtoMessage ¶
func (*BotSpec) ProtoMessage()
func (*BotSpec) ProtoReflect ¶
func (x *BotSpec) ProtoReflect() protoreflect.Message
type BotStatus ¶
type BotStatus struct { // The name of the user associated with the bot. UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"` // The name of the role associated with the bot. RoleName string `protobuf:"bytes,3,opt,name=role_name,json=roleName,proto3" json:"role_name,omitempty"` // contains filtered or unexported fields }
Fields that are set by the server as results of operations. These should not be modified by users.
func (*BotStatus) Descriptor
deprecated
func (*BotStatus) GetRoleName ¶
func (*BotStatus) GetUserName ¶
func (*BotStatus) ProtoMessage ¶
func (*BotStatus) ProtoMessage()
func (*BotStatus) ProtoReflect ¶
func (x *BotStatus) ProtoReflect() protoreflect.Message
type CreateBotRequest ¶
type CreateBotRequest struct { // The bot to create. Bot *Bot `protobuf:"bytes,1,opt,name=bot,proto3" json:"bot,omitempty"` // contains filtered or unexported fields }
The request for CreateBot.
func (*CreateBotRequest) Descriptor
deprecated
func (*CreateBotRequest) Descriptor() ([]byte, []int)
Deprecated: Use CreateBotRequest.ProtoReflect.Descriptor instead.
func (*CreateBotRequest) GetBot ¶
func (x *CreateBotRequest) GetBot() *Bot
func (*CreateBotRequest) ProtoMessage ¶
func (*CreateBotRequest) ProtoMessage()
func (*CreateBotRequest) ProtoReflect ¶
func (x *CreateBotRequest) ProtoReflect() protoreflect.Message
func (*CreateBotRequest) Reset ¶
func (x *CreateBotRequest) Reset()
func (*CreateBotRequest) String ¶
func (x *CreateBotRequest) String() string
type DeleteBotRequest ¶
type DeleteBotRequest struct { // The name of the bot to delete. BotName string `protobuf:"bytes,1,opt,name=bot_name,json=botName,proto3" json:"bot_name,omitempty"` // contains filtered or unexported fields }
The request for DeleteBot.
func (*DeleteBotRequest) Descriptor
deprecated
func (*DeleteBotRequest) Descriptor() ([]byte, []int)
Deprecated: Use DeleteBotRequest.ProtoReflect.Descriptor instead.
func (*DeleteBotRequest) GetBotName ¶
func (x *DeleteBotRequest) GetBotName() string
func (*DeleteBotRequest) ProtoMessage ¶
func (*DeleteBotRequest) ProtoMessage()
func (*DeleteBotRequest) ProtoReflect ¶
func (x *DeleteBotRequest) ProtoReflect() protoreflect.Message
func (*DeleteBotRequest) Reset ¶
func (x *DeleteBotRequest) Reset()
func (*DeleteBotRequest) String ¶
func (x *DeleteBotRequest) String() string
type GetBotRequest ¶
type GetBotRequest struct { // The name of the bot to fetch. BotName string `protobuf:"bytes,1,opt,name=bot_name,json=botName,proto3" json:"bot_name,omitempty"` // contains filtered or unexported fields }
The request for GetBot.
func (*GetBotRequest) Descriptor
deprecated
func (*GetBotRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetBotRequest.ProtoReflect.Descriptor instead.
func (*GetBotRequest) GetBotName ¶
func (x *GetBotRequest) GetBotName() string
func (*GetBotRequest) ProtoMessage ¶
func (*GetBotRequest) ProtoMessage()
func (*GetBotRequest) ProtoReflect ¶
func (x *GetBotRequest) ProtoReflect() protoreflect.Message
func (*GetBotRequest) Reset ¶
func (x *GetBotRequest) Reset()
func (*GetBotRequest) String ¶
func (x *GetBotRequest) String() string
type ListBotsRequest ¶
type ListBotsRequest struct { // The maximum number of items to return. // The server may impose a different page size at its discretion. PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` // The next_page_token value returned from a previous List request, if any. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // contains filtered or unexported fields }
The request for ListBots.
func (*ListBotsRequest) Descriptor
deprecated
func (*ListBotsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListBotsRequest.ProtoReflect.Descriptor instead.
func (*ListBotsRequest) GetPageSize ¶
func (x *ListBotsRequest) GetPageSize() int32
func (*ListBotsRequest) GetPageToken ¶
func (x *ListBotsRequest) GetPageToken() string
func (*ListBotsRequest) ProtoMessage ¶
func (*ListBotsRequest) ProtoMessage()
func (*ListBotsRequest) ProtoReflect ¶
func (x *ListBotsRequest) ProtoReflect() protoreflect.Message
func (*ListBotsRequest) Reset ¶
func (x *ListBotsRequest) Reset()
func (*ListBotsRequest) String ¶
func (x *ListBotsRequest) String() string
type ListBotsResponse ¶
type ListBotsResponse struct { // The page of Bots that matched the request. Bots []*Bot `protobuf:"bytes,1,rep,name=bots,proto3" json:"bots,omitempty"` // Token to retrieve the next page of results, or empty if there are no // more results in the list. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
The response for ListBots.
func (*ListBotsResponse) Descriptor
deprecated
func (*ListBotsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListBotsResponse.ProtoReflect.Descriptor instead.
func (*ListBotsResponse) GetBots ¶
func (x *ListBotsResponse) GetBots() []*Bot
func (*ListBotsResponse) GetNextPageToken ¶
func (x *ListBotsResponse) GetNextPageToken() string
func (*ListBotsResponse) ProtoMessage ¶
func (*ListBotsResponse) ProtoMessage()
func (*ListBotsResponse) ProtoReflect ¶
func (x *ListBotsResponse) ProtoReflect() protoreflect.Message
func (*ListBotsResponse) Reset ¶
func (x *ListBotsResponse) Reset()
func (*ListBotsResponse) String ¶
func (x *ListBotsResponse) String() string
type SVIDRequest ¶
type SVIDRequest struct { // A PKIX, ASN.1 DER encoded public key that should be included in the x509 // SVID. // Required. PublicKey []byte `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // The path that should be included in the SPIFFE ID. // This should have a preceding slash and should not have a trailing slash. // Required. SpiffeIdPath string `protobuf:"bytes,2,opt,name=spiffe_id_path,json=spiffeIdPath,proto3" json:"spiffe_id_path,omitempty"` // The DNS SANs that should be included in the x509 SVID. // Optional. DnsSans []string `protobuf:"bytes,3,rep,name=dns_sans,json=dnsSans,proto3" json:"dns_sans,omitempty"` // The IP SANs that should be included in the x509 SVID. // Optional. IpSans []string `protobuf:"bytes,4,rep,name=ip_sans,json=ipSans,proto3" json:"ip_sans,omitempty"` // A hint that provides a way of distinguishing between SVIDs. These are // user configured and are sent back to the actual workload. // Optional. Hint string `protobuf:"bytes,5,opt,name=hint,proto3" json:"hint,omitempty"` // The TTL to use for the x509 SVID. A maximum value is enforced on this // field. Callers should inspect the returned cert to determine if their // requested TTL has been met, and if not, adjust their behaviour. If not // supplied, the default TTL will be the maximum value. Ttl *durationpb.Duration `protobuf:"bytes,6,opt,name=ttl,proto3" json:"ttl,omitempty"` // contains filtered or unexported fields }
The request for an individual x509 SVID.
func (*SVIDRequest) Descriptor
deprecated
func (*SVIDRequest) Descriptor() ([]byte, []int)
Deprecated: Use SVIDRequest.ProtoReflect.Descriptor instead.
func (*SVIDRequest) GetDnsSans ¶
func (x *SVIDRequest) GetDnsSans() []string
func (*SVIDRequest) GetHint ¶
func (x *SVIDRequest) GetHint() string
func (*SVIDRequest) GetIpSans ¶
func (x *SVIDRequest) GetIpSans() []string
func (*SVIDRequest) GetPublicKey ¶
func (x *SVIDRequest) GetPublicKey() []byte
func (*SVIDRequest) GetSpiffeIdPath ¶
func (x *SVIDRequest) GetSpiffeIdPath() string
func (*SVIDRequest) GetTtl ¶
func (x *SVIDRequest) GetTtl() *durationpb.Duration
func (*SVIDRequest) ProtoMessage ¶
func (*SVIDRequest) ProtoMessage()
func (*SVIDRequest) ProtoReflect ¶
func (x *SVIDRequest) ProtoReflect() protoreflect.Message
func (*SVIDRequest) Reset ¶
func (x *SVIDRequest) Reset()
func (*SVIDRequest) String ¶
func (x *SVIDRequest) String() string
type SVIDResponse ¶
type SVIDResponse struct { // A ASN.1 DER encoded x509 SVID. Certificate []byte `protobuf:"bytes,1,opt,name=certificate,proto3" json:"certificate,omitempty"` // The full SPIFFE ID that was included in the x509 SVID. SpiffeId string `protobuf:"bytes,2,opt,name=spiffe_id,json=spiffeId,proto3" json:"spiffe_id,omitempty"` // The hint that was included in SVIDRequest in order to allow a workload to // distinguish an individual SVID. Hint string `protobuf:"bytes,3,opt,name=hint,proto3" json:"hint,omitempty"` // contains filtered or unexported fields }
The generated x509 SVID.
func (*SVIDResponse) Descriptor
deprecated
func (*SVIDResponse) Descriptor() ([]byte, []int)
Deprecated: Use SVIDResponse.ProtoReflect.Descriptor instead.
func (*SVIDResponse) GetCertificate ¶
func (x *SVIDResponse) GetCertificate() []byte
func (*SVIDResponse) GetHint ¶
func (x *SVIDResponse) GetHint() string
func (*SVIDResponse) GetSpiffeId ¶
func (x *SVIDResponse) GetSpiffeId() string
func (*SVIDResponse) ProtoMessage ¶
func (*SVIDResponse) ProtoMessage()
func (*SVIDResponse) ProtoReflect ¶
func (x *SVIDResponse) ProtoReflect() protoreflect.Message
func (*SVIDResponse) Reset ¶
func (x *SVIDResponse) Reset()
func (*SVIDResponse) String ¶
func (x *SVIDResponse) String() string
type SignX509SVIDsRequest ¶
type SignX509SVIDsRequest struct { // The SVIDs that should be generated. This is repeated to allow a bot to // request multiple SVIDs at once and reduce the number of round trips. // Must be non-zero length. Svids []*SVIDRequest `protobuf:"bytes,1,rep,name=svids,proto3" json:"svids,omitempty"` // contains filtered or unexported fields }
The request for SignX509SVIDs.
func (*SignX509SVIDsRequest) Descriptor
deprecated
func (*SignX509SVIDsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SignX509SVIDsRequest.ProtoReflect.Descriptor instead.
func (*SignX509SVIDsRequest) GetSvids ¶
func (x *SignX509SVIDsRequest) GetSvids() []*SVIDRequest
func (*SignX509SVIDsRequest) ProtoMessage ¶
func (*SignX509SVIDsRequest) ProtoMessage()
func (*SignX509SVIDsRequest) ProtoReflect ¶
func (x *SignX509SVIDsRequest) ProtoReflect() protoreflect.Message
func (*SignX509SVIDsRequest) Reset ¶
func (x *SignX509SVIDsRequest) Reset()
func (*SignX509SVIDsRequest) String ¶
func (x *SignX509SVIDsRequest) String() string
type SignX509SVIDsResponse ¶
type SignX509SVIDsResponse struct { // The generated SVIDs. Svids []*SVIDResponse `protobuf:"bytes,1,rep,name=svids,proto3" json:"svids,omitempty"` // contains filtered or unexported fields }
The response for SignX509SVIDs.
func (*SignX509SVIDsResponse) Descriptor
deprecated
func (*SignX509SVIDsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SignX509SVIDsResponse.ProtoReflect.Descriptor instead.
func (*SignX509SVIDsResponse) GetSvids ¶
func (x *SignX509SVIDsResponse) GetSvids() []*SVIDResponse
func (*SignX509SVIDsResponse) ProtoMessage ¶
func (*SignX509SVIDsResponse) ProtoMessage()
func (*SignX509SVIDsResponse) ProtoReflect ¶
func (x *SignX509SVIDsResponse) ProtoReflect() protoreflect.Message
func (*SignX509SVIDsResponse) Reset ¶
func (x *SignX509SVIDsResponse) Reset()
func (*SignX509SVIDsResponse) String ¶
func (x *SignX509SVIDsResponse) String() string
type Trait ¶
type Trait struct { // The name of the trait. This is what allows the trait to be queried in // role templates. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The values associated with the named trait. Values []string `protobuf:"bytes,2,rep,name=values,proto3" json:"values,omitempty"` // contains filtered or unexported fields }
Trait is an individual trait that will be applied to the bot user.
func (*Trait) Descriptor
deprecated
func (*Trait) ProtoMessage ¶
func (*Trait) ProtoMessage()
func (*Trait) ProtoReflect ¶
func (x *Trait) ProtoReflect() protoreflect.Message
type UnimplementedBotServiceServer ¶
type UnimplementedBotServiceServer struct { }
UnimplementedBotServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedBotServiceServer) CreateBot ¶
func (UnimplementedBotServiceServer) CreateBot(context.Context, *CreateBotRequest) (*Bot, error)
func (UnimplementedBotServiceServer) DeleteBot ¶
func (UnimplementedBotServiceServer) DeleteBot(context.Context, *DeleteBotRequest) (*emptypb.Empty, error)
func (UnimplementedBotServiceServer) GetBot ¶
func (UnimplementedBotServiceServer) GetBot(context.Context, *GetBotRequest) (*Bot, error)
func (UnimplementedBotServiceServer) ListBots ¶
func (UnimplementedBotServiceServer) ListBots(context.Context, *ListBotsRequest) (*ListBotsResponse, error)
func (UnimplementedBotServiceServer) UpdateBot ¶
func (UnimplementedBotServiceServer) UpdateBot(context.Context, *UpdateBotRequest) (*Bot, error)
func (UnimplementedBotServiceServer) UpsertBot ¶
func (UnimplementedBotServiceServer) UpsertBot(context.Context, *UpsertBotRequest) (*Bot, error)
type UnimplementedWorkloadIdentityServiceServer ¶
type UnimplementedWorkloadIdentityServiceServer struct { }
UnimplementedWorkloadIdentityServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedWorkloadIdentityServiceServer) SignX509SVIDs ¶
func (UnimplementedWorkloadIdentityServiceServer) SignX509SVIDs(context.Context, *SignX509SVIDsRequest) (*SignX509SVIDsResponse, error)
type UnsafeBotServiceServer ¶
type UnsafeBotServiceServer interface {
// contains filtered or unexported methods
}
UnsafeBotServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to BotServiceServer will result in compilation errors.
type UnsafeWorkloadIdentityServiceServer ¶
type UnsafeWorkloadIdentityServiceServer interface {
// contains filtered or unexported methods
}
UnsafeWorkloadIdentityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to WorkloadIdentityServiceServer will result in compilation errors.
type UpdateBotRequest ¶
type UpdateBotRequest struct { // The values to apply based on the update mask. The name must be specified. Bot *Bot `protobuf:"bytes,1,opt,name=bot,proto3" json:"bot,omitempty"` // The update mask applied to a Bot. // Fields are masked according to their proto name. UpdateMask *fieldmaskpb.FieldMask `protobuf:"bytes,2,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` // contains filtered or unexported fields }
The request for UpdateBot.
func (*UpdateBotRequest) Descriptor
deprecated
func (*UpdateBotRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpdateBotRequest.ProtoReflect.Descriptor instead.
func (*UpdateBotRequest) GetBot ¶
func (x *UpdateBotRequest) GetBot() *Bot
func (*UpdateBotRequest) GetUpdateMask ¶
func (x *UpdateBotRequest) GetUpdateMask() *fieldmaskpb.FieldMask
func (*UpdateBotRequest) ProtoMessage ¶
func (*UpdateBotRequest) ProtoMessage()
func (*UpdateBotRequest) ProtoReflect ¶
func (x *UpdateBotRequest) ProtoReflect() protoreflect.Message
func (*UpdateBotRequest) Reset ¶
func (x *UpdateBotRequest) Reset()
func (*UpdateBotRequest) String ¶
func (x *UpdateBotRequest) String() string
type UpsertBotRequest ¶
type UpsertBotRequest struct { // The bot to create or replace. Bot *Bot `protobuf:"bytes,1,opt,name=bot,proto3" json:"bot,omitempty"` // contains filtered or unexported fields }
The request for UpsertBot.
func (*UpsertBotRequest) Descriptor
deprecated
func (*UpsertBotRequest) Descriptor() ([]byte, []int)
Deprecated: Use UpsertBotRequest.ProtoReflect.Descriptor instead.
func (*UpsertBotRequest) GetBot ¶
func (x *UpsertBotRequest) GetBot() *Bot
func (*UpsertBotRequest) ProtoMessage ¶
func (*UpsertBotRequest) ProtoMessage()
func (*UpsertBotRequest) ProtoReflect ¶
func (x *UpsertBotRequest) ProtoReflect() protoreflect.Message
func (*UpsertBotRequest) Reset ¶
func (x *UpsertBotRequest) Reset()
func (*UpsertBotRequest) String ¶
func (x *UpsertBotRequest) String() string
type WorkloadIdentityServiceClient ¶
type WorkloadIdentityServiceClient interface { // SignX509SVIDs generates signed x509 SVIDs based on the SVIDs provided in // the request. SignX509SVIDs(ctx context.Context, in *SignX509SVIDsRequest, opts ...grpc.CallOption) (*SignX509SVIDsResponse, error) }
WorkloadIdentityServiceClient is the client API for WorkloadIdentityService 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 NewWorkloadIdentityServiceClient ¶
func NewWorkloadIdentityServiceClient(cc grpc.ClientConnInterface) WorkloadIdentityServiceClient
type WorkloadIdentityServiceServer ¶
type WorkloadIdentityServiceServer interface { // SignX509SVIDs generates signed x509 SVIDs based on the SVIDs provided in // the request. SignX509SVIDs(context.Context, *SignX509SVIDsRequest) (*SignX509SVIDsResponse, error) // contains filtered or unexported methods }
WorkloadIdentityServiceServer is the server API for WorkloadIdentityService service. All implementations must embed UnimplementedWorkloadIdentityServiceServer for forward compatibility