Documentation ¶
Index ¶
- type Client
- func (c *Client) CreateProject(name string, labels map[string]string) (models.Project, error)
- func (c *Client) DeleteCluster(projectID string, seed string, clusterID string) error
- func (c *Client) DeleteProject(projectID string) error
- func (c *Client) GetCluster(projectID string, seed string, clusterID string) (models.Cluster, error)
- func (c *Client) GetClusterKubeconfig(projectID string, seed string, clusterID string) (clientcmdapi.Config, error)
- func (c *Client) ListClustersForProject(projectID string) ([]models.Cluster, error)
- func (c *Client) ListClustersForProjectAndDatacenter(projectID string, seed string) ([]models.Cluster, error)
- func (c *Client) ListDatacenters() ([]models.Datacenter, error)
- func (c *Client) ListProjects(listall bool) ([]models.Project, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
Client holds all config and the http.Client needed to talk to the Kubermatic API
func (*Client) CreateProject ¶
CreateProject creates a new project with the given name and labels
func (*Client) DeleteCluster ¶
DeleteCluster deletes a given cluster
func (*Client) DeleteProject ¶
DeleteProject deletes a project identified by id
func (*Client) GetCluster ¶
func (c *Client) GetCluster(projectID string, seed string, clusterID string) (models.Cluster, error)
GetCluster fetches cluster
func (*Client) GetClusterKubeconfig ¶
func (c *Client) GetClusterKubeconfig(projectID string, seed string, clusterID string) (clientcmdapi.Config, error)
GetClusterKubeconfig fetches kubeconfig for a given cluster
func (*Client) ListClustersForProject ¶
ListClustersForProject lists all clusters for a given Project (identified by ID)
func (*Client) ListClustersForProjectAndDatacenter ¶
func (c *Client) ListClustersForProjectAndDatacenter(projectID string, seed string) ([]models.Cluster, error)
ListClustersForProjectAndDatacenter lists all clusters for a given Project (identified by ID) and Seed (identified by name)
func (*Client) ListDatacenters ¶
func (c *Client) ListDatacenters() ([]models.Datacenter, error)
ListDatacenters lists all datacenters that are available
func (*Client) ListProjects ¶
ListProjects lists all projects a user has permission to see if listall is true, all projects the user has access to, will be listed if listall is false (default), only clusters owned by the user will be listed