trustdomain

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

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_spire_api_server_trustdomain_v1_trustdomain_proto protoreflect.FileDescriptor

Functions

func RegisterTrustDomainServer

func RegisterTrustDomainServer(s grpc.ServiceRegistrar, srv TrustDomainServer)

Types

type BatchCreateFederationRelationshipRequest

type BatchCreateFederationRelationshipRequest struct {

	// The federation relationships to be created.
	FederationRelationships []*types.FederationRelationship `` /* 130-byte string literal not displayed */
	// An output mask indicating the federation relationship fields set in the response.
	OutputMask *types.FederationRelationshipMask `protobuf:"bytes,2,opt,name=output_mask,json=outputMask,proto3" json:"output_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateFederationRelationshipRequest) Descriptor deprecated

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

Deprecated: Use BatchCreateFederationRelationshipRequest.ProtoReflect.Descriptor instead.

func (*BatchCreateFederationRelationshipRequest) GetFederationRelationships

func (x *BatchCreateFederationRelationshipRequest) GetFederationRelationships() []*types.FederationRelationship

func (*BatchCreateFederationRelationshipRequest) GetOutputMask

func (*BatchCreateFederationRelationshipRequest) ProtoMessage

func (*BatchCreateFederationRelationshipRequest) ProtoReflect

func (*BatchCreateFederationRelationshipRequest) Reset

func (*BatchCreateFederationRelationshipRequest) String

type BatchCreateFederationRelationshipResponse

type BatchCreateFederationRelationshipResponse struct {

	// Result for each federation relationship in the request (order is maintained).
	Results []*BatchCreateFederationRelationshipResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchCreateFederationRelationshipResponse) Descriptor deprecated

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

Deprecated: Use BatchCreateFederationRelationshipResponse.ProtoReflect.Descriptor instead.

func (*BatchCreateFederationRelationshipResponse) GetResults

func (*BatchCreateFederationRelationshipResponse) ProtoMessage

func (*BatchCreateFederationRelationshipResponse) ProtoReflect

func (*BatchCreateFederationRelationshipResponse) Reset

func (*BatchCreateFederationRelationshipResponse) String

type BatchCreateFederationRelationshipResponse_Result

type BatchCreateFederationRelationshipResponse_Result struct {

	// The status of creating the federation relationship.
	// Status code will be ALREADY_EXISTS if there is already a
	// federation relationship with the specified trust domain.
	Status *types.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// The federation relationship that was created.
	// This will be set if the status is OK.
	FederationRelationship *types.FederationRelationship `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchCreateFederationRelationshipResponse_Result) Descriptor deprecated

Deprecated: Use BatchCreateFederationRelationshipResponse_Result.ProtoReflect.Descriptor instead.

func (*BatchCreateFederationRelationshipResponse_Result) GetFederationRelationship

func (*BatchCreateFederationRelationshipResponse_Result) GetStatus

func (*BatchCreateFederationRelationshipResponse_Result) ProtoMessage

func (*BatchCreateFederationRelationshipResponse_Result) ProtoReflect

func (*BatchCreateFederationRelationshipResponse_Result) Reset

func (*BatchCreateFederationRelationshipResponse_Result) String

type BatchDeleteFederationRelationshipRequest

