Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
G
go-gitlab
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
go
go-gitlab
Commits
4dd9dfd2
Unverified
Commit
4dd9dfd2
authored
Feb 11, 2019
by
Sander van Harmelen
Committed by
GitHub
Feb 11, 2019
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #560 from matejvelikonja/master
Split PlatformKubernetesOptions to add and edit struct
parents
05a308d7
abfb109f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
project_clusters.go
project_clusters.go
+12
-4
No files found.
project_clusters.go
View file @
4dd9dfd2
...
...
@@ -118,11 +118,11 @@ type AddClusterOptions struct {
Name
*
string
`url:"name,omitempty" json:"name,omitempty"`
Enabled
*
bool
`url:"enabled,omitempty" json:"enabled,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
PlatformKubernetes
*
PlatformKubernetesOptions
`url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"`
PlatformKubernetes
*
Add
PlatformKubernetesOptions
`url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"`
}
//
PlatformKubernetesOptions represents the available PlatformKubernetes options
.
type
PlatformKubernetesOptions
struct
{
//
AddPlatformKubernetesOptions represents the available PlatformKubernetes options for adding
.
type
Add
PlatformKubernetesOptions
struct
{
APIURL
*
string
`url:"api_url,omitempty" json:"api_url,omitempty"`
Token
*
string
`url:"token,omitempty" json:"token,omitempty"`
CaCert
*
string
`url:"ca_cert,omitempty" json:"ca_cert,omitempty"`
...
...
@@ -162,7 +162,15 @@ func (s *ProjectClustersService) AddCluster(pid interface{}, opt *AddClusterOpti
type
EditClusterOptions
struct
{
Name
*
string
`url:"name,omitempty" json:"name,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
PlatformKubernetes
*
PlatformKubernetesOptions
`url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"`
PlatformKubernetes
*
EditPlatformKubernetesOptions
`url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"`
}
// EditPlatformKubernetesOptions represents the available PlatformKubernetes options for editing.
type
EditPlatformKubernetesOptions
struct
{
APIURL
*
string
`url:"api_url,omitempty" json:"api_url,omitempty"`
Token
*
string
`url:"token,omitempty" json:"token,omitempty"`
CaCert
*
string
`url:"ca_cert,omitempty" json:"ca_cert,omitempty"`
Namespace
*
string
`url:"namespace,omitempty" json:"namespace,omitempty"`
}
// EditCluster updates an existing project cluster.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment