models

package
v0.0.0-...-922fce5 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Policy

type Policy struct {
	Name         string                                 `gorm:"size:191;unique" json:"name"`
	DisplayName  string                                 `json:"displayname"`
	Projects     datatypes.JSONSlice[Project]           `json:"projects"`
	Tags         datatypes.JSONSlice[map[string]string] `json:"tags"`
	ScheduleName string                                 `json:"schedulename"`
	Schedule     ScheduleModel                          `gorm:"foreignKey:ScheduleName;references:Name"`
	Provider     string                                 `json:"provider,omitempty"`
}

type Project

type Project struct {
	Name          string `json:"name"`
	CredentialRef string `json:"credentialRef"`
}

type Schedule

type Schedule struct {
	Dtype   string  `json:"dtype"`
	Corder  bool    `json:"Corder"`
	Shape   []int   `json:"Shape"`
	NdArray [][]int `json:"__ndarray__"`
}

type ScheduleModel

type ScheduleModel struct {
	Name        string                       ` json:"name" gorm:"size:191;unique"`
	DisplayName string                       `json:"displayname"`
	TimeZone    string                       `json:"timezone"`
	Schedule    datatypes.JSONType[Schedule] `json:"schedule"`
}

Jump to

Keyboard shortcuts

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