server

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 33 Imported by: 0

README

server

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunServer

func RunServer(port string, config *Config) error

RunServer runs the Registry server on a specified port

Types

type Config

type Config struct {
	Database string `yaml:"database"`
	DBConfig string `yaml:"dbconfig"`
	Notify   bool   `yaml:"notify"`
	Log      string `yaml:"log"`
}

Config configures the registry server.

type RegistryServer

type RegistryServer struct {
	// contains filtered or unexported fields
}

RegistryServer implements a Registry server.

func (*RegistryServer) CreateApi

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

CreateApi handles the corresponding API request.

func (*RegistryServer) CreateLabel

func (s *RegistryServer) CreateLabel(ctx context.Context, request *rpc.CreateLabelRequest) (*rpc.Label, error)

CreateLabel handles the corresponding API request.

func (*RegistryServer) CreateProject

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

CreateProject handles the corresponding API request.

func (*RegistryServer) CreateProperty

func (s *RegistryServer) CreateProperty(ctx context.Context, request *rpc.CreatePropertyRequest) (*rpc.Property, error)

CreateProperty handles the corresponding API request.

func (*RegistryServer) CreateSpec

func (s *RegistryServer) CreateSpec(ctx context.Context, request *rpc.CreateSpecRequest) (*rpc.Spec, error)

CreateSpec handles the corresponding API request.

func (*RegistryServer) CreateVersion

func (s *RegistryServer) CreateVersion(ctx context.Context, request *rpc.CreateVersionRequest) (*rpc.Version, error)

CreateVersion handles the corresponding API request.

func (*RegistryServer) DeleteApi

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

DeleteApi handles the corresponding API request.

func (*RegistryServer) DeleteLabel

func (s *RegistryServer) DeleteLabel(ctx context.Context, request *rpc.DeleteLabelRequest) (*empty.Empty, error)

DeleteLabel handles the corresponding API request.

func (*RegistryServer) DeleteProject

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

DeleteProject handles the corresponding API request.

func (*RegistryServer) DeleteProperty

func (s *RegistryServer) DeleteProperty(ctx context.Context, request *rpc.DeletePropertyRequest) (*empty.Empty, error)

DeleteProperty handles the corresponding API request.

func (*RegistryServer) DeleteSpec

func (s *RegistryServer) DeleteSpec(ctx context.Context, request *rpc.DeleteSpecRequest) (*empty.Empty, error)

DeleteSpec handles the corresponding API request.

func (*RegistryServer) DeleteSpecRevision

func (s *RegistryServer) DeleteSpecRevision(ctx context.Context, request *rpc.DeleteSpecRevisionRequest) (*empty.Empty, error)

DeleteSpecRevision handles the corresponding API request.

func (*RegistryServer) DeleteVersion

func (s *RegistryServer) DeleteVersion(ctx context.Context, request *rpc.DeleteVersionRequest) (*empty.Empty, error)

DeleteVersion handles the corresponding API request.

func (*RegistryServer) GetApi

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

GetApi handles the corresponding API request.

func (*RegistryServer) GetLabel

func (s *RegistryServer) GetLabel(ctx context.Context, request *rpc.GetLabelRequest) (*rpc.Label, error)

GetLabel handles the corresponding API request.

func (*RegistryServer) GetProject

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

GetProject handles the corresponding API request.

func (*RegistryServer) GetProperty

func (s *RegistryServer) GetProperty(ctx context.Context, request *rpc.GetPropertyRequest) (*rpc.Property, error)

GetProperty handles the corresponding API request.

func (*RegistryServer) GetSpec

func (s *RegistryServer) GetSpec(ctx context.Context, request *rpc.GetSpecRequest) (*rpc.Spec, error)

GetSpec handles the corresponding API request.

func (*RegistryServer) GetStatus

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

GetStatus handles the corresponding API request.

func (*RegistryServer) GetVersion

func (s *RegistryServer) GetVersion(ctx context.Context, request *rpc.GetVersionRequest) (*rpc.Version, error)

GetVersion handles the corresponding API request.

func (*RegistryServer) ListApis

ListApis handles the corresponding API request.

func (*RegistryServer) ListLabels

ListLabels handles the corresponding API request.

func (*RegistryServer) ListProjects

ListProjects handles the corresponding API request.

func (*RegistryServer) ListProperties

ListProperties handles the corresponding API request.

func (*RegistryServer) ListSpecRevisionTags

ListSpecRevisionTags handles the corresponding API request.

func (*RegistryServer) ListSpecRevisions

ListSpecRevisions handles the corresponding API request.

func (*RegistryServer) ListSpecs

ListSpecs handles the corresponding API request.

func (*RegistryServer) ListVersions

ListVersions handles the corresponding API request.

func (*RegistryServer) RollbackSpec

func (s *RegistryServer) RollbackSpec(ctx context.Context, request *rpc.RollbackSpecRequest) (*rpc.Spec, error)

RollbackSpec handles the corresponding API request.

func (*RegistryServer) TagSpecRevision

func (s *RegistryServer) TagSpecRevision(ctx context.Context, request *rpc.TagSpecRevisionRequest) (*rpc.Spec, error)

TagSpecRevision handles the corresponding API request.

func (*RegistryServer) UpdateApi

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

UpdateApi handles the corresponding API request.

func (*RegistryServer) UpdateProject

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

UpdateProject handles the corresponding API request.

func (*RegistryServer) UpdateProperty

func (s *RegistryServer) UpdateProperty(ctx context.Context, request *rpc.UpdatePropertyRequest) (*rpc.Property, error)

UpdateProperty handles the corresponding API request.

func (*RegistryServer) UpdateSpec

func (s *RegistryServer) UpdateSpec(ctx context.Context, request *rpc.UpdateSpecRequest) (*rpc.Spec, error)

UpdateSpec handles the corresponding API request.

func (*RegistryServer) UpdateVersion

func (s *RegistryServer) UpdateVersion(ctx context.Context, request *rpc.UpdateVersionRequest) (*rpc.Version, error)

UpdateVersion handles the corresponding API request.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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