Documentation ¶
Index ¶
- func Replay(events []ddd.Event) ddd.Aggregate
- type Created
- type Destroyed
- type ReadRepository
- type Repo
- func (r *Repo) Destroy(timestamp int64) error
- func (r *Repo) Destroyed() bool
- func (r *Repo) Endpoint() string
- func (r *Repo) Events() []ddd.Event
- func (r *Repo) Name() string
- func (r *Repo) Type() Type
- func (r *Repo) UUID() string
- func (r *Repo) Update(name, endpoint string, t Type, timestamp int64) error
- func (r *Repo) Version() int
- type Service
- func (s Service) All(ctx context.Context, req *pb.ReadRepos) (*pb.ReposRead, error)
- func (s Service) Chart(ctx context.Context, req *pb.ReadChart) (*pb.ChartRead, 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) File(ctx context.Context, req *pb.ReadFile) (*pb.FileRead, error)
- func (s Service) Find(ctx context.Context, req *pb.FindRepo) (*pb.RepoFound, error)
- func (s Service) Read(ctx context.Context, req *pb.ReadRepo) (*pb.RepoRead, error)
- func (s Service) Ready() error
- func (s Service) Update(ctx context.Context, cmd *pb.UpdateRepo) (*pb.RepoUpdated, error)
- type Type
- type Updated
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Destroyed ¶
type Destroyed struct {
Timestamp int64
}
Destroyed is the event for when a repo is destroyed
type ReadRepository ¶ added in v0.4.0
type ReadRepository struct {
// contains filtered or unexported fields
}
ReadRepository is the repository for dealing with repo reads
func NewReadRepository ¶ added in v0.4.0
func NewReadRepository(s storage.Storage) *ReadRepository
NewReadRepository creates a repository with the given storage
func (*ReadRepository) All ¶ added in v0.4.0
func (rr *ReadRepository) All() ([]*Repo, error)
All gets all repos
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo represents a repository, for now helm only
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) Ready ¶ added in v0.3.2
Ready implements the ReadyService method so this service can be part of a health check routine
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.