workload

package
v0.0.0-...-204702d Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 13 Imported by: 2

Documentation

Index

Constants

View Source
const (
	FederatedCredentialService_Get_FullMethodName    = "/yandex.cloud.iam.v1.workload.FederatedCredentialService/Get"
	FederatedCredentialService_List_FullMethodName   = "/yandex.cloud.iam.v1.workload.FederatedCredentialService/List"
	FederatedCredentialService_Create_FullMethodName = "/yandex.cloud.iam.v1.workload.FederatedCredentialService/Create"
	FederatedCredentialService_Delete_FullMethodName = "/yandex.cloud.iam.v1.workload.FederatedCredentialService/Delete"
)

Variables

View Source
var FederatedCredentialService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "yandex.cloud.iam.v1.workload.FederatedCredentialService",
	HandlerType: (*FederatedCredentialServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _FederatedCredentialService_Get_Handler,
		},
		{
			MethodName: "List",
			Handler:    _FederatedCredentialService_List_Handler,
		},
		{
			MethodName: "Create",
			Handler:    _FederatedCredentialService_Create_Handler,
		},
		{
			MethodName: "Delete",
			Handler:    _FederatedCredentialService_Delete_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "yandex/cloud/iam/v1/workload/federated_credential_service.proto",
}

FederatedCredentialService_ServiceDesc is the grpc.ServiceDesc for FederatedCredentialService 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_yandex_cloud_iam_v1_workload_federated_credential_proto protoreflect.FileDescriptor
View Source
var File_yandex_cloud_iam_v1_workload_federated_credential_service_proto protoreflect.FileDescriptor

Functions

func RegisterFederatedCredentialServiceServer

func RegisterFederatedCredentialServiceServer(s grpc.ServiceRegistrar, srv FederatedCredentialServiceServer)

Types

type CreateFederatedCredentialMetadata

type CreateFederatedCredentialMetadata struct {

	// ID of the federated credential that is being created.
	FederatedCredentialId string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*CreateFederatedCredentialMetadata) Descriptor deprecated

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

Deprecated: Use CreateFederatedCredentialMetadata.ProtoReflect.Descriptor instead.

func (*CreateFederatedCredentialMetadata) GetFederatedCredentialId

func (x *CreateFederatedCredentialMetadata) GetFederatedCredentialId() string

func (*CreateFederatedCredentialMetadata) ProtoMessage

func (*CreateFederatedCredentialMetadata) ProtoMessage()

func (*CreateFederatedCredentialMetadata) ProtoReflect

func (*CreateFederatedCredentialMetadata) Reset

func (*CreateFederatedCredentialMetadata) SetFederatedCredentialId

func (m *CreateFederatedCredentialMetadata) SetFederatedCredentialId(v string)

func (*CreateFederatedCredentialMetadata) String

type CreateFederatedCredentialRequest

type CreateFederatedCredentialRequest struct {

	// ID of the service account to create a federated credential for.
	// To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
	ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	// ID of the workload identity federation that is used for authentication.
	FederationId string `protobuf:"bytes,2,opt,name=federation_id,json=federationId,proto3" json:"federation_id,omitempty"`
	// Id of the external subject.
	ExternalSubjectId string `protobuf:"bytes,3,opt,name=external_subject_id,json=externalSubjectId,proto3" json:"external_subject_id,omitempty"`
	// contains filtered or unexported fields
}

func (*CreateFederatedCredentialRequest) Descriptor deprecated

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

Deprecated: Use CreateFederatedCredentialRequest.ProtoReflect.Descriptor instead.

func (*CreateFederatedCredentialRequest) GetExternalSubjectId

func (x *CreateFederatedCredentialRequest) GetExternalSubjectId() string

func (*CreateFederatedCredentialRequest) GetFederationId

func (x *CreateFederatedCredentialRequest) GetFederationId() string

func (*CreateFederatedCredentialRequest) GetServiceAccountId

func (x *CreateFederatedCredentialRequest) GetServiceAccountId() string

func (*CreateFederatedCredentialRequest) ProtoMessage

func (*CreateFederatedCredentialRequest) ProtoMessage()

