Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Repository ¶
type Repository interface { // Backend CreateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error) DeleteBackend(ctx context.Context, id string) error UpdateBackend(ctx context.Context, backend *model.Backend) (*model.Backend, error) GetBackend(ctx context.Context, id string) (*model.Backend, error) ListBackend(ctx context.Context, limit, offset int, query interface{}) ([]*model.Backend, error) CreateTier(ctx context.Context, tier *model.Tier) (*model.Tier, error) DeleteTier(ctx context.Context, id string) error UpdateTier(ctx context.Context, tier *model.Tier) (*model.Tier, error) GetTier(ctx context.Context, id string) (*model.Tier, error) ListTiers(ctx context.Context, limit, offset int, query interface{}) ([]*model.Tier, error) Close() }
var Repo Repository
Click to show internal directories.
Click to hide internal directories.