deployments

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateCollections = []func(db *Deployments) error{}

Functions

This section is empty.

Types

type DeploymentIndex

type DeploymentIndex struct {
	Deployment   deploymentmodel.Deployment `json:"deployment" bson:"deployment"`
	DeviceGroups []string                   `json:"device_groups" bson:"device_groups"`
	Id           string                     `json:"id" bson:"id"`
}

type Deployments

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

func New

func New(ctx context.Context, wg *sync.WaitGroup, conf config.Config) (*Deployments, error)

func (*Deployments) GetDeploymentByDeviceGroupId

func (this *Deployments) GetDeploymentByDeviceGroupId(deviceGroupId string) (result []deploymentmodel.Deployment, err error)

func (*Deployments) RemoveDeployment

func (this *Deployments) RemoveDeployment(deploymentId string) (err error)

func (*Deployments) SetDeployment

func (this *Deployments) SetDeployment(element deploymentmodel.Deployment) (err error)

Jump to

Keyboard shortcuts

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