1
0
mirror of https://github.com/rancher/types.git synced 2025-07-02 08:21:48 +00:00

set perms on token fields

This commit is contained in:
gitlawr 2018-02-24 15:58:53 +08:00
parent 6b3cc902e0
commit 5981c38f5c

View File

@ -85,7 +85,7 @@ type PipelineStatus struct {
LastStarted string `json:"lastStarted,omitempty" yaml:"lastStarted,omitempty"`
NextStart string `json:"nextStart,omitempty" yaml:"nextStart,omitempty"`
WebHookID string `json:"webhookId,omitempty" yaml:"webhookId,omitempty"`
Token string `json:"token,omitempty" yaml:"token,omitempty"`
Token string `json:"token,omitempty" yaml:"token,omitempty" norman:"writeOnly,noupdate"`
}
type PipelineSpec struct {
@ -172,7 +172,7 @@ type SourceCodeCredentialSpec struct {
AvatarURL string `json:"avatarUrl,omitempty"`
HTMLURL string `json:"htmlUrl,omitempty"`
LoginName string `json:"loginName,omitempty"`
AccessToken string `json:"accessToken,omitempty"`
AccessToken string `json:"accessToken,omitempty" norman:"writeOnly,noupdate"`
}
type SourceCodeCredentialStatus struct {