api

package
v0.0.0-...-c3677c5 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
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.

View Source
var File_metadataserver_proto_iam_proto protoreflect.FileDescriptor
View Source
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) Enum

func (AssumeRoleRequest_CredentialUseCase) EnumDescriptor deprecated

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

Deprecated: Use AssumeRoleRequest_CredentialUseCase.Descriptor instead.

func (AssumeRoleRequest_CredentialUseCase) Number

func (AssumeRoleRequest_CredentialUseCase) String

func (AssumeRoleRequest_CredentialUseCase) Type

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 (*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 (*AssumeRoleResponse_AssumedRoleUser) GetAssumedRoleId

func (x *AssumeRoleResponse_AssumedRoleUser) GetAssumedRoleId() string

func (*AssumeRoleResponse_AssumedRoleUser) ProtoMessage

func (*AssumeRoleResponse_AssumedRoleUser) ProtoMessage()

func (*AssumeRoleResponse_AssumedRoleUser) ProtoReflect

func (*AssumeRoleResponse_AssumedRoleUser) Reset

func (*AssumeRoleResponse_AssumedRoleUser) 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 (*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 (*AssumeRoleResponse_Credentials) Reset

func (x *AssumeRoleResponse_Credentials) Reset()

func (*AssumeRoleResponse_Credentials) 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

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.

Jump to

Keyboard shortcuts

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