未验证 提交 98fed531 编写于 作者: R runzexia

refmt

Signed-off-by: Nrunzexia <runzexia@yunify.com>
上级 2fce04ef
...@@ -21,8 +21,8 @@ type Credential struct { ...@@ -21,8 +21,8 @@ type Credential struct {
} `json:"ranges,omitempty" description:"The build number of all pipelines that use this credential"` } `json:"ranges,omitempty" description:"The build number of all pipelines that use this credential"`
} `json:"usage,omitempty" description:"all usage of Credential"` } `json:"usage,omitempty" description:"all usage of Credential"`
} `json:"fingerprint,omitempty" description:"usage of the Credential"` } `json:"fingerprint,omitempty" description:"usage of the Credential"`
Description string `json:"description,omitempty" description:"Credential's description'"` Description string `json:"description,omitempty" description:"Credential's description'"`
Domain string `json:"domain,omitempty" description:"Credential's domain,In ks we only use the default domain, default '_''"` Domain string `json:"domain,omitempty" description:"Credential's domain,In ks we only use the default domain, default '_''"`
} }
type UsernamePasswordCredential struct { type UsernamePasswordCredential struct {
......
...@@ -24,9 +24,9 @@ type Devops struct { ...@@ -24,9 +24,9 @@ type Devops struct {
func New(projects ...string) *Devops { func New(projects ...string) *Devops {
d := &Devops{ d := &Devops{
Data: nil, Data: nil,
Projects: map[string]interface{}{}, Projects: map[string]interface{}{},
Pipelines: map[string]map[string]*devopsv1alpha3.Pipeline{}, Pipelines: map[string]map[string]*devopsv1alpha3.Pipeline{},
Credentials: map[string]map[string]*v1.Secret{}, Credentials: map[string]map[string]*v1.Secret{},
} }
for _, p := range projects { for _, p := range projects {
...@@ -36,9 +36,9 @@ func New(projects ...string) *Devops { ...@@ -36,9 +36,9 @@ func New(projects ...string) *Devops {
} }
func NewWithPipelines(project string, pipelines ...*devopsv1alpha3.Pipeline) *Devops { func NewWithPipelines(project string, pipelines ...*devopsv1alpha3.Pipeline) *Devops {
d := &Devops{ d := &Devops{
Data: nil, Data: nil,
Projects: map[string]interface{}{}, Projects: map[string]interface{}{},
Pipelines: map[string]map[string]*devopsv1alpha3.Pipeline{}, Pipelines: map[string]map[string]*devopsv1alpha3.Pipeline{},
Credentials: map[string]map[string]*v1.Secret{}, Credentials: map[string]map[string]*v1.Secret{},
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册