remote

package
v0.5.5 Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrAdminServiceUnavailable = errors.New("admin service is unavailable")

Functions

This section is empty.

Types

type Proxy

type Proxy struct {
	rpc.UnimplementedRegistryServer
	rpc.UnimplementedAdminServer
	// contains filtered or unexported fields
}

Proxy implements a local proxy for a remote Registry server. This allows tests written to the generated "RegistryServer" and "AdminServer" interfaces to be run against remote servers.

func NewProxyForHostedService

func NewProxyForHostedService(projectID string) *Proxy

NewProxyForHostedService creates a proxy with the default configuration for a connection to a remote server with a single project and no Admin service.

func (*Proxy) Close

func (p *Proxy) Close()

func (*Proxy) CreateApi

func (p *Proxy) CreateApi(ctx context.Context, req *rpc.CreateApiRequest) (*rpc.Api, error)

func (*Proxy) CreateApiDeployment

func (p *Proxy) CreateApiDeployment(ctx context.Context, req *rpc.CreateApiDeploymentRequest) (*rpc.ApiDeployment, error)

func (*Proxy) CreateApiSpec

func (p *Proxy) CreateApiSpec(ctx context.Context, req *rpc.CreateApiSpecRequest) (*rpc.ApiSpec, error)

func (*Proxy) CreateApiVersion

func (p *Proxy) CreateApiVersion(ctx context.Context, req *rpc.CreateApiVersionRequest) (*rpc.ApiVersion, error)

func (*Proxy) CreateArtifact

func (p *Proxy) CreateArtifact(ctx context.Context, req *rpc.CreateArtifactRequest) (*rpc.Artifact, error)

func (*Proxy) CreateProject

func (p *Proxy) CreateProject(ctx context.Context, req *rpc.CreateProjectRequest) (*rpc.Project, error)

func (*Proxy) DeleteApi

func (p *Proxy) DeleteApi(ctx context.Context, req *rpc.DeleteApiRequest) (*emptypb.Empty, error)

func (*Proxy) DeleteApiDeployment

func (p *Proxy) DeleteApiDeployment(ctx context.Context, req *rpc.DeleteApiDeploymentRequest) (*emptypb.Empty, error)

func (*Proxy) DeleteApiDeploymentRevision

func (p *Proxy) DeleteApiDeploymentRevision(ctx context.Context, req *rpc.DeleteApiDeploymentRevisionRequest) (*rpc.ApiDeployment, error)

func (*Proxy) DeleteApiSpec

func (p *Proxy) DeleteApiSpec(ctx context.Context, req *rpc.DeleteApiSpecRequest) (*emptypb.Empty, error)

func (*Proxy) DeleteApiSpecRevision

func (p *Proxy) DeleteApiSpecRevision(ctx context.Context, req *rpc.DeleteApiSpecRevisionRequest) (*rpc.ApiSpec, error)

func (*Proxy) DeleteApiVersion

func (p *Proxy) DeleteApiVersion(ctx context.Context, req *rpc.DeleteApiVersionRequest) (*emptypb.Empty, error)

func (*Proxy) DeleteArtifact

func (p *Proxy) DeleteArtifact(ctx context.Context, req *rpc.DeleteArtifactRequest) (*emptypb.Empty, error)

func (*Proxy) DeleteProject

func (p *Proxy) DeleteProject(ctx context.Context, req *rpc.DeleteProjectRequest) (*emptypb.Empty, error)

func (*Proxy) GetApi

func (p *Proxy) GetApi(ctx context.Context, req *rpc.GetApiRequest) (*rpc.Api, error)

func (*Proxy) GetApiDeployment

func (p *Proxy) GetApiDeployment(ctx context.Context, req *rpc.GetApiDeploymentRequest) (*rpc.ApiDeployment, error)

func (*Proxy) GetApiSpec

func (p *Proxy) GetApiSpec(ctx context.Context, req *rpc.GetApiSpecRequest) (*rpc.ApiSpec, error)

func (*Proxy) GetApiSpecContents

func (p *Proxy) GetApiSpecContents(ctx context.Context, req *rpc.GetApiSpecContentsRequest) (*httpbody.HttpBody, error)

func (*Proxy) GetApiVersion

