Documentation ¶
Index ¶
- func RunServer(port string, config *Config) error
- type Config
- type RegistryServer
- func (s *RegistryServer) CreateApi(ctx context.Context, request *rpc.CreateApiRequest) (*rpc.Api, error)
- func (s *RegistryServer) CreateLabel(ctx context.Context, request *rpc.CreateLabelRequest) (*rpc.Label, error)
- func (s *RegistryServer) CreateProject(ctx context.Context, request *rpc.CreateProjectRequest) (*rpc.Project, error)
- func (s *RegistryServer) CreateProperty(ctx context.Context, request *rpc.CreatePropertyRequest) (*rpc.Property, error)
- func (s *RegistryServer) CreateSpec(ctx context.Context, request *rpc.CreateSpecRequest) (*rpc.Spec, error)
- func (s *RegistryServer) CreateVersion(ctx context.Context, request *rpc.CreateVersionRequest) (*rpc.Version, error)
- func (s *RegistryServer) DeleteApi(ctx context.Context, request *rpc.DeleteApiRequest) (*empty.Empty, error)
- func (s *RegistryServer) DeleteLabel(ctx context.Context, request *rpc.DeleteLabelRequest) (*empty.Empty, error)
- func (s *RegistryServer) DeleteProject(ctx context.Context, request *rpc.DeleteProjectRequest) (*empty.Empty, error)
- func (s *RegistryServer) DeleteProperty(ctx context.Context, request *rpc.DeletePropertyRequest) (*empty.Empty, error)
- func (s *RegistryServer) DeleteSpec(ctx context.Context, request *rpc.DeleteSpecRequest) (*empty.Empty, error)
- func (s *RegistryServer) DeleteSpecRevision(ctx context.Context, request *rpc.DeleteSpecRevisionRequest) (*empty.Empty, error)
- func (s *RegistryServer) DeleteVersion(ctx context.Context, request *rpc.DeleteVersionRequest) (*empty.Empty, error)
- func (s *RegistryServer) GetApi(ctx context.Context, request *rpc.GetApiRequest) (*rpc.Api, error)
- func (s *RegistryServer) GetLabel(ctx context.Context, request *rpc.GetLabelRequest) (*rpc.Label, error)
- func (s *RegistryServer) GetProject(ctx context.Context, request *rpc.GetProjectRequest) (*rpc.Project, error)
- func (s *RegistryServer) GetProperty(ctx context.Context, request *rpc.GetPropertyRequest) (*rpc.Property, error)
- func (s *RegistryServer) GetSpec(ctx context.Context, request *rpc.GetSpecRequest) (*rpc.Spec, error)
- func (s *RegistryServer) GetStatus(ctx context.Context, request *emptypb.Empty) (*rpc.Status, error)
- func (s *RegistryServer) GetVersion(ctx context.Context, request *rpc.GetVersionRequest) (*rpc.Version, error)
- func (s *RegistryServer) ListApis(ctx context.Context, req *rpc.ListApisRequest) (*rpc.ListApisResponse, error)
- func (s *RegistryServer) ListLabels(ctx context.Context, req *rpc.ListLabelsRequest) (*rpc.ListLabelsResponse, error)
- func (s *RegistryServer) ListProjects(ctx context.Context, req *rpc.ListProjectsRequest) (*rpc.ListProjectsResponse, error)
- func (s *RegistryServer) ListProperties(ctx context.Context, req *rpc.ListPropertiesRequest) (*rpc.ListPropertiesResponse, error)
- func (s *RegistryServer) ListSpecRevisionTags(ctx context.Context, req *rpc.ListSpecRevisionTagsRequest) (*rpc.ListSpecRevisionTagsResponse, error)
- func (s *RegistryServer) ListSpecRevisions(ctx context.Context, req *rpc.ListSpecRevisionsRequest) (*rpc.ListSpecRevisionsResponse, error)
- func (s *RegistryServer) ListSpecs(ctx context.Context, req *rpc.ListSpecsRequest) (*rpc.ListSpecsResponse, error)
- func (s *RegistryServer) ListVersions(ctx context.Context, req *rpc.ListVersionsRequest) (*rpc.ListVersionsResponse, error)
- func (s *RegistryServer) RollbackSpec(ctx context.Context, request *rpc.RollbackSpecRequest) (*rpc.Spec, error)
- func (s *RegistryServer) TagSpecRevision(ctx context.Context, request *rpc.TagSpecRevisionRequest) (*rpc.Spec, error)
- func (s *RegistryServer) UpdateApi(ctx context.Context, request *rpc.UpdateApiRequest) (*rpc.Api, error)
- func (s *RegistryServer) UpdateProject(ctx context.Context, request *rpc.UpdateProjectRequest) (*rpc.Project, error)
- func (s *RegistryServer) UpdateProperty(ctx context.Context, request *rpc.UpdatePropertyRequest) (*rpc.Property, error)
- func (s *RegistryServer) UpdateSpec(ctx context.Context, request *rpc.UpdateSpecRequest) (*rpc.Spec, error)
- func (s *RegistryServer) UpdateVersion(ctx context.Context, request *rpc.UpdateVersionRequest) (*rpc.Version, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (s *RegistryServer) ListApis(ctx context.Context, req *rpc.ListApisRequest) (*rpc.ListApisResponse, error)
ListApis handles the corresponding API request.
func (*RegistryServer) ListLabels ¶
func (s *RegistryServer) ListLabels(ctx context.Context, req *rpc.ListLabelsRequest) (*rpc.ListLabelsResponse, error)
ListLabels handles the corresponding API request.
func (*RegistryServer) ListProjects ¶
func (s *RegistryServer) ListProjects(ctx context.Context, req *rpc.ListProjectsRequest) (*rpc.ListProjectsResponse, error)
ListProjects handles the corresponding API request.
func (*RegistryServer) ListProperties ¶
func (s *RegistryServer) ListProperties(ctx context.Context, req *rpc.ListPropertiesRequest) (*rpc.ListPropertiesResponse, error)
ListProperties handles the corresponding API request.
func (*RegistryServer) ListSpecRevisionTags ¶
func (s *RegistryServer) ListSpecRevisionTags(ctx context.Context, req *rpc.ListSpecRevisionTagsRequest) (*rpc.ListSpecRevisionTagsResponse, error)
ListSpecRevisionTags handles the corresponding API request.
func (*RegistryServer) ListSpecRevisions ¶
func (s *RegistryServer) ListSpecRevisions(ctx context.Context, req *rpc.ListSpecRevisionsRequest) (*rpc.ListSpecRevisionsResponse, error)
ListSpecRevisions handles the corresponding API request.
func (*RegistryServer) ListSpecs ¶
func (s *RegistryServer) ListSpecs(ctx context.Context, req *rpc.ListSpecsRequest) (*rpc.ListSpecsResponse, error)
ListSpecs handles the corresponding API request.
func (*RegistryServer) ListVersions ¶
func (s *RegistryServer) ListVersions(ctx context.Context, req *rpc.ListVersionsRequest) (*rpc.ListVersionsResponse, error)
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.