Documentation
¶
Index ¶
- type Column
- type Command
- type ComponentReleaseTable
- func (r *ComponentReleaseTable) DecodeURLQuery() error
- func (r *ComponentReleaseTable) EncodeURLQuery() error
- func (r *ComponentReleaseTable) GenComponentState(component *cptype.Component) error
- func (r *ComponentReleaseTable) InitComponent(ctx context.Context)
- func (r *ComponentReleaseTable) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, ...) error
- func (r *ComponentReleaseTable) RenderTable(ctx context.Context, gs *cptype.GlobalStateData) error
- func (r *ComponentReleaseTable) SetComponentValue()
- func (r *ComponentReleaseTable) Transfer(c *cptype.Component)
- type Creator
- type Data
- type DoubleRowWithIcon
- type ExtraContent
- type FilterValues
- type Item
- type Operation
- type Props
- type Sorter
- type State
- type TableOperations
- type TagValue
- type TagsRow
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ComponentReleaseTable ¶
type ComponentReleaseTable struct {
Type string `json:"type,omitempty"`
Data Data `json:"data"`
Props Props `json:"props"`
State State `json:"state"`
Operations map[string]interface{} `json:"operations,omitempty"`
// contains filtered or unexported fields
}
func (*ComponentReleaseTable) DecodeURLQuery ¶
func (r *ComponentReleaseTable) DecodeURLQuery() error
func (*ComponentReleaseTable) EncodeURLQuery ¶
func (r *ComponentReleaseTable) EncodeURLQuery() error
func (*ComponentReleaseTable) GenComponentState ¶
func (r *ComponentReleaseTable) GenComponentState(component *cptype.Component) error
func (*ComponentReleaseTable) InitComponent ¶
func (r *ComponentReleaseTable) InitComponent(ctx context.Context)
func (*ComponentReleaseTable) Render ¶
func (r *ComponentReleaseTable) Render(ctx context.Context, component *cptype.Component, _ cptype.Scenario, event cptype.ComponentEvent, gs *cptype.GlobalStateData) error
func (*ComponentReleaseTable) RenderTable ¶
func (r *ComponentReleaseTable) RenderTable(ctx context.Context, gs *cptype.GlobalStateData) error
func (*ComponentReleaseTable) SetComponentValue ¶
func (r *ComponentReleaseTable) SetComponentValue()
func (*ComponentReleaseTable) Transfer ¶
func (r *ComponentReleaseTable) Transfer(c *cptype.Component)
type DoubleRowWithIcon ¶
type DoubleRowWithIcon struct {
RenderType string `json:"renderType,omitempty"`
Value string `json:"value,omitempty"`
ExtraContent ExtraContent `json:"extraContent"`
}
type ExtraContent ¶
type FilterValues ¶
type FilterValues struct {
BranchID string `json:"branchID,omitempty"`
CommitID string `json:"commitID,omitempty"`
UserIDs []string `json:"userIDs,omitempty"`
CreatedAtStartEnd []int64 `json:"createdAtStartEnd,omitempty"`
ReleaseID string `json:"releaseID,omitempty"`
ApplicationIDs []string `json:"applicationIDs,omitempty"`
Latest string `json:"latest,omitempty"`
Version string `json:"version,omitempty"`
Tags []uint64 `json:"tags,omitempty"`
}
type Item ¶
type Item struct {
ID string `json:"id,omitempty"`
Version DoubleRowWithIcon `json:"version,omitempty"`
Formal *TagsRow `json:"formal,omitempty"`
Application string `json:"application,omitempty"`
Desc string `json:"desc,omitempty"`
Creator Creator `json:"creator,omitempty"`
CreatedAt string `json:"createdAt,omitempty"`
Operations TableOperations `json:"operations"`
BatchOperations []string `json:"batchOperations,omitempty"`
}
type Operation ¶
type Operation struct {
Command Command `json:"command"`
Confirm string `json:"confirm,omitempty"`
Key string `json:"key,omitempty"`
Reload bool `json:"reload"`
Text string `json:"text,omitempty"`
Meta map[string]interface{} `json:"meta,omitempty"`
SuccessMsg string `json:"successMsg,omitempty"`
Disabled bool `json:"disabled,omitempty"`
DisabledTip string `json:"disabledTip,omitempty"`
}
type Props ¶
type Props struct {
RequestIgnore []string `json:"requestIgnore"`
BatchOperations []string `json:"batchOperations,omitempty"`
Selectable bool `json:"selectable"`
Columns []Column `json:"columns,omitempty"`
PageSizeOptions []string `json:"pageSizeOptions,omitempty"`
RowKey string `json:"rowKey,omitempty"`
}
type State ¶
type State struct {
ReleaseTableURLQuery string `json:"releaseTable__urlQuery"`
PageNo int64 `json:"pageNo"`
PageSize int64 `json:"pageSize"`
Total int64 `json:"total"`
SelectedRowKeys []string `json:"selectedRowKeys,omitempty"`
Sorter Sorter `json:"sorterData"`
IsProjectRelease bool `json:"isProjectRelease"`
ProjectID int64 `json:"projectID"`
IsFormal *bool `json:"isFormal,omitempty"`
FilterValues FilterValues `json:"filterValues"`
ApplicationID int64 `json:"applicationID"`
}
type TableOperations ¶
Click to show internal directories.
Click to hide internal directories.