cloudproviders

package
v5.7.0-rc2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 22, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const GetCloudKeystores_Operation = `` /* 368-byte string literal not displayed */

The query or mutation executed by GetCloudKeystores.

View Source
const GetCloudProviderByName_Operation = `` /* 175-byte string literal not displayed */

The query or mutation executed by GetCloudProviderByName.

View Source
const ProvisionCertificate_Operation = `` /* 320-byte string literal not displayed */

The query or mutation executed by ProvisionCertificate.

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateProvisioningAWSOptionsInput

type CertificateProvisioningAWSOptionsInput struct {
	// Amazon Resource Name (ARN) uniquely identifying AWS certificate resource
	Arn  *string                                  `json:"arn"`
	Tags []*CertificateProvisioningTagOptionInput `json:"tags,omitempty"`
}

func (*CertificateProvisioningAWSOptionsInput) GetArn

GetArn returns CertificateProvisioningAWSOptionsInput.Arn, and is useful for accessing the field via an interface.

func (*CertificateProvisioningAWSOptionsInput) GetTags

GetTags returns CertificateProvisioningAWSOptionsInput.Tags, and is useful for accessing the field via an interface.

type CertificateProvisioningAzureOptionsInput

type CertificateProvisioningAzureOptionsInput struct {
	// An Azure object-name is a user provided name for and must be unique within a key vault. The name must be a 1-127 character string, starting with a letter and containing only 0-9, a-z, A-Z, and -.
	Name       *string                                  `json:"name"`
	Enabled    *bool                                    `json:"enabled"`
	Exportable *bool                                    `json:"exportable"`
	ReuseKey   *bool                                    `json:"reuseKey"`
	Tags       []*CertificateProvisioningTagOptionInput `json:"tags,omitempty"`
}

func (*CertificateProvisioningAzureOptionsInput) GetEnabled

GetEnabled returns CertificateProvisioningAzureOptionsInput.Enabled, and is useful for accessing the field via an interface.

func (*CertificateProvisioningAzureOptionsInput) GetExportable

func (v *CertificateProvisioningAzureOptionsInput) GetExportable() *bool

GetExportable returns CertificateProvisioningAzureOptionsInput.Exportable, and is useful for accessing the field via an interface.

func (*CertificateProvisioningAzureOptionsInput) GetName

GetName returns CertificateProvisioningAzureOptionsInput.Name, and is useful for accessing the field via an interface.

func (*CertificateProvisioningAzureOptionsInput) GetReuseKey

GetReuseKey returns CertificateProvisioningAzureOptionsInput.ReuseKey, and is useful for accessing the field via an interface.

func (*CertificateProvisioningAzureOptionsInput) GetTags

GetTags returns CertificateProvisioningAzureOptionsInput.Tags, and is useful for accessing the field via an interface.

type CertificateProvisioningGCPOptionsInput

type CertificateProvisioningGCPOptionsInput struct {
	// A GCM certificate id is a user provider name and must be unique within a region. The id must be a 1-63 character string, start with a letter and only contain lower case letters, digits and hyphens.
	Id          *string                                  `json:"id"`
	Description *string                                  `json:"description"`
	Scope       *GCMCertificateScope                     `json:"scope"`
	Labels      []*CertificateProvisioningTagOptionInput `json:"labels,omitempty"`
}

func (*CertificateProvisioningGCPOptionsInput) GetDescription

func (v *CertificateProvisioningGCPOptionsInput) GetDescription() *string

GetDescription returns CertificateProvisioningGCPOptionsInput.Description, and is useful for accessing the field via an interface.

func (*CertificateProvisioningGCPOptionsInput) GetId

GetId returns CertificateProvisioningGCPOptionsInput.Id, and is useful for accessing the field via an interface.

func (*CertificateProvisioningGCPOptionsInput) GetLabels

GetLabels returns CertificateProvisioningGCPOptionsInput.Labels, and is useful for accessing the field via an interface.

func (*CertificateProvisioningGCPOptionsInput) GetScope

GetScope returns CertificateProvisioningGCPOptionsInput.Scope, and is useful for accessing the field via an interface.

type CertificateProvisioningOptionsInput

