models

package
v0.0.0-...-37b99e7 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLog

type AuditLog struct {
	Created  time.Time              `json:"created,omitempty"`
	Body     map[string]interface{} `json:"body,omitempty"`
	ID       string                 `json:"id,omitempty"`
	Service  string                 `json:"service,omitempty"`
	Funcname string                 `json:"funcname,omitempty"`
}

AuditLog ...

type Checksum

type Checksum string

Checksum ...

type ConfigIn

type ConfigIn struct {

	// Unique name for the configuration
	ConfigName string                 `json:"config_name"`
	Owner      string                 `json:"owner"`
	Config     map[string]interface{} `json:"config,omitempty"`
	Host       string                 `json:"host,omitempty"`
	Parents    []string               `json:"parents,omitempty"`
	Tags       []string               `form:"tags" json:"tags" yaml:"tags"`
}

ConfigIn ...

type ConfigResponse

type ConfigResponse struct {
	Created    time.Time           `json:"created",bson:"created"`
	Modified   time.Time           `json:"modified",bson:"modified"`
	ID         *primitive.ObjectID `json:"ID" bson:"_id,omitempty"`
	Config     ConfigVersion       `json:"config,omitempty" bson:"config"`
	ConfigName string              `json:"config_name" bson:"config_name"`
	CreatedBy  string              `json:"created_by" bson:"created_by"`
	ConfigID   string              `json:"config_id" bson:"config_id"`
	Host       string              `json:"host" bson:"host"`
	Parents    []string            `json:"parents,omitempty" bson:"parents,omitempty"`
	Tags       []string            `form:"tags" json:"tags" yaml:"tags" bson:"tags"`
	Version    int32               `json:"version" bson:"version"`
}

ConfigResponse ...

func (*ConfigResponse) Ingest

func (cr *ConfigResponse) Ingest(b bson.M) error

Ingest ingest data from a BSON map

type ConfigStore

type ConfigStore struct {
	Created       time.Time            `json:"created,omitempty",bson:"created,omitempty"`
	Modified      time.Time            `json:"modified,omitempty",bson:"modified"`
	ConfigVersion ConfigVersion        `json:"config_version",bson:"config_version"`
	ConfigName    string               `json:"config_name",bson:"config_name"`
	Owner         string               `json:"owner",bson:"owner"`
	Parents       []primitive.ObjectID `json:"parents,omitempty",bson:"parents,omitempty"`
	ID            primitive.ObjectID   `json:"id,omitempty",bson:"_id"`
}

ConfigStore ...

type ConfigVersion

type ConfigVersion struct {
	Config   map[string]interface{} `json:"config" bson:"config"`
	Checksum Checksum               `form:"checksum" json:"checksum,omitempty" bson:"checksum,omitempty"`
}

ConfigVersion ...

type Error

type Error struct {
	Code *interface{} `json:"code"`

	Message *interface{} `json:"message"`
}

Error ...

type Healthcheck

type Healthcheck struct {
	Status *interface{} `json:"status,omitempty"`
}

Healthcheck ...

type HostLoginIn

type HostLoginIn struct {
	APIKey string `form:"apikey" json:"apikey" yaml:"apikey"`
	Host   string `form:"host" json:"host" yaml:"host"`
}

HostLoginIn ...

type HostRegisterIn

type HostRegisterIn struct {
	Name string   `form:"name" json:"name" yaml:"name"`
	Tags []string `form:"tags" json:"tags" yaml:"tags"`
}

HostRegisterIn ...

type IDResponse

type IDResponse struct {
	ID *interface{} `json:"id,omitempty"`
}

IDResponse ...

type UpdateConfigIn

type UpdateConfigIn struct {
	// Unique name for the configuration
	ConfigName string                 `json:"config_name"`
	Requester  string                 `json:"requester,omitempty"`
	Config     map[string]interface{} `json:"config,omitempty"`
	Parents    []string               `json:"parents,omitempty"`
}

UpdateConfigIn ...

Jump to

Keyboard shortcuts

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