type BatchDeleteFederationRelationshipRequest struct {

	// Required. The trust domain names of the federation relationships
	// to delete.
	TrustDomains []string `protobuf:"bytes,1,rep,name=trust_domains,json=trustDomains,proto3" json:"trust_domains,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchDeleteFederationRelationshipRequest) Descriptor deprecated

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

Deprecated: Use BatchDeleteFederationRelationshipRequest.ProtoReflect.Descriptor instead.

func (*BatchDeleteFederationRelationshipRequest) GetTrustDomains

func (x *BatchDeleteFederationRelationshipRequest) GetTrustDomains() []string

func (*BatchDeleteFederationRelationshipRequest) ProtoMessage

func (*BatchDeleteFederationRelationshipRequest) ProtoReflect

func (*BatchDeleteFederationRelationshipRequest) Reset

func (*BatchDeleteFederationRelationshipRequest) String

type BatchDeleteFederationRelationshipResponse

type BatchDeleteFederationRelationshipResponse struct {

	// Result for each trust domain name in the request (order is maintained).
	Results []*BatchDeleteFederationRelationshipResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchDeleteFederationRelationshipResponse) Descriptor deprecated

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

Deprecated: Use BatchDeleteFederationRelationshipResponse.ProtoReflect.Descriptor instead.

func (*BatchDeleteFederationRelationshipResponse) GetResults

func (*BatchDeleteFederationRelationshipResponse) ProtoMessage

func (*BatchDeleteFederationRelationshipResponse) ProtoReflect

func (*BatchDeleteFederationRelationshipResponse) Reset

func (*BatchDeleteFederationRelationshipResponse) String

type BatchDeleteFederationRelationshipResponse_Result

type BatchDeleteFederationRelationshipResponse_Result struct {

	// The status of delating the federation relationship.
	Status *types.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// The trust domain name of the federation relationship
	// that was deleted.
	TrustDomain string `protobuf:"bytes,2,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchDeleteFederationRelationshipResponse_Result) Descriptor deprecated

Deprecated: Use BatchDeleteFederationRelationshipResponse_Result.ProtoReflect.Descriptor instead.

func (*BatchDeleteFederationRelationshipResponse_Result) GetStatus

func (*BatchDeleteFederationRelationshipResponse_Result) GetTrustDomain

func (*BatchDeleteFederationRelationshipResponse_Result) ProtoMessage

func (*BatchDeleteFederationRelationshipResponse_Result) ProtoReflect

func (*BatchDeleteFederationRelationshipResponse_Result) Reset

func (*BatchDeleteFederationRelationshipResponse_Result) String

type BatchUpdateFederationRelationshipRequest

type BatchUpdateFederationRelationshipRequest struct {

	// The federation relationships to be updated.
	FederationRelationships []*types.FederationRelationship `` /* 130-byte string literal not displayed */
	// An input mask indicating what federation relationship fields should be updated.
	InputMask *types.FederationRelationshipMask `protobuf:"bytes,2,opt,name=input_mask,json=inputMask,proto3" json:"input_mask,omitempty"`
	// An output mask indicating what federation relationship fields are set in the response.
	OutputMask *types.FederationRelationshipMask `protobuf:"bytes,3,opt,name=output_mask,json=outputMask,proto3" json:"output_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchUpdateFederationRelationshipRequest) Descriptor deprecated

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

Deprecated: Use BatchUpdateFederationRelationshipRequest.ProtoReflect.Descriptor instead.

func (*BatchUpdateFederationRelationshipRequest) GetFederationRelationships

func (x *BatchUpdateFederationRelationshipRequest) GetFederationRelationships() []*types.FederationRelationship

func (*BatchUpdateFederationRelationshipRequest) GetInputMask

func (*BatchUpdateFederationRelationshipRequest) GetOutputMask

func (*BatchUpdateFederationRelationshipRequest) ProtoMessage

func (*BatchUpdateFederationRelationshipRequest) ProtoReflect

func (*BatchUpdateFederationRelationshipRequest) Reset

func (*BatchUpdateFederationRelationshipRequest) String

type BatchUpdateFederationRelationshipResponse

type BatchUpdateFederationRelationshipResponse struct {

	// Result for each federation relationship in the request (order is maintained).
	Results []*BatchUpdateFederationRelationshipResponse_Result `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
	// contains filtered or unexported fields
}

func (*BatchUpdateFederationRelationshipResponse) Descriptor deprecated

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

Deprecated: Use BatchUpdateFederationRelationshipResponse.ProtoReflect.Descriptor instead.

func (*BatchUpdateFederationRelationshipResponse) GetResults

func (*BatchUpdateFederationRelationshipResponse) ProtoMessage

func (*BatchUpdateFederationRelationshipResponse) ProtoReflect

func (*BatchUpdateFederationRelationshipResponse) Reset

func (*BatchUpdateFederationRelationshipResponse) String

type BatchUpdateFederationRelationshipResponse_Result

type BatchUpdateFederationRelationshipResponse_Result struct {

	// The status of updating the federation relationship.
	Status *types.Status `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"`
	// The federation relationship that was updated.
	// This will be set if the status is OK.
	FederationRelationship *types.FederationRelationship `` /* 127-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*BatchUpdateFederationRelationshipResponse_Result) Descriptor deprecated

Deprecated: Use BatchUpdateFederationRelationshipResponse_Result.ProtoReflect.Descriptor instead.

func (*BatchUpdateFederationRelationshipResponse_Result) GetFederationRelationship

func (*BatchUpdateFederationRelationshipResponse_Result) GetStatus

func (*BatchUpdateFederationRelationshipResponse_Result) ProtoMessage

func (*BatchUpdateFederationRelationshipResponse_Result) ProtoReflect

func (*BatchUpdateFederationRelationshipResponse_Result) Reset

func (*BatchUpdateFederationRelationshipResponse_Result) String

type GetFederationRelationshipRequest

type GetFederationRelationshipRequest struct {

	// Required. The trust domain name of the federation relationship
	// (e.g., "example.org").
	TrustDomain string `protobuf:"bytes,1,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"`
	// An output mask indicating which federation relationship fields
	// are set in the response.
	OutputMask *types.FederationRelationshipMask `protobuf:"bytes,2,opt,name=output_mask,json=outputMask,proto3" json:"output_mask,omitempty"`
	// contains filtered or unexported fields
}

func (*GetFederationRelationshipRequest) Descriptor deprecated

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

Deprecated: Use GetFederationRelationshipRequest.ProtoReflect.Descriptor instead.

func (*GetFederationRelationshipRequest) GetOutputMask

func (*GetFederationRelationshipRequest) GetTrustDomain

func (x *GetFederationRelationshipRequest) GetTrustDomain() string

func (*GetFederationRelationshipRequest) ProtoMessage

func (*GetFederationRelationshipRequest) ProtoMessage()

func (*GetFederationRelationshipRequest) ProtoReflect

func (*GetFederationRelationshipRequest) Reset

func (*GetFederationRelationshipRequest) String

type ListFederationRelationshipsRequest

type ListFederationRelationshipsRequest struct {

	// An output mask indicating which federation replationship fields
	// are set in the response.
	OutputMask *types.FederationRelationshipMask `protobuf:"bytes,1,opt,name=output_mask,json=outputMask,proto3" json:"output_mask,omitempty"`
	// The maximum number of results to return. The server may further
	// constrain this value, or if zero, choose its own.
	PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
	// The next_page_token value returned from a previous request, if any.
	PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFederationRelationshipsRequest) Descriptor deprecated

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

Deprecated: Use ListFederationRelationshipsRequest.ProtoReflect.Descriptor instead.

func (*ListFederationRelationshipsRequest) GetOutputMask

func (*ListFederationRelationshipsRequest) GetPageSize

func (x *ListFederationRelationshipsRequest) GetPageSize() int32

func (*ListFederationRelationshipsRequest) GetPageToken

func (x *ListFederationRelationshipsRequest) GetPageToken() string

func (*ListFederationRelationshipsRequest) ProtoMessage

func (*ListFederationRelationshipsRequest) ProtoMessage()

func (*ListFederationRelationshipsRequest) ProtoReflect

func (*ListFederationRelationshipsRequest) Reset

func (*ListFederationRelationshipsRequest) String

type ListFederationRelationshipsResponse

type ListFederationRelationshipsResponse struct {

	// The federation relationships with foreign trust domains.
	FederationRelationships []*types.FederationRelationship `` /* 130-byte string literal not displayed */
	// The page token for the next request. Empty if there are no more results.
	// This field should be checked by clients even when a page_size was not
	// requested, since the server may choose its own (see page_size).
	NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
	// contains filtered or unexported fields
}

func (*ListFederationRelationshipsResponse) Descriptor deprecated

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

Deprecated: Use ListFederationRelationshipsResponse.ProtoReflect.Descriptor instead.

func (*ListFederationRelationshipsResponse) GetFederationRelationships

func (x *ListFederationRelationshipsResponse) GetFederationRelationships() []*types.FederationRelationship

func (*ListFederationRelationshipsResponse) GetNextPageToken

func (x *ListFederationRelationshipsResponse) GetNextPageToken() string

func (*ListFederationRelationshipsResponse) ProtoMessage

func (*ListFederationRelationshipsResponse) ProtoMessage()

func (*ListFederationRelationshipsResponse) ProtoReflect

func (*ListFederationRelationshipsResponse) Reset

func (*ListFederationRelationshipsResponse) String

type RefreshBundleRequest

type RefreshBundleRequest struct {

	// Required. The federated trust domain name of the
	// bundle to refresh (e.g., "example.org").
	TrustDomain string `protobuf:"bytes,1,opt,name=trust_domain,json=trustDomain,proto3" json:"trust_domain,omitempty"`
	// contains filtered or unexported fields
}

func (*RefreshBundleRequest) Descriptor deprecated

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

Deprecated: Use RefreshBundleRequest.ProtoReflect.Descriptor instead.

func (*RefreshBundleRequest) GetTrustDomain

func (x *RefreshBundleRequest) GetTrustDomain() string

func (*RefreshBundleRequest) ProtoMessage

func (*RefreshBundleRequest) ProtoMessage()

func (*RefreshBundleRequest) ProtoReflect

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

func (*RefreshBundleRequest) Reset

func (x *RefreshBundleRequest) Reset()

func (*RefreshBundleRequest) String

func (x *RefreshBundleRequest) String() string

type TrustDomainClient

type TrustDomainClient interface {
	// Lists federation relationships with foreign trust domains.
	//
	// The caller must be local or present an admin X509-SVID.
	ListFederationRelationships(ctx context.Context, in *ListFederationRelationshipsRequest, opts ...grpc.CallOption) (*ListFederationRelationshipsResponse, error)
	// Gets a federation relationship with a foreign trust domain.
	// If there is no federation relationship with the specified
	// trust domain, NOT_FOUND is returned.
	//
	// The caller must be local or present an admin X509-SVID.
	GetFederationRelationship(ctx context.Context, in *GetFederationRelationshipRequest, opts ...grpc.CallOption) (*types.FederationRelationship, error)
	// Batch creates one or more federation relationships with
	// foreign trust domains.
	//
	// The caller must be local or present an admin X509-SVID.
	BatchCreateFederationRelationship(ctx context.Context, in *BatchCreateFederationRelationshipRequest, opts ...grpc.CallOption) (*BatchCreateFederationRelationshipResponse, error)
	// Batch updates one or more federation relationships with
	// foreign trust domains.
	//
	// The caller must be local or present an admin X509-SVID.
	BatchUpdateFederationRelationship(ctx context.Context, in *BatchUpdateFederationRelationshipRequest, opts ...grpc.CallOption) (*BatchUpdateFederationRelationshipResponse, error)
	// Batch deletes federation relationships with foreign trust domains.
	//
	// The caller must be local or present an admin X509-SVID.
	BatchDeleteFederationRelationship(ctx context.Context, in *BatchDeleteFederationRelationshipRequest, opts ...grpc.CallOption) (*BatchDeleteFederationRelationshipResponse, error)
	// Refreshes the bundle from the specified federated trust domain.
	// If there is not a federation relationship configured with the
	// specified trust domain, NOT_FOUND is returned.
	//
	// The caller must be local or present an admin X509-SVID.
	RefreshBundle(ctx context.Context, in *RefreshBundleRequest, opts ...grpc.CallOption) (*emptypb.Empty, error)
}

TrustDomainClient is the client API for TrustDomain 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.

type TrustDomainServer

type TrustDomainServer interface {
	// Lists federation relationships with foreign trust domains.
	//
	// The caller must be local or present an admin X509-SVID.
	ListFederationRelationships(context.Context, *ListFederationRelationshipsRequest) (*ListFederationRelationshipsResponse, error)
	// Gets a federation relationship with a foreign trust domain.
	// If there is no federation relationship with the specified
	// trust domain, NOT_FOUND is returned.
	//
	// The caller must be local or present an admin X509-SVID.
	GetFederationRelationship(context.Context, *GetFederationRelationshipRequest) (*types.FederationRelationship, error)
	// Batch creates one or more federation relationships with
	// foreign trust domains.
	//
	// The caller must be local or present an admin X509-SVID.
	BatchCreateFederationRelationship(context.Context, *BatchCreateFederationRelationshipRequest) (*BatchCreateFederationRelationshipResponse, error)
	// Batch updates one or more federation relationships with
	// foreign trust domains.
	//
	// The caller must be local or present an admin X509-SVID.
	BatchUpdateFederationRelationship(context.Context, *BatchUpdateFederationRelationshipRequest) (*BatchUpdateFederationRelationshipResponse, error)
	// Batch deletes federation relationships with foreign trust domains.
	//
	// The caller must be local or present an admin X509-SVID.
	BatchDeleteFederationRelationship(context.Context, *BatchDeleteFederationRelationshipRequest) (*BatchDeleteFederationRelationshipResponse, error)
	// Refreshes the bundle from the specified federated trust domain.
	// If there is not a federation relationship configured with the
	// specified trust domain, NOT_FOUND is returned.
	//
	// The caller must be local or present an admin X509-SVID.
	RefreshBundle(context.Context, *RefreshBundleRequest) (*emptypb.Empty, error)
	// contains filtered or unexported methods
}

TrustDomainServer is the server API for TrustDomain service. All implementations must embed UnimplementedTrustDomainServer for forward compatibility

type UnimplementedTrustDomainServer

type UnimplementedTrustDomainServer struct {
}

UnimplementedTrustDomainServer must be embedded to have forward compatible implementations.

func (UnimplementedTrustDomainServer) RefreshBundle

type UnsafeTrustDomainServer

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

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

Jump to

Keyboard shortcuts

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