type CertificateProvisioningOptionsInput struct {
	AwsOptions   *CertificateProvisioningAWSOptionsInput   `json:"awsOptions,omitempty"`
	AzureOptions *CertificateProvisioningAzureOptionsInput `json:"azureOptions,omitempty"`
	GcpOptions   *CertificateProvisioningGCPOptionsInput   `json:"gcpOptions,omitempty"`
}

func (*CertificateProvisioningOptionsInput) GetAwsOptions

GetAwsOptions returns CertificateProvisioningOptionsInput.AwsOptions, and is useful for accessing the field via an interface.

func (*CertificateProvisioningOptionsInput) GetAzureOptions

GetAzureOptions returns CertificateProvisioningOptionsInput.AzureOptions, and is useful for accessing the field via an interface.

func (*CertificateProvisioningOptionsInput) GetGcpOptions

GetGcpOptions returns CertificateProvisioningOptionsInput.GcpOptions, and is useful for accessing the field via an interface.

type CertificateProvisioningTagOptionInput

type CertificateProvisioningTagOptionInput struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

func (*CertificateProvisioningTagOptionInput) GetName

GetName returns CertificateProvisioningTagOptionInput.Name, and is useful for accessing the field via an interface.

func (*CertificateProvisioningTagOptionInput) GetValue

GetValue returns CertificateProvisioningTagOptionInput.Value, and is useful for accessing the field via an interface.

type CloudKeystoreType

type CloudKeystoreType string

Indicates the type of a Cloud Keystore

const (
	// AWS Certificate Manager
	CloudKeystoreTypeAcm CloudKeystoreType = "ACM"
	// Azure Key Vault
	CloudKeystoreTypeAkv CloudKeystoreType = "AKV"
	// Google Certificate Manager
	CloudKeystoreTypeGcm CloudKeystoreType = "GCM"
)

type CloudProviderStatus

type CloudProviderStatus string

Indicates the status of a cloud provider

const (
	// The cloud provider is successfully validated
	CloudProviderStatusValidated CloudProviderStatus = "VALIDATED"
	// The cloud provider is not validated or the validation fails for some reason
	CloudProviderStatusNotValidated CloudProviderStatus = "NOT_VALIDATED"
)

type CloudProviderType

type CloudProviderType string

Indicates the type of a Cloud Provider

const (
	// AWS cloud provider type
	CloudProviderTypeAws CloudProviderType = "AWS"
	// Azure cloud provider type
	CloudProviderTypeAzure CloudProviderType = "AZURE"
	// Google cloud provider type
	CloudProviderTypeGcp CloudProviderType = "GCP"
)

type CloudProvidersClient

type CloudProvidersClient struct {
	// contains filtered or unexported fields
}

func NewCloudProvidersClient

func NewCloudProvidersClient(url string, httpClient *http.Client) *CloudProvidersClient

func (*CloudProvidersClient) GetCloudKeystore

func (*CloudProvidersClient) GetCloudProviderByName

func (c *CloudProvidersClient) GetCloudProviderByName(ctx context.Context, name string) (*domain.CloudProvider, error)

func (*CloudProvidersClient) ProvisionCertificate

func (c *CloudProvidersClient) ProvisionCertificate(ctx context.Context, certificateID string, cloudKeystoreID string, wsClientID string, options *CertificateProvisioningOptionsInput) (*domain.ProvisioningResponse, error)

type GCMCertificateScope

type GCMCertificateScope string

Indicates the Scope for a certificate provisioned to GCP Certificate Manager

const (
	// Certificates with default scope are served from core Google data centers. If unsure, choose this option.
	GCMCertificateScopeDefault GCMCertificateScope = "DEFAULT"
	// Certificates with scope EDGE_CACHE are special-purposed certificates, served from Edge Points of Presence.
	// See https://cloud.google.com/vpc/docs/edge-locations.
	GCMCertificateScopeEdgeCache GCMCertificateScope = "EDGE_CACHE"
)

type GetCloudKeystoresCloudKeystoresCloudKeystoreConnection

type GetCloudKeystoresCloudKeystoresCloudKeystoreConnection struct {
	// CloudKeystores in the current page, without cursor
	Nodes []*GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore `json:"nodes"`
}

