mongo

package
v0.0.0-...-6be4e04 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MongoApplicationsAccessor

type MongoApplicationsAccessor struct {
	// contains filtered or unexported fields
}

ApplicationsAccessor mongo implementation of ApplicationAccessor

func NewMongoApplicationsAccessor

func NewMongoApplicationsAccessor(collection *mongo.Collection) *MongoApplicationsAccessor

NewMongoApplicationsAccessor constructs an MongoApplicationsAccessor

func (*MongoApplicationsAccessor) ApplicationVersionExists

func (a *MongoApplicationsAccessor) ApplicationVersionExists(id string) (bool, error)

ApplicationVersionExists returns whether a given application is registered as having a version

func (*MongoApplicationsAccessor) GetApplicationVersion

func (a *MongoApplicationsAccessor) GetApplicationVersion(id string) (models.ApplicationVersion, error)

GetApplicationVersion returns a version document for an application

func (*MongoApplicationsAccessor) UpdateApplicationVersion

func (a *MongoApplicationsAccessor) UpdateApplicationVersion(version models.ApplicationVersion) error

UpdateApplicationVersion updates an application version

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL