server

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2021 License: Apache-2.0 Imports: 23 Imported by: 0

README

server

This directory contains most of the handwritten code that implements the registry-server.

Documentation

Index

Constants

View Source
const TopicName = "registry-events"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Database  string
	DBConfig  string
	Log       string
	Notify    bool
	ProjectID string
}

Config configures the registry server.

type LogLevel added in v0.3.0

type LogLevel int

LogLevel indicates which types of messages should be logged by the server.

type RegistryServer

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

RegistryServer implements a Registry server.

func New added in v0.3.0

func New(config Config) *RegistryServer

func (*RegistryServer) CreateApi

func (s *RegistryServer) CreateApi(ctx context.Context, req *rpc.CreateApiRequest) (*rpc.Api, error)

CreateApi handles the corresponding API request.

func (*RegistryServer) CreateApiSpec added in v0.2.0

func (s *RegistryServer) CreateApiSpec(ctx context.Context, req *rpc.CreateApiSpecRequest) (*rpc.ApiSpec, error)

CreateApiSpec handles the corresponding API request.

func (*RegistryServer) CreateApiVersion added in v0.2.0

func (s *RegistryServer) CreateApiVersion(ctx context.Context, req *rpc.CreateApiVersionRequest) (*rpc.ApiVersion, error)

CreateApiVersion handles the corresponding API request.

func (*RegistryServer) CreateArtifact added in v0.2.0

func (s *RegistryServer) CreateArtifact(ctx context.Context, req *rpc.CreateArtifactRequest) (*rpc.Artifact, error)

CreateArtifact handles the corresponding API request.

func (*RegistryServer) CreateProject

func (s *RegistryServer) CreateProject(ctx context.Context, req *rpc.CreateProjectRequest) (*rpc.Project, error)

CreateProject handles the corresponding API request.

func (*RegistryServer) DeleteApi

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

DeleteApi handles the corresponding API request.

func (*RegistryServer) DeleteApiSpec added in v0.2.0

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

DeleteApiSpec handles the corresponding API request.

func (*RegistryServer) DeleteApiSpecRevision added in v0.2.0

func (s *RegistryServer) DeleteApiSpecRevision(ctx context.Context, req *rpc.DeleteApiSpecRevisionRequest) (*emptypb.Empty, error)

DeleteApiSpecRevision handles the corresponding API request.

func (*RegistryServer) DeleteApiVersion added in v0.2.0

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

DeleteApiVersion handles the corresponding API request.

func (*RegistryServer) DeleteArtifact added in v0.2.0

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

DeleteArtifact handles the corresponding API request.

func (*RegistryServer) DeleteProject

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

DeleteProject handles the corresponding API request.

func (*RegistryServer) GetApi

func (s *RegistryServer) GetApi(ctx context.Context, req *rpc.GetApiRequest) (*rpc.Api, error)

GetApi handles the corresponding API request.

func (*RegistryServer) GetApiSpec added in v0.2.0

func (s *RegistryServer) GetApiSpec(ctx context.Context, req *rpc.GetApiSpecRequest) (*rpc.ApiSpec, error)

GetApiSpec handles the corresponding API request.

func (*RegistryServer) GetApiSpecContents added in v0.3.0

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

GetApiSpecContents handles the corresponding API request.

func (*RegistryServer) GetApiVersion added in v0.2.0

func (s *RegistryServer) GetApiVersion(ctx context.Context, req *rpc.GetApiVersionRequest) (*rpc.ApiVersion, error)

GetApiVersion handles the corresponding API request.

func (*RegistryServer) GetArtifact added in v0.2.0

func (s *RegistryServer) GetArtifact(ctx context.Context, req *rpc.GetArtifactRequest) (*rpc.Artifact, error)

GetArtifact handles the corresponding API request.

func (*RegistryServer) GetArtifactContents added in v0.3.0

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

GetArtifactContents handles the corresponding API request.

func (*RegistryServer) GetProject

func (s *RegistryServer) GetProject(ctx context.Context, req *rpc.GetProjectRequest) (*rpc.Project, error)

GetProject handles the corresponding API request.

func (*RegistryServer) GetStatus

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

GetStatus handles the corresponding API request.

func (*RegistryServer) ListApiSpecRevisions added in v0.2.0

ListApiSpecRevisions handles the corresponding API request.

func (*RegistryServer) ListApiSpecs added in v0.2.0

ListApiSpecs handles the corresponding API request.

func (*RegistryServer) ListApiVersions added in v0.2.0

ListApiVersions handles the corresponding API request.

func (*RegistryServer) ListApis

ListApis handles the corresponding API request.

func (*RegistryServer) ListArtifacts added in v0.2.0

ListArtifacts handles the corresponding API request.

func (*RegistryServer) ListProjects

ListProjects handles the corresponding API request.

func (*RegistryServer) ReplaceArtifact added in v0.2.0

func (s *RegistryServer) ReplaceArtifact(ctx context.Context, req *rpc.ReplaceArtifactRequest) (*rpc.Artifact, error)

ReplaceArtifact handles the corresponding API request.

func (*RegistryServer) RollbackApiSpec added in v0.2.0

func (s *RegistryServer) RollbackApiSpec(ctx context.Context, req *rpc.RollbackApiSpecRequest) (*rpc.ApiSpec, error)

RollbackApiSpec handles the corresponding API request.

func (*RegistryServer) Start added in v0.3.0

func (s *RegistryServer) Start(ctx context.Context, listener net.Listener)

Start runs the Registry server using the provided listener. It blocks until the context is cancelled.

func (*RegistryServer) TagApiSpecRevision added in v0.2.0

func (s *RegistryServer) TagApiSpecRevision(ctx context.Context, req *rpc.TagApiSpecRevisionRequest) (*rpc.ApiSpec, error)

TagApiSpecRevision handles the corresponding API request.

func (*RegistryServer) UpdateApi

func (s *RegistryServer) UpdateApi(ctx context.Context, req *rpc.UpdateApiRequest) (*rpc.Api, error)

UpdateApi handles the corresponding API request.

func (*RegistryServer) UpdateApiSpec added in v0.2.0

func (s *RegistryServer) UpdateApiSpec(ctx context.Context, req *rpc.UpdateApiSpecRequest) (*rpc.ApiSpec, error)

UpdateApiSpec handles the corresponding API request.

func (*RegistryServer) UpdateApiVersion added in v0.2.0

func (s *RegistryServer) UpdateApiVersion(ctx context.Context, req *rpc.UpdateApiVersionRequest) (*rpc.ApiVersion, error)

UpdateApiVersion handles the corresponding API request.

func (*RegistryServer) UpdateProject

func (s *RegistryServer) UpdateProject(ctx context.Context, req *rpc.UpdateProjectRequest) (*rpc.Project, error)

UpdateProject handles the corresponding API request.

Directories

Path Synopsis
internal

Jump to

Keyboard shortcuts

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