GetCloudKeystoresCloudKeystoresCloudKeystoreConnection includes the requested fields of the GraphQL type CloudKeystoreConnection. The GraphQL type's documentation follows.

A page of CloudKeystore results

func (*GetCloudKeystoresCloudKeystoresCloudKeystoreConnection) GetNodes

GetNodes returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnection.Nodes, and is useful for accessing the field via an interface.

type GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore

type GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore struct {
	Id string `json:"id"`
	// Cloud Keystore name
	//
	// A string between 3 and 250 characters
	Name                   string            `json:"name"`
	Type                   CloudKeystoreType `json:"type"`
	MachineIdentitiesCount int               `json:"machineIdentitiesCount"`
}

GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore includes the requested fields of the GraphQL type CloudKeystore.

func (*GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore) GetId

GetId returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore.Id, and is useful for accessing the field via an interface.

func (*GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore) GetMachineIdentitiesCount

GetMachineIdentitiesCount returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore.MachineIdentitiesCount, and is useful for accessing the field via an interface.

func (*GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore) GetName

GetName returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore.Name, and is useful for accessing the field via an interface.

func (*GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore) GetType

GetType returns GetCloudKeystoresCloudKeystoresCloudKeystoreConnectionNodesCloudKeystore.Type, and is useful for accessing the field via an interface.

type GetCloudKeystoresResponse

type GetCloudKeystoresResponse struct {
	// Retrieves Cloud Keystores.
	// The pagination can be either forward or backward. To enable forward pagination, two arguments
	// are used: `after` and `first`. To enable backward pagination, two arguments are used: `before` and `last`.
	// If arguments for both forward and backward pagination are supplied, forward pagination wil be used. If no arguments
	// are supplied, it returns the first page of 10 cloud keystores (i.e. defaults `first` to 10). The result is sorted by
	// the added on date in ascending order.
	// - after: returns the elements in the list that come after the specified cursor. Defaults to empty string, meaning
	// that we return the first page of cloud providers, if `first` value is supplied
	// - first: non-negative integer, denoting the first `n` number of records to return after the `after` cursor value.
	// Max value is 100
	// - before: returns the elements in the list that come before the specified cursor. By default is the empty string,
	// meaning that the results will be the last page, if `last` value is supplied
	// - last: non-negative integer, denoting the last `n` number of records to return before the `before` cursor value.
	// Max value is 100
	CloudKeystores *GetCloudKeystoresCloudKeystoresCloudKeystoreConnection `json:"cloudKeystores"`
}

GetCloudKeystoresResponse is returned by GetCloudKeystores on success.

func GetCloudKeystores

func GetCloudKeystores(
	ctx_ context.Context,
	client_ graphql.Client,
	cloudKeystoreId *string,
	cloudKeystoreName *string,
	cloudProviderId *string,
	cloudProviderName *string,
) (*GetCloudKeystoresResponse, error)

func (*GetCloudKeystoresResponse) GetCloudKeystores

GetCloudKeystores returns GetCloudKeystoresResponse.CloudKeystores, and is useful for accessing the field via an interface.

type GetCloudProviderByNameCloudProvidersCloudProviderConnection

type GetCloudProviderByNameCloudProvidersCloudProviderConnection struct {
	// CloudProviders in the current page, without cursor
	Nodes []*GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider `json:"nodes"`
}

GetCloudProviderByNameCloudProvidersCloudProviderConnection includes the requested fields of the GraphQL type CloudProviderConnection. The GraphQL type's documentation follows.

A page of CloudProvider results

func (*GetCloudProviderByNameCloudProvidersCloudProviderConnection) GetNodes

GetNodes returns GetCloudProviderByNameCloudProvidersCloudProviderConnection.Nodes, and is useful for accessing the field via an interface.

type GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider

type GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider struct {
	Id             string              `json:"id"`
	Name           string              `json:"name"`
	Type           CloudProviderType   `json:"type"`
	Status         CloudProviderStatus `json:"status"`
	StatusDetails  *string             `json:"statusDetails"`
	KeystoresCount int                 `json:"keystoresCount"`
}

GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider includes the requested fields of the GraphQL type CloudProvider.

func (*GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider) GetId

