Documentation ¶
Overview ¶
TODO: This library is imported from ror, should determine if its a public library or not
Index ¶
- Constants
- func Create(ctx context.Context, desiredversion apicontracts.DesiredVersion) (*mongo.InsertOneResult, error)
- func DeleteByKey(ctx context.Context, key string) (*mongo.DeleteResult, error)
- func GetAll(ctx context.Context) ([]apicontracts.DesiredVersion, error)
- func GetByID(ctx context.Context, id interface{}) (*apicontracts.DesiredVersion, error)
- func GetByKey(ctx context.Context, key string) (*apicontracts.DesiredVersion, error)
- func UpdateByKey(ctx context.Context, key string, desiredversion apicontracts.DesiredVersion) (*mongo.UpdateResult, error)
Constants ¶
View Source
const (
CollectionName = "desired_versions"
)
Variables ¶
This section is empty.
Functions ¶
func Create ¶
func Create(ctx context.Context, desiredversion apicontracts.DesiredVersion) (*mongo.InsertOneResult, error)
func DeleteByKey ¶
func GetAll ¶
func GetAll(ctx context.Context) ([]apicontracts.DesiredVersion, error)
func GetByID ¶
func GetByID(ctx context.Context, id interface{}) (*apicontracts.DesiredVersion, error)
func GetByKey ¶
func GetByKey(ctx context.Context, key string) (*apicontracts.DesiredVersion, error)
func UpdateByKey ¶
func UpdateByKey(ctx context.Context, key string, desiredversion apicontracts.DesiredVersion) (*mongo.UpdateResult, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.