mirror of
https://github.com/goharbor/harbor.git
synced 2024-12-22 16:48:30 +01:00
update robot account return attribute
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
41e290a17f
commit
73d68903d6
@ -4777,7 +4777,7 @@ definitions:
|
||||
description:
|
||||
type: string
|
||||
description: The description of robot account
|
||||
expiresat:
|
||||
expires_at:
|
||||
type: integer
|
||||
description: The expiration of robot account (in seconds)
|
||||
project_id:
|
||||
|
@ -29,7 +29,7 @@ type Robot struct {
|
||||
Name string `orm:"column(name)" json:"name"`
|
||||
Description string `orm:"column(description)" json:"description"`
|
||||
ProjectID int64 `orm:"column(project_id)" json:"project_id"`
|
||||
ExpiresAt int64 `orm:"column(expiresat)" json:"expiresat"`
|
||||
ExpiresAt int64 `orm:"column(expiresat)" json:"expires_at"`
|
||||
Disabled bool `orm:"column(disabled)" json:"disabled"`
|
||||
CreationTime time.Time `orm:"column(creation_time);auto_now_add" json:"creation_time"`
|
||||
UpdateTime time.Time `orm:"column(update_time);auto_now" json:"update_time"`
|
||||
|
@ -51,7 +51,7 @@
|
||||
<clr-icon shape="check-circle" *ngSwitchCase="false" size="20" class="color-green"></clr-icon>
|
||||
<clr-icon shape="times-circle" *ngSwitchCase="true" size="16" class="color-red red-position"></clr-icon>
|
||||
</clr-dg-cell>
|
||||
<clr-dg-cell>{{r.expiresat * 1000 | date: 'short'}}</clr-dg-cell>
|
||||
<clr-dg-cell>{{r.expires_at * 1000 | date: 'short'}}</clr-dg-cell>
|
||||
<clr-dg-cell>{{r.description}}</clr-dg-cell>
|
||||
</clr-dg-row>
|
||||
<clr-dg-footer>
|
||||
|
@ -3,7 +3,7 @@ export class Robot {
|
||||
id: number;
|
||||
name: string;
|
||||
description: string;
|
||||
expiresat: number;
|
||||
expires_at: number;
|
||||
disabled: boolean;
|
||||
access: {
|
||||
isPull: boolean;
|
||||
|
Loading…
Reference in New Issue
Block a user