GetId returns GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider.Id, and is useful for accessing the field via an interface.

func (*GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider) GetKeystoresCount

GetKeystoresCount returns GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider.KeystoresCount, and is useful for accessing the field via an interface.

func (*GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider) GetName

GetName returns GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider.Name, and is useful for accessing the field via an interface.

func (*GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider) GetStatus

GetStatus returns GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider.Status, and is useful for accessing the field via an interface.

func (*GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider) GetStatusDetails

GetStatusDetails returns GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider.StatusDetails, and is useful for accessing the field via an interface.

func (*GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider) GetType

GetType returns GetCloudProviderByNameCloudProvidersCloudProviderConnectionNodesCloudProvider.Type, and is useful for accessing the field via an interface.

type GetCloudProviderByNameResponse

type GetCloudProviderByNameResponse struct {
	// Retrieves Cloud Providers.
	// The pagination can be either forward or backward. To enable forward pagination, two arguments
	// are used: `after` and `first`. To enable backward pagination, two arguments are used: `before` and `last`.
	// If arguments for both forward and backward pagination are supplied, forward pagination wil be used. If no arguments
	// are supplied, it returns the first page of 10 cloud providers (i.e. defaults `first` to 10). The result is sorted by
	// the added on date in ascending order.
	// - after: returns the elements in the list that come after the specified cursor. Defaults to empty string, meaning
	// that we return the first page of cloud providers, if `first` value is supplied
	// - first: non-negative integer, denoting the first `n` number of records to return after the `after` cursor value.
	// Max value is 100
	// - before: returns the elements in the list that come before the specified cursor. By default is the empty string,
	// meaning that the results will be the last page, if `last` value is supplied
	// - last: non-negative integer, denoting the last `n` number of records to return before the `before` cursor value.
	// Max value is 100
	CloudProviders *GetCloudProviderByNameCloudProvidersCloudProviderConnection `json:"cloudProviders"`
}

GetCloudProviderByNameResponse is returned by GetCloudProviderByName on success.

func GetCloudProviderByName

func GetCloudProviderByName(
	ctx_ context.Context,
	client_ graphql.Client,
	name string,
) (*GetCloudProviderByNameResponse, error)

func (*GetCloudProviderByNameResponse) GetCloudProviders

GetCloudProviders returns GetCloudProviderByNameResponse.CloudProviders, and is useful for accessing the field via an interface.

type ProvisionCertificateProvisionToCloudKeystoreWorkflowResult

type ProvisionCertificateProvisionToCloudKeystoreWorkflowResult struct {
	WorkflowId   string `json:"workflowId"`
	WorkflowName string `json:"workflowName"`
}

ProvisionCertificateProvisionToCloudKeystoreWorkflowResult includes the requested fields of the GraphQL type WorkflowResult.

func (*ProvisionCertificateProvisionToCloudKeystoreWorkflowResult) GetWorkflowId

GetWorkflowId returns ProvisionCertificateProvisionToCloudKeystoreWorkflowResult.WorkflowId, and is useful for accessing the field via an interface.

func (*ProvisionCertificateProvisionToCloudKeystoreWorkflowResult) GetWorkflowName

GetWorkflowName returns ProvisionCertificateProvisionToCloudKeystoreWorkflowResult.WorkflowName, and is useful for accessing the field via an interface.

type ProvisionCertificateResponse

type ProvisionCertificateResponse struct {
	// Provision a certificate to a Cloud Keystore
	ProvisionToCloudKeystore *ProvisionCertificateProvisionToCloudKeystoreWorkflowResult `json:"provisionToCloudKeystore"`
}

ProvisionCertificateResponse is returned by ProvisionCertificate on success.

func ProvisionCertificate

func ProvisionCertificate(
	ctx_ context.Context,
	client_ graphql.Client,
	certificateId string,
	cloudKeystoreId string,
	wsClientId string,
	options *CertificateProvisioningOptionsInput,
) (*ProvisionCertificateResponse, error)

func (*ProvisionCertificateResponse) GetProvisionToCloudKeystore

GetProvisionToCloudKeystore returns ProvisionCertificateResponse.ProvisionToCloudKeystore, and is useful for accessing the field via an interface.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL