entities

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IOTAppIndexes = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: fields.Id, Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: fields.MetadataName, Value: repos.IndexAsc},
			{Key: fields.AccountName, Value: repos.IndexAsc},
			{Key: fields.ProjectName, Value: repos.IndexAsc},
			{Key: fields.EnvironmentName, Value: repos.IndexAsc},
		},
		Unique: true,
	},
}
View Source
var IOTDeploymentIndexes = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: fields.Id, Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{Key: "CIDR", Value: repos.IndexAsc},
		},
		Unique: true,
	},
}
View Source
var IOTDeviceBlueprintIndexes = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: fields.Id, Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{
				Key:   "name",
				Value: repos.IndexAsc,
			},
		},
		Unique: true,
	},
}
View Source
var IOTDeviceIndexes = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: fields.Id, Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{
				Key:   "name",
				Value: repos.IndexAsc,
			},
		},
		Unique: true,
	},
}
View Source
var IOTProjectIndexes = []repos.IndexField{
	{
		Field: []repos.IndexKey{
			{Key: fields.Id, Value: repos.IndexAsc},
		},
		Unique: true,
	},
	{
		Field: []repos.IndexKey{
			{
				Key:   "name",
				Value: repos.IndexAsc,
			},
		},
		Unique: true,
	},
}

Functions

This section is empty.

Types

type BluePrintType

type BluePrintType string
const (
	SingletonBlueprint BluePrintType = "singleton_blueprint"
	GroupBlueprint     BluePrintType = "group_blueprint"
)

type ExposedService

type ExposedService struct {
	Name string `json:"name"`
	IP   string `json:"ip"`
}

type IOTApp

type IOTApp struct {
	repos.BaseEntity        `json:",inline" graphql:"noinput"`
	common.ResourceMetadata `json:",inline"`

	crdsv1.App `json:",inline"`

	AccountName         string `json:"accountName" graphql:"noinput"`
	ProjectName         string `json:"projectName" graphql:"noinput"`
	DeviceBlueprintName string `json:"deviceBlueprintName" graphql:"noinput"`
}

type IOTDeployment

type IOTDeployment struct {
	repos.BaseEntity `json:",inline" graphql:"noinput"`
	Name             string           `json:"name"`
	AccountName      string           `json:"accountName" graphql:"noinput"`
	ProjectName      string           `json:"projectName" graphql:"noinput"`
	CIDR             string           `json:"CIDR"`
	ExposedServices  []ExposedService `json:"exposedServices"`

	common.ResourceMetadata `json:",inline"`
}

type IOTDevice

type IOTDevice struct {
	repos.BaseEntity        `json:",inline" graphql:"noinput"`
	common.ResourceMetadata `json:",inline"`

	Name           string `json:"name"`
	AccountName    string `json:"accountName" graphql:"noinput"`
	ProjectName    string `json:"projectName" graphql:"noinput"`
	PublicKey      string `json:"publicKey"`
	ServiceCIDR    string `json:"serviceCIDR"`
	PodCIDR        string `json:"podCIDR"`
	IP             string `json:"ip"`
	DeploymentName string `json:"deploymentName" graphql:"noinput"`
	Version        string `json:"version"`
}

type IOTDeviceBlueprint

type IOTDeviceBlueprint struct {
	repos.BaseEntity        `json:",inline" graphql:"noinput"`
	common.ResourceMetadata `json:",inline"`

	Name          string        `json:"name"`
	AccountName   string        `json:"accountName" graphql:"noinput"`
	ProjectName   string        `json:"projectName" graphql:"noinput"`
	BluePrintType BluePrintType `json:"bluePrintType"`
	Version       string        `json:"version"`
}

type IOTProject

type IOTProject struct {
	repos.BaseEntity `json:",inline" graphql:"noinput"`

	Name        string `json:"name"`
	AccountName string `json:"accountName" graphql:"noinput"`

	common.ResourceMetadata `json:",inline"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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