Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) CreateJob(ctx context.Context, organizationId string, projectId string, ...) (*CreateJobResponse, error)
- func (c *Client) DeleteJob(ctx context.Context, organizationId string, projectId string, jobId string) error
- func (c *Client) GetJob(ctx context.Context, organizationId string, projectId string, jobId string) (*GetJobResponse, error)
- func (c *Client) ManagedClusterCreate(ctx context.Context, req *CreateManagedClusterRequest) (*CreateManagedClusterResponse, error)
- func (c *Client) ManagedClusterDelete(ctx context.Context, req *DeleteManagedClusterRequest) error
- func (c *Client) ManagedClusterExpandDisk(ctx context.Context, req *ExpandManagedClusterDiskRequest) error
- func (c *Client) ManagedClusterGet(ctx context.Context, req *GetManagedClusterRequest) (*GetManagedClusterResponse, error)
- func (c *Client) ManagedClusterWaitForState(ctx context.Context, req *WaitForManagedClusterStateRequest) error
- func (c *Client) NetworkCreate(ctx context.Context, req *CreateNetworkRequest) (*CreateNetworkResponse, error)
- func (c *Client) NetworkDelete(ctx context.Context, req *DeleteNetworkRequest) error
- func (c *Client) NetworkGet(ctx context.Context, req *GetNetworkRequest) (*GetNetworkResponse, error)
- func (c *Client) NetworkUpdate(ctx context.Context, req *UpdateNetworkRequest) error
- func (c *Client) NetworkWaitForState(ctx context.Context, req *WaitForNetworkStateRequest) error
- func (c *Client) PeeringCreate(ctx context.Context, req *CreatePeeringRequest) (*CreatePeeringResponse, error)
- func (c *Client) PeeringDelete(ctx context.Context, req *DeletePeeringRequest) error
- func (c *Client) PeeringGet(ctx context.Context, req *GetPeeringRequest) (*GetPeeringResponse, error)
- func (c *Client) PeeringUpdate(ctx context.Context, req *UpdatePeeringRequest) error
- func (c *Client) PeeringWaitForState(ctx context.Context, req *WaitForPeeringStateRequest) (*Peering, error)
- func (c *Client) ProjectCreate(ctx context.Context, req *CreateProjectRequest) (*CreateProjectResponse, error)
- func (c *Client) ProjectDelete(ctx context.Context, req *DeleteProjectRequest) error
- func (c *Client) ProjectGet(ctx context.Context, req *GetProjectRequest) (*GetProjectResponse, error)
- func (c *Client) ProjectList(ctx context.Context, req *ListProjectsRequest) (*ListProjectsResponse, error)
- func (c *Client) ProjectUpdate(ctx context.Context, req *UpdateProjectRequest) error
- func (c *Client) TokenInspect(audience string) (*tokenData, error)
- func (c *Client) TokenRefresh(force bool) error
- type Config
- type CreateJobRequest
- type CreateJobResponse
- type CreateManagedClusterRequest
- type CreateManagedClusterResponse
- type CreateNetworkRequest
- type CreateNetworkResponse
- type CreatePeeringRequest
- type CreatePeeringResponse
- type CreateProjectRequest
- type CreateProjectResponse
- type DeleteManagedClusterRequest
- type DeleteNetworkRequest
- type DeletePeeringRequest
- type DeleteProjectRequest
- type ExpandManagedClusterDiskRequest
- type GetJobResponse
- type GetManagedClusterRequest
- type GetManagedClusterResponse
- type GetNetworkRequest
- type GetNetworkResponse
- type GetPeeringRequest
- type GetPeeringResponse
- type GetProjectRequest
- type GetProjectResponse
- type Job
- type ListProjectsRequest
- type ListProjectsResponse
- type ManagedCluster
- type Network
- type Peering
- type Project
- type UpdateNetworkRequest
- type UpdatePeeringRequest
- type UpdateProjectRequest
- type WaitForManagedClusterStateRequest
- type WaitForNetworkStateRequest
- type WaitForPeeringStateRequest
Constants ¶
View Source
const StateDeleted = "deleted"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) CreateJob ¶ added in v1.5.3
func (c *Client) CreateJob(ctx context.Context, organizationId string, projectId string, createJobRequest CreateJobRequest) (*CreateJobResponse, error)
func (*Client) ManagedClusterCreate ¶
func (c *Client) ManagedClusterCreate(ctx context.Context, req *CreateManagedClusterRequest) (*CreateManagedClusterResponse, error)
func (*Client) ManagedClusterDelete ¶
func (c *Client) ManagedClusterDelete(ctx context.Context, req *DeleteManagedClusterRequest) error
func (*Client) ManagedClusterExpandDisk ¶ added in v1.2.0
func (c *Client) ManagedClusterExpandDisk(ctx context.Context, req *ExpandManagedClusterDiskRequest) error
func (*Client) ManagedClusterGet ¶
func (c *Client) ManagedClusterGet(ctx context.Context, req *GetManagedClusterRequest) (*GetManagedClusterResponse, error)
func (*Client) ManagedClusterWaitForState ¶
func (c *Client) ManagedClusterWaitForState(ctx context.Context, req *WaitForManagedClusterStateRequest) error
func (*Client) NetworkCreate ¶
func (c *Client) NetworkCreate(ctx context.Context, req *CreateNetworkRequest) (*CreateNetworkResponse, error)
func (*Client) NetworkDelete ¶
func (c *Client) NetworkDelete(ctx context.Context, req *DeleteNetworkRequest) error
func (*Client) NetworkGet ¶
func (c *Client) NetworkGet(ctx context.Context, req *GetNetworkRequest) (*GetNetworkResponse, error)
func (*Client) NetworkUpdate ¶
func (c *Client) NetworkUpdate(ctx context.Context, req *UpdateNetworkRequest) error
func (*Client) NetworkWaitForState ¶
func (c *Client) NetworkWaitForState(ctx context.Context, req *WaitForNetworkStateRequest) error
func (*Client) PeeringCreate ¶
func (c *Client) PeeringCreate(ctx context.Context, req *CreatePeeringRequest) (*CreatePeeringResponse, error)
func (*Client) PeeringDelete ¶
func (c *Client) PeeringDelete(ctx context.Context, req *DeletePeeringRequest) error
func (*Client) PeeringGet ¶
func (c *Client) PeeringGet(ctx context.Context, req *GetPeeringRequest) (*GetPeeringResponse, error)
func (*Client) PeeringUpdate ¶
func (c *Client) PeeringUpdate(ctx context.Context, req *UpdatePeeringRequest) error
func (*Client) PeeringWaitForState ¶
func (*Client) ProjectCreate ¶
func (c *Client) ProjectCreate(ctx context.Context, req *CreateProjectRequest) (*CreateProjectResponse, error)
func (*Client) ProjectDelete ¶
func (c *Client) ProjectDelete(ctx context.Context, req *DeleteProjectRequest) error
func (*Client) ProjectGet ¶
func (c *Client) ProjectGet(ctx context.Context, req *GetProjectRequest) (*GetProjectResponse, error)
func (*Client) ProjectList ¶
func (c *Client) ProjectList(ctx context.Context, req *ListProjectsRequest) (*ListProjectsResponse, error)
func (*Client) ProjectUpdate ¶
func (c *Client) ProjectUpdate(ctx context.Context, req *UpdateProjectRequest) error
func (*Client) TokenInspect ¶
Inspect a token from the local token store
type CreateJobRequest ¶ added in v1.5.3
type CreateJobResponse ¶ added in v1.5.3
type CreateJobResponse struct {
Id string `json:"id"`
}
type CreateManagedClusterRequest ¶
type CreateManagedClusterRequest struct {
OrganizationID string
ProjectID string
NetworkId string `json:"networkId"`
Name string `json:"description"`
Topology string `json:"topology"`
InstanceType string `json:"instanceType"`
DiskSizeGB int32 `json:"diskSizeGb"`
DiskType string `json:"diskType"`
ServerVersion string `json:"serverVersion"`
ProjectionLevel string `json:"projectionLevel"`
CloudAuth bool `json:"cloudIntegratedAuthentication"`
}
type CreateManagedClusterResponse ¶
type CreateManagedClusterResponse struct {
ClusterID string `json:"id"`
}
type CreateNetworkRequest ¶
type CreateNetworkResponse ¶
type CreateNetworkResponse struct {
NetworkID string `json:"id"`
}
type CreatePeeringRequest ¶
type CreatePeeringRequest struct {
OrganizationID string
ProjectID string
NetworkId string `json:"networkId"`
Name string `json:"description"`
PeerAccountIdentifier string `json:"peerAccountId"`
PeerNetworkIdentifier string `json:"peerNetworkId"`
PeerNetworkRegion string `json:"peerNetworkRegion"`
Routes []string `json:"routes"`
}
type CreatePeeringResponse ¶
type CreatePeeringResponse struct {
PeeringID string `json:"id"`
}
type CreateProjectRequest ¶
type CreateProjectResponse ¶
type CreateProjectResponse struct {
ProjectID string `json:"id"`
}
type DeleteNetworkRequest ¶
type DeletePeeringRequest ¶
type DeleteProjectRequest ¶
type ExpandManagedClusterDiskRequest ¶ added in v1.2.0
type GetJobResponse ¶ added in v1.5.3
type GetJobResponse struct {
Job Job `json:"job"`
}
type GetManagedClusterResponse ¶
type GetManagedClusterResponse struct {
ManagedCluster ManagedCluster `json:"cluster"`
}
type GetNetworkRequest ¶
type GetNetworkResponse ¶
type GetNetworkResponse struct {
Network Network `json:"network"`
}
type GetPeeringRequest ¶
type GetPeeringResponse ¶
type GetPeeringResponse struct {
Peering Peering `json:"peering"`
}
type GetProjectRequest ¶
type GetProjectResponse ¶
type GetProjectResponse struct {
Project Project `json:"project"`
}
type ListProjectsRequest ¶
type ListProjectsRequest struct {
OrganizationID string
}
type ListProjectsResponse ¶
type ListProjectsResponse struct {
Projects []Project `json:"projects"`
}
type ManagedCluster ¶
type ManagedCluster struct {
OrganizationID string `json:"organizationId"`
ProjectID string `json:"projectId"`
NetworkID string `json:"networkId"`
ClusterID string `json:"id"`
Name string `json:"description"`
Provider string `json:"provider"`
Region string `json:"region"`
Topology string `json:"topology"`
InstanceType string `json:"instanceType"`
DiskSizeGB int32 `json:"diskSizeGb"`
DiskType string `json:"diskType"`
ServerVersion string `json:"serverVersion"`
ProjectionLevel string `json:"projectionLevel"`
Status string `json:"status"`
Created string `json:"created"`
}
type Peering ¶
type Peering struct {
ProjectID string `json:"projectId"`
PeeringID string `json:"id"`
NetworkID string `json:"networkId"`
Provider string `json:"provider"`
Name string `json:"description"`
PeerAccountIdentifier string `json:"peerAccountId"`
PeerNetworkIdentifier string `json:"peerNetworkId"`
PeerNetworkRegion string `json:"peerNetworkRegion"`
ProviderPeeringMetadata map[string]string `json:"providerPeeringMetadata"`
Routes []string `json:"routes"`
Status string `json:"status"`
Created string `json:"created,omitempty"`
}
type UpdateNetworkRequest ¶
type UpdatePeeringRequest ¶
type UpdateProjectRequest ¶
Source Files
¶
- access_token.go
- client.go
- cluster_create.go
- cluster_delete.go
- cluster_get.go
- cluster_update.go
- cluster_waiter.go
- consts.go
- error.go
- job_create.go
- job_delete.go
- job_get.go
- jwt_public_key.go
- network_create.go
- network_delete.go
- network_get.go
- network_update.go
- network_waiter.go
- peering_create.go
- peering_delete.go
- peering_get.go
- peering_update.go
- peering_waiter.go
- project_create.go
- project_delete.go
- project_get.go
- project_list.go
- project_update.go
- status_codes.go
- token_data.go
- token_store.go
Click to show internal directories.
Click to hide internal directories.