Documentation ¶
Index ¶
- type ContourRepo
- func (store ContourRepo) AddServices(ctx context.Context, contour *contours.RepeatedServiceWithId) (err error)
- func (store ContourRepo) Create(ctx context.Context, contour *contours.ContourInfoWithoutServices) error
- func (store ContourRepo) Delete(ctx context.Context, contour *contours.ContourIdAndName) (err error)
- func (store ContourRepo) Get(ctx context.Context, contourIn *contours.ContourId) (*contours.ContourInfo, error)
- func (store ContourRepo) GetAppIDByContourID(ctx context.Context, contourID string) (string, error)
- func (store ContourRepo) List(ctx context.Context, stream contours.Contours_ListServer, ...) error
- func (store ContourRepo) RemoveService(ctx context.Context, in *contours.ServiceIdAndContourId) error
- func (store ContourRepo) Update(ctx context.Context, contour *contours.ContourInfoWithoutServices) error
- type ContourStore
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContourRepo ¶
ContourRepo implements ContoueRepo
func (ContourRepo) AddServices ¶
func (store ContourRepo) AddServices(ctx context.Context, contour *contours.RepeatedServiceWithId) (err error)
func (ContourRepo) Create ¶
func (store ContourRepo) Create(ctx context.Context, contour *contours.ContourInfoWithoutServices) error
Create a contour (add to db)
func (ContourRepo) Delete ¶
func (store ContourRepo) Delete(ctx context.Context, contour *contours.ContourIdAndName) (err error)
Delete a contour
func (ContourRepo) Get ¶
func (store ContourRepo) Get(ctx context.Context, contourIn *contours.ContourId) (*contours.ContourInfo, error)
Get a contour (from db)
func (ContourRepo) GetAppIDByContourID ¶
func (ContourRepo) List ¶
func (store ContourRepo) List(ctx context.Context, stream contours.Contours_ListServer, options *contours.ContoursListOption) error
func (ContourRepo) RemoveService ¶
func (store ContourRepo) RemoveService(ctx context.Context, in *contours.ServiceIdAndContourId) error
func (ContourRepo) Update ¶
func (store ContourRepo) Update(ctx context.Context, contour *contours.ContourInfoWithoutServices) error
type ContourStore ¶
type ContourStore interface { Create(context.Context, *contours.ContourInfoWithoutServices) error Get(context.Context, *contours.ContourId) (*contours.ContourInfo, error) Update(context.Context, *contours.ContourInfoWithoutServices) error List(context.Context, contours.Contours_ListServer, *contours.ContoursListOption) error Delete(context.Context, *contours.ContourIdAndName) error AddServices(context.Context, *contours.RepeatedServiceWithId) error RemoveService(context.Context, *contours.ServiceIdAndContourId) error GetAppIDByContourID(context.Context, string) (string, error) }
ContourStore represents methods to store contour
Click to show internal directories.
Click to hide internal directories.