Documentation
¶
Index ¶
- Constants
- type Acl
- type AclCidrBlock
- type AclUpdateRequest
- type Client
- func (c *Client) AclCreate(ctx context.Context, req *CreateAclRequest) (*CreateAclResponse, diag.Diagnostics)
- func (c *Client) AclDelete(ctx context.Context, req *DeleteAclRequest) diag.Diagnostics
- func (c *Client) AclGet(ctx context.Context, req *GetAclRequest) (*GetAclResponse, diag.Diagnostics)
- func (c *Client) AclUpdate(ctx context.Context, req *AclUpdateRequest) diag.Diagnostics
- func (c *Client) CreateIntegration(ctx context.Context, organizationId string, projectId string, ...) (*CreateIntegrationResponse, diag.Diagnostics)
- func (c *Client) CreateJob(ctx context.Context, organizationId string, projectId string, ...) (*CreateJobResponse, diag.Diagnostics)
- func (c *Client) DeleteIntegration(ctx context.Context, organizationId string, projectId string, ...) diag.Diagnostics
- func (c *Client) DeleteJob(ctx context.Context, organizationId string, projectId string, jobId string) diag.Diagnostics
- func (c *Client) GetIntegration(ctx context.Context, organizationId string, projectId string, ...) (*GetIntegrationResponse, diag.Diagnostics)
- func (c *Client) GetJob(ctx context.Context, organizationId string, projectId string, jobId string) (*GetJobResponse, diag.Diagnostics)
- func (c *Client) ListIntegrations(ctx context.Context, organizationId string, projectId string) (*ListIntegrationsResponse, diag.Diagnostics)
- func (c *Client) ManagedClusterCreate(ctx context.Context, req *CreateManagedClusterRequest) (*CreateManagedClusterResponse, diag.Diagnostics)
- func (c *Client) ManagedClusterDelete(ctx context.Context, req *DeleteManagedClusterRequest) diag.Diagnostics
- func (c *Client) ManagedClusterExpandDisk(ctx context.Context, req *ExpandManagedClusterDiskRequest) diag.Diagnostics
- func (c *Client) ManagedClusterGet(ctx context.Context, req *GetManagedClusterRequest) (*GetManagedClusterResponse, diag.Diagnostics)
- func (c *Client) ManagedClusterResize(ctx context.Context, req *ManagedClusterResizeRequest) diag.Diagnostics
- func (c *Client) ManagedClusterUpdate(ctx context.Context, req *ManagedClusterUpdateRequest) diag.Diagnostics
- func (c *Client) ManagedClusterUpgrade(ctx context.Context, req *ManagedClusterUpgradeRequest) diag.Diagnostics
- func (c *Client) ManagedClusterWaitForState(ctx context.Context, req *WaitForManagedClusterStateRequest) diag.Diagnostics
- func (c *Client) NetworkCreate(ctx context.Context, req *CreateNetworkRequest) (*CreateNetworkResponse, diag.Diagnostics)
- func (c *Client) NetworkDelete(ctx context.Context, req *DeleteNetworkRequest) diag.Diagnostics
- func (c *Client) NetworkGet(ctx context.Context, req *GetNetworkRequest) (*GetNetworkResponse, diag.Diagnostics)
- func (c *Client) NetworkList(ctx context.Context, req *ListNetworksRequest) (*ListNetworksResponse, diag.Diagnostics)
- func (c *Client) NetworkUpdate(ctx context.Context, req *UpdateNetworkRequest) diag.Diagnostics
- func (c *Client) NetworkWaitForState(ctx context.Context, req *WaitForNetworkStateRequest) diag.Diagnostics
- func (c *Client) PeeringCreate(ctx context.Context, req *CreatePeeringRequest) (*CreatePeeringResponse, diag.Diagnostics)
- func (c *Client) PeeringDelete(ctx context.Context, req *DeletePeeringRequest) diag.Diagnostics
- func (c *Client) PeeringGet(ctx context.Context, req *GetPeeringRequest) (*GetPeeringResponse, diag.Diagnostics)
- func (c *Client) PeeringUpdate(ctx context.Context, req *UpdatePeeringRequest) diag.Diagnostics
- func (c *Client) PeeringWaitForState(ctx context.Context, req *WaitForPeeringStateRequest) (*Peering, diag.Diagnostics)
- func (c *Client) ProjectCreate(ctx context.Context, req *CreateProjectRequest) (*CreateProjectResponse, diag.Diagnostics)
- func (c *Client) ProjectDelete(ctx context.Context, req *DeleteProjectRequest) diag.Diagnostics
- func (c *Client) ProjectGet(ctx context.Context, req *GetProjectRequest) (*GetProjectResponse, diag.Diagnostics)
- func (c *Client) ProjectList(ctx context.Context, req *ListProjectsRequest) (*ListProjectsResponse, diag.Diagnostics)
- func (c *Client) ProjectUpdate(ctx context.Context, req *UpdateProjectRequest) diag.Diagnostics
- func (c *Client) TokenInspect(audience string) (*tokenData, error)
- func (c *Client) TokenRefresh(force bool) error
- func (c *Client) UpdateIntegration(ctx context.Context, organizationId string, projectId string, ...) diag.Diagnostics
- type Config
- type CreateAclRequest
- type CreateAclResponse
- type CreateIntegrationData
- type CreateIntegrationRequest
- type CreateIntegrationResponse
- type CreateJobRequest
- type CreateJobResponse
- type CreateManagedClusterRequest
- type CreateManagedClusterResponse
- type CreateNetworkRequest
- type CreateNetworkResponse
- type CreateOpsGenieIntegrationData
- type CreatePeeringRequest
- type CreatePeeringResponse
- type CreateProjectRequest
- type CreateProjectResponse
- type CreateSlackIntegrationData
- type DeleteAclRequest
- type DeleteManagedClusterRequest
- type DeleteNetworkRequest
- type DeletePeeringRequest
- type DeleteProjectRequest
- type ExpandManagedClusterDiskRequest
- type GetAclRequest
- type GetAclResponse
- type GetIntegrationResponse
- type GetJobResponse
- type GetManagedClusterRequest
- type GetManagedClusterResponse
- type GetNetworkRequest
- type GetNetworkResponse
- type GetPeeringRequest
- type GetPeeringResponse
- type GetProjectRequest
- type GetProjectResponse
- type Integration
- type IntegrationData
- type IntegrationStatus
- type Job
- type ListIntegrationsResponse
- type ListNetworksRequest
- type ListNetworksResponse
- type ListProjectsRequest
- type ListProjectsResponse
- type ManagedCluster
- type ManagedClusterResizeRequest
- type ManagedClusterUpdateRequest
- type ManagedClusterUpgradeRequest
- type Network
- type OpsGenieIntegrationData
- type Peering
- type Project
- type SlackIntegrationData
- type UpdateIntegrationRequest
- type UpdateNetworkRequest
- type UpdateOpsGenieIntegrationData
- type UpdatePeeringRequest
- type UpdateProjectRequest
- type UpdateSlackIntegrationData
- type WaitForManagedClusterStateRequest
- type WaitForNetworkStateRequest
- type WaitForPeeringStateRequest
Constants ¶
View Source
const ( StateDeleted = "deleted" StateDefunct = "defunct" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AclCidrBlock ¶ added in v1.6.0
type AclUpdateRequest ¶ added in v1.6.0
type AclUpdateRequest struct { OrganizationID string ProjectID string AclID string CidrBlocks []AclCidrBlock `json:"cidrBlocks,omitempty"` Description string `json:"description,omitempty"` }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AclCreate ¶ added in v1.6.0
func (c *Client) AclCreate(ctx context.Context, req *CreateAclRequest) (*CreateAclResponse, diag.Diagnostics)
func (*Client) AclDelete ¶ added in v1.6.0
func (c *Client) AclDelete(ctx context.Context, req *DeleteAclRequest) diag.Diagnostics
func (*Client) AclGet ¶ added in v1.6.0
func (c *Client) AclGet(ctx context.Context, req *GetAclRequest) (*GetAclResponse, diag.Diagnostics)
func (*Client) AclUpdate ¶ added in v1.6.0
func (c *Client) AclUpdate(ctx context.Context, req *AclUpdateRequest) diag.Diagnostics
func (*Client) CreateIntegration ¶ added in v1.5.4
func (c *Client) CreateIntegration( ctx context.Context, organizationId string, projectId string, createIntegrationRequest CreateIntegrationRequest, ) (*CreateIntegrationResponse, diag.Diagnostics)
func (*Client) CreateJob ¶ added in v1.5.3
func (c *Client) CreateJob( ctx context.Context, organizationId string, projectId string, createJobRequest CreateJobRequest, ) (*CreateJobResponse, diag.Diagnostics)
func (*Client) DeleteIntegration ¶ added in v1.5.4
func (*Client) GetIntegration ¶ added in v1.5.4
func (c *Client) GetIntegration( ctx context.Context, organizationId string, projectId string, integrationId string, ) (*GetIntegrationResponse, diag.Diagnostics)
func (*Client) GetJob ¶ added in v1.5.3
func (c *Client) GetJob( ctx context.Context, organizationId string, projectId string, jobId string, ) (*GetJobResponse, diag.Diagnostics)
func (*Client) ListIntegrations ¶ added in v1.5.4
func (c *Client) ListIntegrations( ctx context.Context, organizationId string, projectId string, ) (*ListIntegrationsResponse, diag.Diagnostics)
func (*Client) ManagedClusterCreate ¶
func (c *Client) ManagedClusterCreate( ctx context.Context, req *CreateManagedClusterRequest, ) (*CreateManagedClusterResponse, diag.Diagnostics)
func (*Client) ManagedClusterDelete ¶
func (c *Client) ManagedClusterDelete( ctx context.Context, req *DeleteManagedClusterRequest, ) diag.Diagnostics
func (*Client) ManagedClusterExpandDisk ¶ added in v1.2.0
func (c *Client) ManagedClusterExpandDisk( ctx context.Context, req *ExpandManagedClusterDiskRequest, ) diag.Diagnostics
func (*Client) ManagedClusterGet ¶
func (c *Client) ManagedClusterGet( ctx context.Context, req *GetManagedClusterRequest, ) (*GetManagedClusterResponse, diag.Diagnostics)
func (*Client) ManagedClusterResize ¶ added in v1.5.29
func (c *Client) ManagedClusterResize( ctx context.Context, req *ManagedClusterResizeRequest, ) diag.Diagnostics
func (*Client) ManagedClusterUpdate ¶ added in v1.5.8
func (c *Client) ManagedClusterUpdate( ctx context.Context, req *ManagedClusterUpdateRequest, ) diag.Diagnostics
func (*Client) ManagedClusterUpgrade ¶ added in v1.5.27
func (c *Client) ManagedClusterUpgrade( ctx context.Context, req *ManagedClusterUpgradeRequest, ) diag.Diagnostics
func (*Client) ManagedClusterWaitForState ¶
func (c *Client) ManagedClusterWaitForState( ctx context.Context, req *WaitForManagedClusterStateRequest, ) diag.Diagnostics
func (*Client) NetworkCreate ¶
func (c *Client) NetworkCreate( ctx context.Context, req *CreateNetworkRequest, ) (*CreateNetworkResponse, diag.Diagnostics)
func (*Client) NetworkDelete ¶
func (c *Client) NetworkDelete(ctx context.Context, req *DeleteNetworkRequest) diag.Diagnostics
func (*Client) NetworkGet ¶
func (c *Client) NetworkGet( ctx context.Context, req *GetNetworkRequest, ) (*GetNetworkResponse, diag.Diagnostics)
func (*Client) NetworkList ¶ added in v1.5.8
func (c *Client) NetworkList( ctx context.Context, req *ListNetworksRequest, ) (*ListNetworksResponse, diag.Diagnostics)
func (*Client) NetworkUpdate ¶
func (c *Client) NetworkUpdate(ctx context.Context, req *UpdateNetworkRequest) diag.Diagnostics
func (*Client) NetworkWaitForState ¶
func (c *Client) NetworkWaitForState( ctx context.Context, req *WaitForNetworkStateRequest, ) diag.Diagnostics
func (*Client) PeeringCreate ¶
func (c *Client) PeeringCreate( ctx context.Context, req *CreatePeeringRequest, ) (*CreatePeeringResponse, diag.Diagnostics)
func (*Client) PeeringDelete ¶
func (c *Client) PeeringDelete(ctx context.Context, req *DeletePeeringRequest) diag.Diagnostics
func (*Client) PeeringGet ¶
func (c *Client) PeeringGet( ctx context.Context, req *GetPeeringRequest, ) (*GetPeeringResponse, diag.Diagnostics)
func (*Client) PeeringUpdate ¶
func (c *Client) PeeringUpdate(ctx context.Context, req *UpdatePeeringRequest) diag.Diagnostics
func (*Client) PeeringWaitForState ¶
func (c *Client) PeeringWaitForState( ctx context.Context, req *WaitForPeeringStateRequest, ) (*Peering, diag.Diagnostics)
func (*Client) ProjectCreate ¶
func (c *Client) ProjectCreate( ctx context.Context, req *CreateProjectRequest, ) (*CreateProjectResponse, diag.Diagnostics)
func (*Client) ProjectDelete ¶
func (c *Client) ProjectDelete(ctx context.Context, req *DeleteProjectRequest) diag.Diagnostics
func (*Client) ProjectGet ¶
func (c *Client) ProjectGet( ctx context.Context, req *GetProjectRequest, ) (*GetProjectResponse, diag.Diagnostics)
func (*Client) ProjectList ¶
func (c *Client) ProjectList( ctx context.Context, req *ListProjectsRequest, ) (*ListProjectsResponse, diag.Diagnostics)
func (*Client) ProjectUpdate ¶
func (c *Client) ProjectUpdate(ctx context.Context, req *UpdateProjectRequest) diag.Diagnostics
func (*Client) TokenInspect ¶
Inspect a token from the local token store
func (*Client) UpdateIntegration ¶ added in v1.5.4
func (c *Client) UpdateIntegration( ctx context.Context, organizationId string, projectId string, integrationId string, updateIntegrationRequest UpdateIntegrationRequest, ) diag.Diagnostics
type CreateAclRequest ¶ added in v1.6.0
type CreateAclRequest struct { OrganizationID string ProjectID string Name string `json:"description"` CidrBlocks []AclCidrBlock `json:"cidrBlocks"` }
type CreateAclResponse ¶ added in v1.6.0
type CreateAclResponse struct {
AclID string `json:"id"`
}
type CreateIntegrationData ¶ added in v1.5.4
type CreateIntegrationData struct { CreateOpsGenieIntegrationData *CreateOpsGenieIntegrationData CreateSlackIntegrationData *CreateSlackIntegrationData }
type CreateIntegrationRequest ¶ added in v1.5.4
type CreateIntegrationResponse ¶ added in v1.5.4
type CreateIntegrationResponse struct {
Id string `json:"id"`
}
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"` DiskIops int32 `json:"diskIops"` DiskThroughput int32 `json:"diskThroughput"` ServerVersion string `json:"serverVersion"` ProjectionLevel string `json:"projectionLevel"` CloudAuth bool `json:"cloudIntegratedAuthentication"` Protected bool `json:"protected"` PublicAccess bool `json:"publicAccess"` AclId string `json:"aclId"` }
type CreateManagedClusterResponse ¶
type CreateManagedClusterResponse struct {
ClusterID string `json:"id"`
}
type CreateNetworkRequest ¶
type CreateNetworkResponse ¶
type CreateNetworkResponse struct {
NetworkID string `json:"id"`
}
type CreateOpsGenieIntegrationData ¶ added in v1.5.4
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 CreateSlackIntegrationData ¶ added in v1.5.4
type DeleteAclRequest ¶ added in v1.6.0
type DeleteNetworkRequest ¶
type DeletePeeringRequest ¶
type DeleteProjectRequest ¶
type ExpandManagedClusterDiskRequest ¶ added in v1.2.0
type GetAclRequest ¶ added in v1.6.0
type GetAclResponse ¶ added in v1.6.0
type GetAclResponse struct {
Acl Acl `json:"acl"`
}
type GetIntegrationResponse ¶ added in v1.5.4
type GetIntegrationResponse struct {
Integration Integration `json:"integration"`
}
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 Integration ¶ added in v1.5.4
type Integration struct { Created time.Time `json:"created"` Data map[string]interface{} `json:"data"` Description string `json:"description"` Id string `json:"id"` OrganizationId string `json:"organizationId"` ProjectId string `json:"projectId"` Status IntegrationStatus `json:"status"` Updated time.Time `json:"updated"` }
type IntegrationData ¶ added in v1.5.4
type IntegrationData struct { OpsGenieIntegrationData *OpsGenieIntegrationData SlackIntegrationData *SlackIntegrationData }
type IntegrationStatus ¶ added in v1.5.4
type IntegrationStatus string
const ( ACTIVE IntegrationStatus = "active" DELETED IntegrationStatus = "deleted" )
List of IntegrationStatus
type ListIntegrationsResponse ¶ added in v1.5.4
type ListIntegrationsResponse struct {
Integrations []Integration `json:"integrations"`
}
type ListNetworksRequest ¶ added in v1.5.8
type ListNetworksResponse ¶ added in v1.5.8
type ListNetworksResponse struct {
Networks []Network `json:"networks"`
}
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"` DiskIops int32 `json:"diskIops"` DiskThroughput int32 `json:"diskThroughput"` ServerVersion string `json:"serverVersion"` ServerVersionTag string `json:"serverVersionTag"` ProjectionLevel string `json:"projectionLevel"` Status string `json:"status"` Created string `json:"created"` Protected bool `json:"protected"` AclId string `json:"aclId"` PublicAccess bool `json:"publicAccess"` }
type ManagedClusterResizeRequest ¶ added in v1.5.29
type ManagedClusterUpdateRequest ¶ added in v1.5.8
type ManagedClusterUpgradeRequest ¶ added in v1.5.27
type Network ¶
type Network struct { NetworkID string `json:"id"` ProjectID string `json:"projectId"` Provider string `json:"provider"` Region string `json:"region"` CIDRBlock string `json:"cidrBlock,omitempty"` Name string `json:"description"` Status string `json:"status"` PublicAccess bool `json:"publicAccess"` }
type OpsGenieIntegrationData ¶ added in v1.5.4
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 SlackIntegrationData ¶ added in v1.5.4
type SlackIntegrationData struct { // Slack Channel to send messages to ChannelId string `json:"channelId"` // API token for the Slack bot TokenDisplay string `json:"tokenDisplay"` // Required. Must be set to \"slack\" Sink string `json:"sink"` // Source of data for integration Source string `json:"source"` }
type UpdateIntegrationRequest ¶ added in v1.5.4
type UpdateNetworkRequest ¶
type UpdateOpsGenieIntegrationData ¶ added in v1.5.4
type UpdateOpsGenieIntegrationData struct { // API key used with the Ops Genie integration API ApiKey *string `json:"apiKey,omitempty"` }
type UpdatePeeringRequest ¶
type UpdateProjectRequest ¶
type UpdateSlackIntegrationData ¶ added in v1.5.4
Source Files
¶
- access_token.go
- acl_create.go
- acl_delete.go
- acl_get.go
- acl_update.go
- client.go
- cluster_create.go
- cluster_delete.go
- cluster_get.go
- cluster_update.go
- cluster_waiter.go
- consts.go
- error.go
- integration_create.go
- integration_delete.go
- integration_get.go
- integration_update.go
- job_create.go
- job_delete.go
- job_get.go
- jwt_public_key.go
- network_create.go
- network_delete.go
- network_get.go
- network_list.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.