func (p *Proxy) GetApiVersion(ctx context.Context, req *rpc.GetApiVersionRequest) (*rpc.ApiVersion, error)

func (*Proxy) GetArtifact

func (p *Proxy) GetArtifact(ctx context.Context, req *rpc.GetArtifactRequest) (*rpc.Artifact, error)

func (*Proxy) GetArtifactContents

func (p *Proxy) GetArtifactContents(ctx context.Context, req *rpc.GetArtifactContentsRequest) (*httpbody.HttpBody, error)

func (*Proxy) GetProject

func (p *Proxy) GetProject(ctx context.Context, req *rpc.GetProjectRequest) (*rpc.Project, error)

func (*Proxy) GetStatus

func (p *Proxy) GetStatus(ctx context.Context, req *emptypb.Empty) (*rpc.Status, error)

func (*Proxy) GetStorage

func (p *Proxy) GetStorage(ctx context.Context, req *emptypb.Empty) (*rpc.Storage, error)

func (*Proxy) ListApiDeployments

func (*Proxy) ListApiSpecs

func (p *Proxy) ListApiSpecs(ctx context.Context, req *rpc.ListApiSpecsRequest) (*rpc.ListApiSpecsResponse, error)

func (*Proxy) ListApiVersions

func (p *Proxy) ListApiVersions(ctx context.Context, req *rpc.ListApiVersionsRequest) (*rpc.ListApiVersionsResponse, error)

func (*Proxy) ListApis

func (p *Proxy) ListApis(ctx context.Context, req *rpc.ListApisRequest) (*rpc.ListApisResponse, error)

func (*Proxy) ListArtifacts

func (p *Proxy) ListArtifacts(ctx context.Context, req *rpc.ListArtifactsRequest) (*rpc.ListArtifactsResponse, error)

func (*Proxy) ListProjects

func (p *Proxy) ListProjects(ctx context.Context, req *rpc.ListProjectsRequest) (*rpc.ListProjectsResponse, error)

func (*Proxy) MigrateDatabase

func (p *Proxy) MigrateDatabase(ctx context.Context, req *rpc.MigrateDatabaseRequest) (*longrunning.Operation, error)

func (*Proxy) Open

func (p *Proxy) Open(ctx context.Context) error

func (*Proxy) ReplaceArtifact

func (p *Proxy) ReplaceArtifact(ctx context.Context, req *rpc.ReplaceArtifactRequest) (*rpc.Artifact, error)

func (*Proxy) RollbackApiDeployment

func (p *Proxy) RollbackApiDeployment(ctx context.Context, req *rpc.RollbackApiDeploymentRequest) (*rpc.ApiDeployment, error)

func (*Proxy) RollbackApiSpec

func (p *Proxy) RollbackApiSpec(ctx context.Context, req *rpc.RollbackApiSpecRequest) (*rpc.ApiSpec, error)

func (*Proxy) TagApiDeploymentRevision

func (p *Proxy) TagApiDeploymentRevision(ctx context.Context, req *rpc.TagApiDeploymentRevisionRequest) (*rpc.ApiDeployment, error)

func (*Proxy) TagApiSpecRevision

func (p *Proxy) TagApiSpecRevision(ctx context.Context, req *rpc.TagApiSpecRevisionRequest) (*rpc.ApiSpec, error)

func (*Proxy) UpdateApi

func (p *Proxy) UpdateApi(ctx context.Context, req *rpc.UpdateApiRequest) (*rpc.Api, error)

func (*Proxy) UpdateApiDeployment

func (p *Proxy) UpdateApiDeployment(ctx context.Context, req *rpc.UpdateApiDeploymentRequest) (*rpc.ApiDeployment, error)

func (*Proxy) UpdateApiSpec

func (p *Proxy) UpdateApiSpec(ctx context.Context, req *rpc.UpdateApiSpecRequest) (*rpc.ApiSpec, error)

func (*Proxy) UpdateApiVersion

func (p *Proxy) UpdateApiVersion(ctx context.Context, req *rpc.UpdateApiVersionRequest) (*rpc.ApiVersion, error)

func (*Proxy) UpdateProject

func (p *Proxy) UpdateProject(ctx context.Context, req *rpc.UpdateProjectRequest) (*rpc.Project, error)

Jump to

Keyboard shortcuts

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