structs

package
v0.0.0-...-eb352f6 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExpandedServicesData

type ExpandedServicesData struct {
	ID          int              `json:"id"`
	Name        string           `json:"name"`
	DisplayName string           `json:"display_name"`
	Tenant      string           `json:"tenant"`
	Commit      models.Timelines `json:"latest_commit" gorm:"foreignkey:ID"`
	Deploy      models.Timelines `json:"latest_deploy" gorm:"foreignkey:ID"`
}

type ExpandedServicesList

type ExpandedServicesList struct {
	Count int64                  `json:"count"`
	Data  []ExpandedServicesData `json:"data"`
}

type ProjectsData

type ProjectsData struct {
	ID         int    `json:"id"`
	ServiceID  int    `json:"service_id"`
	Name       string `json:"name"`
	Repo       string `json:"repo"`
	DeployFile string `json:"deploy_file"`
	Namespace  string `json:"namespace"`
	Branch     string `json:"branch"`
}

type ProjectsList

type ProjectsList struct {
	Count int64          `json:"count"`
	Data  []ProjectsData `json:"data"`
}

type Query

type Query struct {
	Offset      int
	Limit       int
	Ref         []string
	Repo        []string
	Author      []string
	MergedBy    []string
	Cluster     []string
	Image       []string
	Name        []string // service and project filters
	DisplayName []string
	Tenant      []string
	Namespace   []string
	Branch      []string
	StartDate   string
	EndDate     string
}

type ServicesData

type ServicesData struct {
	ID          int            `json:"id"`
	Name        string         `json:"name"`
	DisplayName string         `json:"display_name"`
	Tenant      string         `json:"tenant"`
	Projects    []ProjectsData `json:"projects"`
}

type ServicesList

type ServicesList struct {
	Count int64          `json:"count"`
	Data  []ServicesData `json:"data"`
}

That would include adding a middleware and changing all these List structs to be covered by one ResponseData struct

type TimelinesList

type TimelinesList struct {
	Count int64              `json:"count"`
	Data  []models.Timelines `json:"data"`
}

Jump to

Keyboard shortcuts

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