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
99045abd
Commit
99045abd
authored
Feb 05, 2019
by
Matej Velikonja
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add PlatformKubernetesOptions struct
parent
79cd42cc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
7 deletions
+16
-7
project_clusters.go
project_clusters.go
+16
-7
No files found.
project_clusters.go
View file @
99045abd
...
@@ -61,6 +61,15 @@ type PlatformKubernetes struct {
...
@@ -61,6 +61,15 @@ type PlatformKubernetes struct {
AuthorizationType
string
`json:"authorization_type"`
AuthorizationType
string
`json:"authorization_type"`
}
}
// PlatformKubernetesOptions represents the available PlatformKubernetes options.
type
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"`
Namespace
*
string
`url:"namespace,omitempty" json:"namespace,omitempty"`
AuthorizationType
*
string
`url:"authorization_type,omitempty" json:"authorization_type,omitempty"`
}
// ListClusters gets a list of all clusters in a project.
// ListClusters gets a list of all clusters in a project.
//
//
// GitLab API docs:
// GitLab API docs:
...
@@ -116,10 +125,10 @@ func (s *ProjectClustersService) GetCluster(pid interface{}, cluster int, option
...
@@ -116,10 +125,10 @@ func (s *ProjectClustersService) GetCluster(pid interface{}, cluster int, option
// GitLab API docs:
// GitLab API docs:
// https://docs.gitlab.com/ee/api/project_clusters.html#add-existing-cluster-to-project
// https://docs.gitlab.com/ee/api/project_clusters.html#add-existing-cluster-to-project
type
AddClusterOptions
struct
{
type
AddClusterOptions
struct
{
Name
*
string
`url:"name,omitempty" json:"name,omitempty"`
Name
*
string
`url:"name,omitempty" json:"name,omitempty"`
Enabled
*
bool
`url:"enabled,omitempty" json:"enabled,omitempty"`
Enabled
*
bool
`url:"enabled,omitempty" json:"enabled,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
PlatformKubernetes
*
PlatformKubernetes
`url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"`
PlatformKubernetes
*
PlatformKubernetes
Options
`url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"`
}
}
// AddCluster adds an existing cluster to the project.
// AddCluster adds an existing cluster to the project.
...
@@ -152,9 +161,9 @@ func (s *ProjectClustersService) AddCluster(pid interface{}, opt *AddClusterOpti
...
@@ -152,9 +161,9 @@ func (s *ProjectClustersService) AddCluster(pid interface{}, opt *AddClusterOpti
// GitLab API docs:
// GitLab API docs:
// https://docs.gitlab.com/ee/api/project_clusters.html#edit-project-cluster
// https://docs.gitlab.com/ee/api/project_clusters.html#edit-project-cluster
type
EditClusterOptions
struct
{
type
EditClusterOptions
struct
{
Name
*
string
`url:"name,omitempty" json:"name,omitempty"`
Name
*
string
`url:"name,omitempty" json:"name,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
EnvironmentScope
*
string
`url:"environment_scope,omitempty" json:"environment_scope,omitempty"`
PlatformKubernetes
*
PlatformKubernetes
`url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"`
PlatformKubernetes
*
PlatformKubernetes
Options
`url:"platform_kubernetes_attributes,omitempty" json:"platform_kubernetes_attributes,omitempty"`
}
}
// EditCluster updates an existing project cluster.
// 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