func (*CreateFederatedCredentialRequest) ProtoReflect

func (*CreateFederatedCredentialRequest) Reset

func (*CreateFederatedCredentialRequest) SetExternalSubjectId

func (m *CreateFederatedCredentialRequest) SetExternalSubjectId(v string)

func (*CreateFederatedCredentialRequest) SetFederationId

func (m *CreateFederatedCredentialRequest) SetFederationId(v string)

func (*CreateFederatedCredentialRequest) SetServiceAccountId

func (m *CreateFederatedCredentialRequest) SetServiceAccountId(v string)

func (*CreateFederatedCredentialRequest) String

type DeleteFederatedCredentialMetadata

type DeleteFederatedCredentialMetadata struct {

	// ID of the federated credential that is being deleted.
	FederatedCredentialId string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeleteFederatedCredentialMetadata) Descriptor deprecated

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

Deprecated: Use DeleteFederatedCredentialMetadata.ProtoReflect.Descriptor instead.

func (*DeleteFederatedCredentialMetadata) GetFederatedCredentialId

func (x *DeleteFederatedCredentialMetadata) GetFederatedCredentialId() string

func (*DeleteFederatedCredentialMetadata) ProtoMessage

func (*DeleteFederatedCredentialMetadata) ProtoMessage()

func (*DeleteFederatedCredentialMetadata) ProtoReflect

func (*DeleteFederatedCredentialMetadata) Reset

func (*DeleteFederatedCredentialMetadata) SetFederatedCredentialId

func (m *DeleteFederatedCredentialMetadata) SetFederatedCredentialId(v string)

func (*DeleteFederatedCredentialMetadata) String

type DeleteFederatedCredentialRequest

type DeleteFederatedCredentialRequest struct {

	// ID of the federated credential key to delete.
	// To get the federated credential ID, use a [FederatedCredentialService.List] request.
	FederatedCredentialId string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*DeleteFederatedCredentialRequest) Descriptor deprecated

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

Deprecated: Use DeleteFederatedCredentialRequest.ProtoReflect.Descriptor instead.

func (*DeleteFederatedCredentialRequest) GetFederatedCredentialId

func (x *DeleteFederatedCredentialRequest) GetFederatedCredentialId() string

func (*DeleteFederatedCredentialRequest) ProtoMessage

func (*DeleteFederatedCredentialRequest) ProtoMessage()

func (*DeleteFederatedCredentialRequest) ProtoReflect

func (*DeleteFederatedCredentialRequest) Reset

func (*DeleteFederatedCredentialRequest) SetFederatedCredentialId

func (m *DeleteFederatedCredentialRequest) SetFederatedCredentialId(v string)

func (*DeleteFederatedCredentialRequest) String

type FederatedCredential

type FederatedCredential struct {

	// Id of the federated credential.
	Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
	// Id of the service account that the federated credential belongs to.
	ServiceAccountId string `protobuf:"bytes,2,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	// ID of the workload identity federation which is used for authentication.
	FederationId string `protobuf:"bytes,3,opt,name=federation_id,json=federationId,proto3" json:"federation_id,omitempty"`
	// Id of the external subject.
	ExternalSubjectId string `protobuf:"bytes,4,opt,name=external_subject_id,json=externalSubjectId,proto3" json:"external_subject_id,omitempty"`
	// Creation timestamp.
	CreatedAt *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=created_at,json=createdAt,proto3" json:"created_at,omitempty"`
	// contains filtered or unexported fields
}

A federated credential.

func (*FederatedCredential) Descriptor deprecated

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

Deprecated: Use FederatedCredential.ProtoReflect.Descriptor instead.

func (*FederatedCredential) GetCreatedAt

func (x *FederatedCredential) GetCreatedAt() *timestamppb.Timestamp

func (*FederatedCredential) GetExternalSubjectId

func (x *FederatedCredential) GetExternalSubjectId() string

func (*FederatedCredential) GetFederationId

func (x *FederatedCredential) GetFederationId() string

func (*FederatedCredential) GetId

func (x *FederatedCredential) GetId() string

func (*FederatedCredential) GetServiceAccountId

func (x *FederatedCredential) GetServiceAccountId() string

func (*FederatedCredential) ProtoMessage

func (*FederatedCredential) ProtoMessage()

func (*FederatedCredential) ProtoReflect

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

func (*FederatedCredential) Reset

func (x *FederatedCredential) Reset()

func (*FederatedCredential) SetCreatedAt

func (m *FederatedCredential) SetCreatedAt(v *timestamppb.Timestamp)

func (*FederatedCredential) SetExternalSubjectId

func (m *FederatedCredential) SetExternalSubjectId(v string)

func (*FederatedCredential) SetFederationId

func (m *FederatedCredential) SetFederationId(v string)

func (*FederatedCredential) SetId

func (m *FederatedCredential) SetId(v string)

func (*FederatedCredential) SetServiceAccountId

func (m *FederatedCredential) SetServiceAccountId(v string)

func (*FederatedCredential) String

func (x *FederatedCredential) String() string

type FederatedCredentialServiceClient

type FederatedCredentialServiceClient interface {
	// Returns the specified federated credential.
	//
	// To get the list of available federated credentials, make a [List] request.
	Get(ctx context.Context, in *GetFederatedCredentialRequest, opts ...grpc.CallOption) (*FederatedCredential, error)
	// Retrieves the list of federated credentials for the specified service account.
	List(ctx context.Context, in *ListFederatedCredentialsRequest, opts ...grpc.CallOption) (*ListFederatedCredentialsResponse, error)
	// Creates a federated credential for the specified service account.
	Create(ctx context.Context, in *CreateFederatedCredentialRequest, opts ...grpc.CallOption) (*operation.Operation, error)
	// Deletes the specified federated credential.
	Delete(ctx context.Context, in *DeleteFederatedCredentialRequest, opts ...grpc.CallOption) (*operation.Operation, error)
}

FederatedCredentialServiceClient is the client API for FederatedCredentialService 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.

A set of methods for managing federated credentials.

type FederatedCredentialServiceServer

type FederatedCredentialServiceServer interface {
	// Returns the specified federated credential.
	//
	// To get the list of available federated credentials, make a [List] request.
	Get(context.Context, *GetFederatedCredentialRequest) (*FederatedCredential, error)
	// Retrieves the list of federated credentials for the specified service account.
	List(context.Context, *ListFederatedCredentialsRequest) (*ListFederatedCredentialsResponse, error)
	// Creates a federated credential for the specified service account.
	Create(context.Context, *CreateFederatedCredentialRequest) (*operation.Operation, error)
	// Deletes the specified federated credential.
	Delete(context.Context, *DeleteFederatedCredentialRequest) (*operation.Operation, error)
}

FederatedCredentialServiceServer is the server API for FederatedCredentialService service. All implementations should embed UnimplementedFederatedCredentialServiceServer for forward compatibility.

A set of methods for managing federated credentials.

type GetFederatedCredentialRequest

