Documentation ¶
Index ¶
- type Created
- type Destroyed
- type Repo
- type Repository
- type Service
- func (s Service) All(ctx context.Context, req *pb.ReadRepos) (*pb.ReposRead, error)
- func (s Service) Charts(ctx context.Context, req *pb.ReadRepo) (*pb.ChartsRead, error)
- func (s Service) Create(ctx context.Context, cmd *pb.CreateRepo) (*pb.RepoCreated, error)
- func (s Service) Destroy(ctx context.Context, cmd *pb.DestroyRepo) (*pb.RepoDestroyed, error)
- func (s Service) Read(ctx context.Context, req *pb.ReadRepo) (*pb.RepoRead, error)
- func (s Service) Update(ctx context.Context, cmd *pb.UpdateRepo) (*pb.RepoUpdated, error)
- type Updated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Destroyed ¶
type Destroyed struct {
Timestamp int64
}
Destroyed is the event for when a repo is destroyed
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo represents a repository, for now helm only
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
Repository is the repository for dealing with repo storage
func NewRepository ¶
func NewRepository(coll string, store storage.Storage) *Repository
NewRepository creates a repository with the given storage
func (*Repository) All ¶
func (r *Repository) All() ([]*Repo, error)
All gets all repos, excluding deleted items
func (*Repository) Load ¶
func (r *Repository) Load(uuid string) (*Repo, error)
Load reads out the repo for the uuid given
func (*Repository) Save ¶
func (r *Repository) Save(repo *Repo) error
Save persists the new events for the repo given
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the implementation for twirp to use
func NewService ¶
NewService creates the service
func (Service) Create ¶
func (s Service) Create(ctx context.Context, cmd *pb.CreateRepo) (*pb.RepoCreated, error)
Create adds a repo to the list of configurations
func (Service) Destroy ¶
func (s Service) Destroy(ctx context.Context, cmd *pb.DestroyRepo) (*pb.RepoDestroyed, error)
Destroy removes a repo from the list of configurations
func (Service) Update ¶
func (s Service) Update(ctx context.Context, cmd *pb.UpdateRepo) (*pb.RepoUpdated, error)
Update edits an already existing repo
Click to show internal directories.
Click to hide internal directories.