Documentation ¶
Index ¶
- Variables
- func RegisterIAMServer(s grpc.ServiceRegistrar, srv IAMServer)
- type AssumeRoleRequest
- func (*AssumeRoleRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AssumeRoleRequest) GetCredentialUseCase() AssumeRoleRequest_CredentialUseCase
- func (x *AssumeRoleRequest) GetRoleARN() string
- func (x *AssumeRoleRequest) GetTaskId() string
- func (*AssumeRoleRequest) ProtoMessage()
- func (x *AssumeRoleRequest) ProtoReflect() protoreflect.Message
- func (x *AssumeRoleRequest) Reset()
- func (x *AssumeRoleRequest) String() string
- type AssumeRoleRequest_CredentialUseCase
- func (AssumeRoleRequest_CredentialUseCase) Descriptor() protoreflect.EnumDescriptor
- func (x AssumeRoleRequest_CredentialUseCase) Enum() *AssumeRoleRequest_CredentialUseCase
- func (AssumeRoleRequest_CredentialUseCase) EnumDescriptor() ([]byte, []int)deprecated
- func (x AssumeRoleRequest_CredentialUseCase) Number() protoreflect.EnumNumber
- func (x AssumeRoleRequest_CredentialUseCase) String() string
- func (AssumeRoleRequest_CredentialUseCase) Type() protoreflect.EnumType
- type AssumeRoleResponse
- func (*AssumeRoleResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AssumeRoleResponse) GetAssumedRoleUser() *AssumeRoleResponse_AssumedRoleUser
- func (x *AssumeRoleResponse) GetCredentials() *AssumeRoleResponse_Credentials
- func (*AssumeRoleResponse) ProtoMessage()
- func (x *AssumeRoleResponse) ProtoReflect() protoreflect.Message
- func (x *AssumeRoleResponse) Reset()
- func (x *AssumeRoleResponse) String() string
- type AssumeRoleResponse_AssumedRoleUser
- func (*AssumeRoleResponse_AssumedRoleUser) Descriptor() ([]byte, []int)deprecated
- func (x *AssumeRoleResponse_AssumedRoleUser) GetArn() string
- func (x *AssumeRoleResponse_AssumedRoleUser) GetAssumedRoleId() string
- func (*AssumeRoleResponse_AssumedRoleUser) ProtoMessage()
- func (x *AssumeRoleResponse_AssumedRoleUser) ProtoReflect() protoreflect.Message
- func (x *AssumeRoleResponse_AssumedRoleUser) Reset()
- func (x *AssumeRoleResponse_AssumedRoleUser) String() string
- type AssumeRoleResponse_Credentials
- func (*AssumeRoleResponse_Credentials) Descriptor() ([]byte, []int)deprecated
- func (x *AssumeRoleResponse_Credentials) GetAccessKeyId() string
- func (x *AssumeRoleResponse_Credentials) GetExpiration() *timestamppb.Timestamp
- func (x *AssumeRoleResponse_Credentials) GetSecretAccessKey() string
- func (x *AssumeRoleResponse_Credentials) GetSessionToken() string
- func (*AssumeRoleResponse_Credentials) ProtoMessage()
- func (x *AssumeRoleResponse_Credentials) ProtoReflect() protoreflect.Message
- func (x *AssumeRoleResponse_Credentials) Reset()
- func (x *AssumeRoleResponse_Credentials) String() string
- type IAMClient
- type IAMServer
- type UnimplementedIAMServer
- type UnsafeIAMServer
Constants ¶
This section is empty.
Variables ¶
var ( AssumeRoleRequest_CredentialUseCase_name = map[int32]string{ 0: "ForTask", 1: "ForLogging", } AssumeRoleRequest_CredentialUseCase_value = map[string]int32{ "ForTask": 0, "ForLogging": 1, } )
Enum value maps for AssumeRoleRequest_CredentialUseCase.
var File_metadataserver_proto_iam_proto protoreflect.FileDescriptor
var IAM_ServiceDesc = grpc.ServiceDesc{ ServiceName: "com.netflix.titus.executor.metadataserver.IAM", HandlerType: (*IAMServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "AssumeRole", Handler: _IAM_AssumeRole_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "metadataserver/proto/iam.proto", }
IAM_ServiceDesc is the grpc.ServiceDesc for IAM service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIAMServer ¶
func RegisterIAMServer(s grpc.ServiceRegistrar, srv IAMServer)
Types ¶
type AssumeRoleRequest ¶
type AssumeRoleRequest struct { RoleARN string `protobuf:"bytes,1,opt,name=roleARN,proto3" json:"roleARN,omitempty"` TaskId string `protobuf:"bytes,2,opt,name=taskId,proto3" json:"taskId,omitempty"` CredentialUseCase AssumeRoleRequest_CredentialUseCase `` /* 171-byte string literal not displayed */ // contains filtered or unexported fields }
func (*AssumeRoleRequest) Descriptor
deprecated
func (*AssumeRoleRequest) Descriptor() ([]byte, []int)
Deprecated: Use AssumeRoleRequest.ProtoReflect.Descriptor instead.
func (*AssumeRoleRequest) GetCredentialUseCase ¶
func (x *AssumeRoleRequest) GetCredentialUseCase() AssumeRoleRequest_CredentialUseCase
func (*AssumeRoleRequest) GetRoleARN ¶
func (x *AssumeRoleRequest) GetRoleARN() string
func (*AssumeRoleRequest) GetTaskId ¶
func (x *AssumeRoleRequest) GetTaskId() string
func (*AssumeRoleRequest) ProtoMessage ¶
func (*AssumeRoleRequest) ProtoMessage()
func (*AssumeRoleRequest) ProtoReflect ¶
func (x *AssumeRoleRequest) ProtoReflect() protoreflect.Message
func (*AssumeRoleRequest) Reset ¶
func (x *AssumeRoleRequest) Reset()
func (*AssumeRoleRequest) String ¶
func (x *AssumeRoleRequest) String() string
type AssumeRoleRequest_CredentialUseCase ¶
type AssumeRoleRequest_CredentialUseCase int32
const ( AssumeRoleRequest_ForTask AssumeRoleRequest_CredentialUseCase = 0 AssumeRoleRequest_ForLogging AssumeRoleRequest_CredentialUseCase = 1 )
func (AssumeRoleRequest_CredentialUseCase) Descriptor ¶
func (AssumeRoleRequest_CredentialUseCase) Descriptor() protoreflect.EnumDescriptor
func (AssumeRoleRequest_CredentialUseCase) Enum ¶
func (x AssumeRoleRequest_CredentialUseCase) Enum() *AssumeRoleRequest_CredentialUseCase
func (AssumeRoleRequest_CredentialUseCase) EnumDescriptor
deprecated
func (AssumeRoleRequest_CredentialUseCase) EnumDescriptor() ([]byte, []int)
Deprecated: Use AssumeRoleRequest_CredentialUseCase.Descriptor instead.
func (AssumeRoleRequest_CredentialUseCase) Number ¶
func (x AssumeRoleRequest_CredentialUseCase) Number() protoreflect.EnumNumber
func (AssumeRoleRequest_CredentialUseCase) String ¶
func (x AssumeRoleRequest_CredentialUseCase) String() string
func (AssumeRoleRequest_CredentialUseCase) Type ¶
func (AssumeRoleRequest_CredentialUseCase) Type() protoreflect.EnumType
type AssumeRoleResponse ¶
type AssumeRoleResponse struct { AssumedRoleUser *AssumeRoleResponse_AssumedRoleUser `protobuf:"bytes,1,opt,name=assumedRoleUser,proto3" json:"assumedRoleUser,omitempty"` Credentials *AssumeRoleResponse_Credentials `protobuf:"bytes,2,opt,name=credentials,proto3" json:"credentials,omitempty"` // contains filtered or unexported fields }
func (*AssumeRoleResponse) Descriptor
deprecated
func (*AssumeRoleResponse) Descriptor() ([]byte, []int)
Deprecated: Use AssumeRoleResponse.ProtoReflect.Descriptor instead.
func (*AssumeRoleResponse) GetAssumedRoleUser ¶
func (x *AssumeRoleResponse) GetAssumedRoleUser() *AssumeRoleResponse_AssumedRoleUser
func (*AssumeRoleResponse) GetCredentials ¶
func (x *AssumeRoleResponse) GetCredentials() *AssumeRoleResponse_Credentials
func (*AssumeRoleResponse) ProtoMessage ¶
func (*AssumeRoleResponse) ProtoMessage()
func (*AssumeRoleResponse) ProtoReflect ¶
func (x *AssumeRoleResponse) ProtoReflect() protoreflect.Message
func (*AssumeRoleResponse) Reset ¶
func (x *AssumeRoleResponse) Reset()
func (*AssumeRoleResponse) String ¶
func (x *AssumeRoleResponse) String() string
type AssumeRoleResponse_AssumedRoleUser ¶
type AssumeRoleResponse_AssumedRoleUser struct { AssumedRoleId string `protobuf:"bytes,1,opt,name=assumedRoleId,proto3" json:"assumedRoleId,omitempty"` Arn string `protobuf:"bytes,2,opt,name=arn,proto3" json:"arn,omitempty"` // contains filtered or unexported fields }
func (*AssumeRoleResponse_AssumedRoleUser) Descriptor
deprecated
func (*AssumeRoleResponse_AssumedRoleUser) Descriptor() ([]byte, []int)
Deprecated: Use AssumeRoleResponse_AssumedRoleUser.ProtoReflect.Descriptor instead.
func (*AssumeRoleResponse_AssumedRoleUser) GetArn ¶
func (x *AssumeRoleResponse_AssumedRoleUser) GetArn() string
func (*AssumeRoleResponse_AssumedRoleUser) GetAssumedRoleId ¶
func (x *AssumeRoleResponse_AssumedRoleUser) GetAssumedRoleId() string
func (*AssumeRoleResponse_AssumedRoleUser) ProtoMessage ¶
func (*AssumeRoleResponse_AssumedRoleUser) ProtoMessage()
func (*AssumeRoleResponse_AssumedRoleUser) ProtoReflect ¶
func (x *AssumeRoleResponse_AssumedRoleUser) ProtoReflect() protoreflect.Message
func (*AssumeRoleResponse_AssumedRoleUser) Reset ¶
func (x *AssumeRoleResponse_AssumedRoleUser) Reset()
func (*AssumeRoleResponse_AssumedRoleUser) String ¶
func (x *AssumeRoleResponse_AssumedRoleUser) String() string
type AssumeRoleResponse_Credentials ¶
type AssumeRoleResponse_Credentials struct { SecretAccessKey string `protobuf:"bytes,1,opt,name=secretAccessKey,proto3" json:"secretAccessKey,omitempty"` SessionToken string `protobuf:"bytes,2,opt,name=sessionToken,proto3" json:"sessionToken,omitempty"` Expiration *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=expiration,proto3" json:"expiration,omitempty"` AccessKeyId string `protobuf:"bytes,4,opt,name=accessKeyId,proto3" json:"accessKeyId,omitempty"` // contains filtered or unexported fields }
func (*AssumeRoleResponse_Credentials) Descriptor
deprecated
func (*AssumeRoleResponse_Credentials) Descriptor() ([]byte, []int)
Deprecated: Use AssumeRoleResponse_Credentials.ProtoReflect.Descriptor instead.
func (*AssumeRoleResponse_Credentials) GetAccessKeyId ¶
func (x *AssumeRoleResponse_Credentials) GetAccessKeyId() string
func (*AssumeRoleResponse_Credentials) GetExpiration ¶
func (x *AssumeRoleResponse_Credentials) GetExpiration() *timestamppb.Timestamp
func (*AssumeRoleResponse_Credentials) GetSecretAccessKey ¶
func (x *AssumeRoleResponse_Credentials) GetSecretAccessKey() string
func (*AssumeRoleResponse_Credentials) GetSessionToken ¶
func (x *AssumeRoleResponse_Credentials) GetSessionToken() string
func (*AssumeRoleResponse_Credentials) ProtoMessage ¶
func (*AssumeRoleResponse_Credentials) ProtoMessage()
func (*AssumeRoleResponse_Credentials) ProtoReflect ¶
func (x *AssumeRoleResponse_Credentials) ProtoReflect() protoreflect.Message
func (*AssumeRoleResponse_Credentials) Reset ¶
func (x *AssumeRoleResponse_Credentials) Reset()
func (*AssumeRoleResponse_Credentials) String ¶
func (x *AssumeRoleResponse_Credentials) String() string
type IAMClient ¶
type IAMClient interface {
AssumeRole(ctx context.Context, in *AssumeRoleRequest, opts ...grpc.CallOption) (*AssumeRoleResponse, error)
}
IAMClient is the client API for IAM 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 NewIAMClient ¶
func NewIAMClient(cc grpc.ClientConnInterface) IAMClient
type IAMServer ¶
type IAMServer interface { AssumeRole(context.Context, *AssumeRoleRequest) (*AssumeRoleResponse, error) // contains filtered or unexported methods }
IAMServer is the server API for IAM service. All implementations must embed UnimplementedIAMServer for forward compatibility
type UnimplementedIAMServer ¶
type UnimplementedIAMServer struct { }
UnimplementedIAMServer must be embedded to have forward compatible implementations.
func (UnimplementedIAMServer) AssumeRole ¶
func (UnimplementedIAMServer) AssumeRole(context.Context, *AssumeRoleRequest) (*AssumeRoleResponse, error)
type UnsafeIAMServer ¶
type UnsafeIAMServer interface {
// contains filtered or unexported methods
}
UnsafeIAMServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IAMServer will result in compilation errors.