type GetFederatedCredentialRequest struct {

	// ID of the federated credential to return.
	// To get the federated credential ID, make a [FederatedCredentialService.List] request.
	FederatedCredentialId string `` /* 126-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*GetFederatedCredentialRequest) Descriptor deprecated

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

Deprecated: Use GetFederatedCredentialRequest.ProtoReflect.Descriptor instead.

func (*GetFederatedCredentialRequest) GetFederatedCredentialId

func (x *GetFederatedCredentialRequest) GetFederatedCredentialId() string

func (*GetFederatedCredentialRequest) ProtoMessage

func (*GetFederatedCredentialRequest) ProtoMessage()

func (*GetFederatedCredentialRequest) ProtoReflect

func (*GetFederatedCredentialRequest) Reset

func (x *GetFederatedCredentialRequest) Reset()

func (*GetFederatedCredentialRequest) SetFederatedCredentialId

func (m *GetFederatedCredentialRequest) SetFederatedCredentialId(v string)

func (*GetFederatedCredentialRequest) String

type ListFederatedCredentialsRequest

type ListFederatedCredentialsRequest struct {

	// ID of the service account to list federated credentials for.
	// To get the the service account ID make a [yandex.cloud.iam.v1.ServiceAccountService.List] request.
	ServiceAccountId string `protobuf:"bytes,1,opt,name=service_account_id,json=serviceAccountId,proto3" json:"service_account_id,omitempty"`
	// The maximum number of results per page to return. If the number of available
	// results is larger than [page_size],
	// the service returns a [ListFederatedCredentialsResponse.next_page_token]
	// that can be used to get the next page of results in subsequent list requests.
	// Default value: 100.
	PageSize int64 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// Page token. To get the next page of results, set [page_token]
	// to the [ListFederatedCredentialsResponse.next_page_token]
	// returned by a previous list request.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFederatedCredentialsRequest) Descriptor deprecated

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

Deprecated: Use ListFederatedCredentialsRequest.ProtoReflect.Descriptor instead.

func (*ListFederatedCredentialsRequest) GetPageSize

func (x *ListFederatedCredentialsRequest) GetPageSize() int64

func (*ListFederatedCredentialsRequest) GetPageToken

func (x *ListFederatedCredentialsRequest) GetPageToken() string

func (*ListFederatedCredentialsRequest) GetServiceAccountId

func (x *ListFederatedCredentialsRequest) GetServiceAccountId() string

func (*ListFederatedCredentialsRequest) ProtoMessage

func (*ListFederatedCredentialsRequest) ProtoMessage()

func (*ListFederatedCredentialsRequest) ProtoReflect

func (*ListFederatedCredentialsRequest) Reset

func (*ListFederatedCredentialsRequest) SetPageSize

func (m *ListFederatedCredentialsRequest) SetPageSize(v int64)

func (*ListFederatedCredentialsRequest) SetPageToken

func (m *ListFederatedCredentialsRequest) SetPageToken(v string)

func (*ListFederatedCredentialsRequest) SetServiceAccountId

func (m *ListFederatedCredentialsRequest) SetServiceAccountId(v string)

func (*ListFederatedCredentialsRequest) String

type ListFederatedCredentialsResponse

type ListFederatedCredentialsResponse struct {

	// List of federated credentials.
	FederatedCredentials []*FederatedCredential `protobuf:"bytes,1,rep,name=federated_credentials,json=federatedCredentials,proto3" json:"federated_credentials,omitempty"`
	// This token allows you to get the next page of results for list requests. If the number of results
	// is larger than [ListFederatedCredentialsRequest.page_size], use
	// the [next_page_token] as the value
	// for the [ListFederatedCredentialsRequest.page_token] query parameter
	// in the next list request. Each subsequent list request will have its own
	// [next_page_token] to continue paging through the results.
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFederatedCredentialsResponse) Descriptor deprecated

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

Deprecated: Use ListFederatedCredentialsResponse.ProtoReflect.Descriptor instead.

func (*ListFederatedCredentialsResponse) GetFederatedCredentials

func (x *ListFederatedCredentialsResponse) GetFederatedCredentials() []*FederatedCredential

func (*ListFederatedCredentialsResponse) GetNextPageToken

func (x *ListFederatedCredentialsResponse) GetNextPageToken() string

func (*ListFederatedCredentialsResponse) ProtoMessage

func (*ListFederatedCredentialsResponse) ProtoMessage()

func (*ListFederatedCredentialsResponse) ProtoReflect

func (*ListFederatedCredentialsResponse) Reset

func (*ListFederatedCredentialsResponse) SetFederatedCredentials

func (m *ListFederatedCredentialsResponse) SetFederatedCredentials(v []*FederatedCredential)

func (*ListFederatedCredentialsResponse) SetNextPageToken

func (m *ListFederatedCredentialsResponse) SetNextPageToken(v string)

func (*ListFederatedCredentialsResponse) String

type UnimplementedFederatedCredentialServiceServer

type UnimplementedFederatedCredentialServiceServer struct{}

UnimplementedFederatedCredentialServiceServer should 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 (UnimplementedFederatedCredentialServiceServer) Create

func (UnimplementedFederatedCredentialServiceServer) Delete

func (UnimplementedFederatedCredentialServiceServer) Get

type UnsafeFederatedCredentialServiceServer

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

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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