dto

package
v1.3.4-beta Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApplyInput

type ApplyInput struct {
	Release string `json:"release"`
	Remark  string `json:"remark"`
}

type ApplyOnReleaseInput

type ApplyOnReleaseInput struct {
	Version       string `json:"version"`
	VersionRemark string `json:"version_remark"`
	PublishRemark string `json:"remark"`
}

type Comments

type Comments struct {
	Comments string `json:"comments"`
}

type DiffOut

type DiffOut = service_diff.DiffOut

type DoPublish

type DoPublish struct {
}

type Publish

type Publish struct {
	Id            string             `json:"id,omitempty"`
	Version       string             `json:"version,omitempty"`
	Remark        string             `json:"remark,omitempty"`
	VersionRemark string             `json:"version_remark,omitempty"`
	Comments      string             `json:"comments,omitempty"`
	Release       auto.Label         `json:"release,omitempty" aolabel:"release"`
	Previous      *auto.Label        `json:"previous,omitempty" aolabel:"release"`
	Service       auto.Label         `json:"service" aolabel:"service"`
	Applicant     auto.Label         `json:"applicant" aolabel:"user"`
	Approver      *auto.Label        `json:"approver,omitempty" aolabel:"user"`
	Status        publish.StatusType `json:"status,omitempty" `
	ApplyTIme     auto.TimeLabel     `json:"apply_time" `
	ApproveTime   auto.TimeLabel     `json:"approve_time"`
}

func FromModel

func FromModel(m *publish.Publish, versionRemark string) *Publish

type PublishDetail

type PublishDetail struct {
	*Publish
	Diffs           *DiffOut         `json:"diffs"`
	PublishStatuses []*PublishStatus `json:"cluster_publish_status"`
}

type PublishStatus

type PublishStatus struct {
	//Cluster auto.Label `json:"partition" aolabel:"partition"`
	//Cluster auto.Label `json:"cluster" aolabel:"cluster"`
	Status string `json:"status"`
	Error  string `json:"error"`
}

Jump to

Keyboard shortcuts

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