Documentation ¶
Index ¶
- type Server
- func (s *Server) DeleteModel(ctx context.Context, model *pb.Model) (*pb.Model, error)
- func (s *Server) DeleteOrganization(ctx context.Context, organization *pb.Organization) (*pb.Organization, error)
- func (s *Server) DeleteProject(ctx context.Context, project *pb.Project) (*pb.Project, error)
- func (s *Server) DeleteTeam(ctx context.Context, team *pb.Team) (*pb.Team, error)
- func (s *Server) DeleteUser(ctx context.Context, user *pb.User) (*pb.User, error)
- func (s *Server) GetOrganization(ctx context.Context, identifier *pb.Identifier) (*pb.Organization, error)
- func (s *Server) GetProject(ctx context.Context, identifier *pb.Identifier) (*pb.Project, error)
- func (s *Server) GetTeam(ctx context.Context, identifier *pb.Identifier) (*pb.Team, error)
- func (s *Server) GetUser(ctx context.Context, identifier *pb.Identifier) (*pb.User, error)
- func (s *Server) Init() *Server
- func (s *Server) ListModels(identifier *pb.Identifier, listModelsServer pb.Kato_ListModelsServer) error
- func (s *Server) ListOrganizations(identifier *pb.Identifier, ...) error
- func (s *Server) ListProjects(identifier *pb.Identifier, listProjectsServer pb.Kato_ListProjectsServer) error
- func (s *Server) ListTeam(identifier *pb.Identifier, listTeamServer pb.Kato_ListTeamServer) error
- func (s *Server) ListUser(identifier *pb.Identifier, listUserServer pb.Kato_ListUserServer) error
- func (s *Server) PutModel(ctx context.Context, model *pb.Model) (*pb.Model, error)
- func (s *Server) PutOrganization(ctx context.Context, Organization *pb.Organization) (*pb.Organization, error)
- func (s *Server) PutProject(ctx context.Context, Project *pb.Project) (*pb.Project, error)
- func (s *Server) PutTeam(ctx context.Context, Team *pb.Team) (*pb.Team, error)
- func (s *Server) PutUser(ctx context.Context, User *pb.User) (*pb.User, error)
- func (s *Server) Serve()
- type ServerArgs
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server structure
func (*Server) DeleteModel ¶
DeleteModel deletes a model from the database (not S3)
func (*Server) DeleteOrganization ¶
func (s *Server) DeleteOrganization(ctx context.Context, organization *pb.Organization) (*pb.Organization, error)
DeleteOrganization deletes an organization from database
func (*Server) DeleteProject ¶
DeleteProject deletes a project from database
func (*Server) DeleteTeam ¶
DeleteTeam deletes a team from database
func (*Server) DeleteUser ¶
DeleteUser deletes a user from database
func (*Server) GetOrganization ¶
func (s *Server) GetOrganization(ctx context.Context, identifier *pb.Identifier) (*pb.Organization, error)
GetOrganization returns an organization
func (*Server) GetProject ¶
GetProject returns a project
func (*Server) ListModels ¶
func (s *Server) ListModels(identifier *pb.Identifier, listModelsServer pb.Kato_ListModelsServer) error
ListModels returns a list of model ids
func (*Server) ListOrganizations ¶
func (s *Server) ListOrganizations(identifier *pb.Identifier, listOrganizationsServer pb.Kato_ListOrganizationsServer) error
ListOrganizations returns a list of organization ids
func (*Server) ListProjects ¶
func (s *Server) ListProjects(identifier *pb.Identifier, listProjectsServer pb.Kato_ListProjectsServer) error
ListProjects returns a list of project ids
func (*Server) ListTeam ¶
func (s *Server) ListTeam(identifier *pb.Identifier, listTeamServer pb.Kato_ListTeamServer) error
ListTeam returns a list of team ids
func (*Server) ListUser ¶
func (s *Server) ListUser(identifier *pb.Identifier, listUserServer pb.Kato_ListUserServer) error
ListUser returns a list of user ids
func (*Server) PutOrganization ¶
func (s *Server) PutOrganization(ctx context.Context, Organization *pb.Organization) (*pb.Organization, error)
PutOrganization creates/updates an organization
func (*Server) PutProject ¶
PutProject creates/updates a project
type ServerArgs ¶
type ServerArgs struct { S3 struct { AccessKeyID string SecretAccessKey string Endpoint string SSL bool } Database struct { Host string User string Secret string Database string } // contains filtered or unexported fields }
ServerArgs represents the arguments kato server starts with
Source Files ¶
- database.go
- deleteModel.go
- deleteOrganization.go
- deleteProject.go
- deleteTeam.go
- deleteUser.go
- getOrganization.go
- getProject.go
- getTeam.go
- getUser.go
- listModels.go
- listOrganizations.go
- listProjects.go
- listTeams.go
- listUser.go
- prometheus.go
- putModel.go
- putOrganization.go
- putProject.go
- putTeam.go
- putUser.go
- s3.go
- server.go