Documentation ¶
Index ¶
- Variables
- type TerrariumGrpcGateway
- func (gw *TerrariumGrpcGateway) BeginVersion(ctx context.Context, request *terrariumModule.BeginVersionRequest) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) BeginVersionWithClient(ctx context.Context, request *terrariumModule.BeginVersionRequest, ...) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) DownloadSourceZip(request *terrariumModule.DownloadSourceZipRequest, ...) error
- func (gw *TerrariumGrpcGateway) DownloadSourceZipWithClient(request *terrariumModule.DownloadSourceZipRequest, ...) error
- func (gw *TerrariumGrpcGateway) EndProvider(ctx context.Context, request *terrariumProvider.EndProviderRequest) (*terrariumProvider.Response, error)
- func (gw *TerrariumGrpcGateway) EndProviderWithClient(ctx context.Context, request *terrariumProvider.EndProviderRequest, ...) (*terrariumProvider.Response, error)
- func (gw *TerrariumGrpcGateway) EndVersion(ctx context.Context, request *terrariumModule.EndVersionRequest) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) EndVersionWithClient(ctx context.Context, request *terrariumModule.EndVersionRequest, ...) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) Publish(ctx context.Context, request *releasePkg.PublishRequest) (*releasePkg.PublishResponse, error)
- func (gw *TerrariumGrpcGateway) PublishTag(ctx context.Context, request *terrariumModule.PublishTagRequest) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) PublishTagWithClient(ctx context.Context, request *terrariumModule.PublishTagRequest, ...) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) PublishWithClient(ctx context.Context, request *releasePkg.PublishRequest, ...) (*releasePkg.PublishResponse, error)
- func (gw *TerrariumGrpcGateway) Register(ctx context.Context, request *terrariumModule.RegisterModuleRequest) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) RegisterContainerDependencies(ctx context.Context, ...) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) RegisterContainerDependenciesWithClient(ctx context.Context, ...) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) RegisterModuleDependencies(ctx context.Context, ...) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) RegisterModuleDependenciesWithClient(ctx context.Context, ...) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) RegisterProvider(ctx context.Context, request *terrariumProvider.RegisterProviderRequest) (*terrariumProvider.Response, error)
- func (gw *TerrariumGrpcGateway) RegisterProviderWithClient(ctx context.Context, request *terrariumProvider.RegisterProviderRequest, ...) (*terrariumProvider.Response, error)
- func (gw *TerrariumGrpcGateway) RegisterProviderWithServer(grpcServer grpc.ServiceRegistrar) error
- func (gw *TerrariumGrpcGateway) RegisterWithClient(ctx context.Context, request *terrariumModule.RegisterModuleRequest, ...) (*terrariumModule.Response, error)
- func (gw *TerrariumGrpcGateway) RegisterWithServer(grpcServer grpc.ServiceRegistrar) error
- func (gw *TerrariumGrpcGateway) RetrieveContainerDependencies(request *terrariumModule.RetrieveContainerDependenciesRequest, ...) error
- func (gw *TerrariumGrpcGateway) RetrieveContainerDependenciesV2(request *terrariumModule.RetrieveContainerDependenciesRequestV2, ...) error
- func (gw *TerrariumGrpcGateway) RetrieveContainerDependenciesV2WithClient(request *terrariumModule.RetrieveContainerDependenciesRequestV2, ...) error
- func (gw *TerrariumGrpcGateway) RetrieveModuleDependencies(request *terrariumModule.RetrieveModuleDependenciesRequest, ...) error
- func (gw *TerrariumGrpcGateway) RetrieveModuleDependenciesWithClient(request *terrariumModule.RetrieveModuleDependenciesRequest, ...) error
- func (gw *TerrariumGrpcGateway) UploadSourceZip(server terrariumModule.Publisher_UploadSourceZipServer) error
- func (gw *TerrariumGrpcGateway) UploadSourceZipWithClient(server terrariumModule.Publisher_UploadSourceZipServer, ...) error
Constants ¶
This section is empty.
Variables ¶
var ( ConnectToRegistrarError = status.Error(codes.Unavailable, "Failed to connect to Registrar service.") ConnectToVersionManagerError = status.Error(codes.Unavailable, "Failed to connect to Version manager service.") ConnectToStorageError = status.Error(codes.Unavailable, "Failed to connect to Storage service.") ConnectToDependencyManagerError = status.Error(codes.Unavailable, "Failed to connect to Dependency manager service.") ConnectToReleaseError = status.Error(codes.Unavailable, "Failed to connect to Release service.") UnknownVersionManagerActionError = status.Error(codes.InvalidArgument, "Unknown Version manager action requested.") ForwardModuleDependenciesError = status.Error(codes.Unknown, "Failed to send module dependencies.") ForwardContainerDependenciesError = status.Error(codes.Unknown, "Failed to send module dependencies.") )
Functions ¶
This section is empty.
Types ¶
type TerrariumGrpcGateway ¶
type TerrariumGrpcGateway struct { terrariumModule.UnimplementedPublisherServer terrariumModule.UnimplementedConsumerServer releasePkg.UnimplementedReleasePublisherServer terrariumProvider.UnimplementedProviderPublisherServer // contains filtered or unexported fields }
func New ¶
func New(registrarClient moduleServices.RegistrarClient, tagManagerClient moduleServices.TagManagerClient, moduleVersionManagerClient moduleServices.VersionManagerClient, storageClient moduleServices.StorageClient, dependencyManagerClient moduleServices.DependencyManagerClient, releasePublisherClient release.PublisherClient, providerVersionManagerClient providerServices.VersionManagerClient, providerStorageClient providerServices.StorageClient) *TerrariumGrpcGateway
func (*TerrariumGrpcGateway) BeginVersion ¶
func (gw *TerrariumGrpcGateway) BeginVersion(ctx context.Context, request *terrariumModule.BeginVersionRequest) (*terrariumModule.Response, error)
BeginVersion creates new version with Version Manager service
func (*TerrariumGrpcGateway) BeginVersionWithClient ¶
func (gw *TerrariumGrpcGateway) BeginVersionWithClient(ctx context.Context, request *terrariumModule.BeginVersionRequest, client moduleServices.VersionManagerClient) (*terrariumModule.Response, error)
BeginVersionWithClient calls BeginVersion on Version Manager client
func (*TerrariumGrpcGateway) DownloadSourceZip ¶
func (gw *TerrariumGrpcGateway) DownloadSourceZip(request *terrariumModule.DownloadSourceZipRequest, server terrariumModule.Consumer_DownloadSourceZipServer) error
DownloadSourceZip downloads source zip from Storage service
func (*TerrariumGrpcGateway) DownloadSourceZipWithClient ¶
func (gw *TerrariumGrpcGateway) DownloadSourceZipWithClient(request *terrariumModule.DownloadSourceZipRequest, server terrariumModule.Consumer_DownloadSourceZipServer, client moduleServices.StorageClient) error
DownloadSourceZipWithClient calls DownloadSourceZip on Storage client
func (*TerrariumGrpcGateway) EndProvider ¶
func (gw *TerrariumGrpcGateway) EndProvider(ctx context.Context, request *terrariumProvider.EndProviderRequest) (*terrariumProvider.Response, error)
func (*TerrariumGrpcGateway) EndProviderWithClient ¶
func (gw *TerrariumGrpcGateway) EndProviderWithClient(ctx context.Context, request *terrariumProvider.EndProviderRequest, client providerServices.VersionManagerClient) (*terrariumProvider.Response, error)
EndProviderWithClient calls AbortProviderVersion/PublishVersion on Version Manager client
func (*TerrariumGrpcGateway) EndVersion ¶
func (gw *TerrariumGrpcGateway) EndVersion(ctx context.Context, request *terrariumModule.EndVersionRequest) (*terrariumModule.Response, error)
EndVersion publishes/aborts with Version Manger service
func (*TerrariumGrpcGateway) EndVersionWithClient ¶
func (gw *TerrariumGrpcGateway) EndVersionWithClient(ctx context.Context, request *terrariumModule.EndVersionRequest, client moduleServices.VersionManagerClient) (*terrariumModule.Response, error)
EndVersionWithClient calls AbortVersion/PublishVersion on Version Manager client
func (*TerrariumGrpcGateway) Publish ¶
func (gw *TerrariumGrpcGateway) Publish(ctx context.Context, request *releasePkg.PublishRequest) (*releasePkg.PublishResponse, error)
Publish a new release with Release service
func (*TerrariumGrpcGateway) PublishTag ¶
func (gw *TerrariumGrpcGateway) PublishTag(ctx context.Context, request *terrariumModule.PublishTagRequest) (*terrariumModule.Response, error)
Register PublishTag with Registrar service
func (*TerrariumGrpcGateway) PublishTagWithClient ¶
func (gw *TerrariumGrpcGateway) PublishTagWithClient(ctx context.Context, request *terrariumModule.PublishTagRequest, client moduleServices.TagManagerClient) (*terrariumModule.Response, error)
func (*TerrariumGrpcGateway) PublishWithClient ¶
func (gw *TerrariumGrpcGateway) PublishWithClient(ctx context.Context, request *releasePkg.PublishRequest, client release.PublisherClient) (*releasePkg.PublishResponse, error)
PublishWithClient calls Publish on Release client
func (*TerrariumGrpcGateway) Register ¶
func (gw *TerrariumGrpcGateway) Register(ctx context.Context, request *terrariumModule.RegisterModuleRequest) (*terrariumModule.Response, error)
Register new module with Registrar service
func (*TerrariumGrpcGateway) RegisterContainerDependencies ¶
func (gw *TerrariumGrpcGateway) RegisterContainerDependencies(ctx context.Context, request *terrariumModule.RegisterContainerDependenciesRequest) (*terrariumModule.Response, error)
RegisterContainerDependencies registers Container dependencies with Dependency Manager service
func (*TerrariumGrpcGateway) RegisterContainerDependenciesWithClient ¶
func (gw *TerrariumGrpcGateway) RegisterContainerDependenciesWithClient(ctx context.Context, request *terrariumModule.RegisterContainerDependenciesRequest, client moduleServices.DependencyManagerClient) (*terrariumModule.Response, error)
RegisterContainerDependenciesWithClient calls RegisterContainerDependencies on Dependency Manager client
func (*TerrariumGrpcGateway) RegisterModuleDependencies ¶
func (gw *TerrariumGrpcGateway) RegisterModuleDependencies(ctx context.Context, request *terrariumModule.RegisterModuleDependenciesRequest) (*terrariumModule.Response, error)
RegisterModuleDependencies registers Module dependencies with Dependency Manager service
func (*TerrariumGrpcGateway) RegisterModuleDependenciesWithClient ¶
func (gw *TerrariumGrpcGateway) RegisterModuleDependenciesWithClient(ctx context.Context, request *terrariumModule.RegisterModuleDependenciesRequest, client moduleServices.DependencyManagerClient) (*terrariumModule.Response, error)
RegisterModuleDependenciesWithClient calls RegisterModuleDependencies on Dependency Manager client
func (*TerrariumGrpcGateway) RegisterProvider ¶
func (gw *TerrariumGrpcGateway) RegisterProvider(ctx context.Context, request *terrariumProvider.RegisterProviderRequest) (*terrariumProvider.Response, error)
Registers new provider on version manager client
func (*TerrariumGrpcGateway) RegisterProviderWithClient ¶
func (gw *TerrariumGrpcGateway) RegisterProviderWithClient(ctx context.Context, request *terrariumProvider.RegisterProviderRequest, client providerServices.VersionManagerClient) (*terrariumProvider.Response, error)
RegisterProviderWithClient calls Register on version manager client
func (*TerrariumGrpcGateway) RegisterProviderWithServer ¶
func (gw *TerrariumGrpcGateway) RegisterProviderWithServer(grpcServer grpc.ServiceRegistrar) error
RegisteProviderrWithServer registers TerrariumGrpcGateway with grpc server
func (*TerrariumGrpcGateway) RegisterWithClient ¶
func (gw *TerrariumGrpcGateway) RegisterWithClient(ctx context.Context, request *terrariumModule.RegisterModuleRequest, client moduleServices.RegistrarClient) (*terrariumModule.Response, error)
RegisterWithClient calls Register on Registrar client
func (*TerrariumGrpcGateway) RegisterWithServer ¶
func (gw *TerrariumGrpcGateway) RegisterWithServer(grpcServer grpc.ServiceRegistrar) error
RegisterWithServer registers TerrariumGrpcGateway with grpc server
func (*TerrariumGrpcGateway) RetrieveContainerDependencies ¶
func (gw *TerrariumGrpcGateway) RetrieveContainerDependencies(request *terrariumModule.RetrieveContainerDependenciesRequest, server terrariumModule.Consumer_RetrieveContainerDependenciesServer) error
RetrieveContainerDependencies retrieves Container dependencies from Dependency Manager service
func (*TerrariumGrpcGateway) RetrieveContainerDependenciesV2 ¶
func (gw *TerrariumGrpcGateway) RetrieveContainerDependenciesV2(request *terrariumModule.RetrieveContainerDependenciesRequestV2, server terrariumModule.Consumer_RetrieveContainerDependenciesV2Server) error
RetrieveContainerDependenciesV2 retrieves Container dependencies from Dependency Manager service
func (*TerrariumGrpcGateway) RetrieveContainerDependenciesV2WithClient ¶
func (gw *TerrariumGrpcGateway) RetrieveContainerDependenciesV2WithClient(request *terrariumModule.RetrieveContainerDependenciesRequestV2, server terrariumModule.Consumer_RetrieveContainerDependenciesV2Server, client moduleServices.DependencyManagerClient) error
RetrieveContainerDependenciesWithClient calls RetrieveContainerDependencies on Dependency Manager client
func (*TerrariumGrpcGateway) RetrieveModuleDependencies ¶
func (gw *TerrariumGrpcGateway) RetrieveModuleDependencies(request *terrariumModule.RetrieveModuleDependenciesRequest, server terrariumModule.Consumer_RetrieveModuleDependenciesServer) error
Retrieve Module dependences from Dependency Manager service
func (*TerrariumGrpcGateway) RetrieveModuleDependenciesWithClient ¶
func (gw *TerrariumGrpcGateway) RetrieveModuleDependenciesWithClient(request *terrariumModule.RetrieveModuleDependenciesRequest, server terrariumModule.Consumer_RetrieveModuleDependenciesServer, client moduleServices.DependencyManagerClient) error
func (*TerrariumGrpcGateway) UploadSourceZip ¶
func (gw *TerrariumGrpcGateway) UploadSourceZip(server terrariumModule.Publisher_UploadSourceZipServer) error
UploadSourceZip uploads source zip to Storage service
func (*TerrariumGrpcGateway) UploadSourceZipWithClient ¶
func (gw *TerrariumGrpcGateway) UploadSourceZipWithClient(server terrariumModule.Publisher_UploadSourceZipServer, client moduleServices.StorageClient) error
UploadSourceZipWithClient calls UploadSourceZip on Storage client