domain

package
v5.7.2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 1

Documentation

Index

Constants

View Source
const (
	CloudProviderStatusUnknown CloudProviderStatus = iota
	CloudProviderStatusValidated
	CloudProviderStatusNotValidated

	CloudProviderStatusValidatedStr    = "VALIDATED"
	CloudProviderStatusNotValidatedStr = "NOT_VALIDATED"
	CloudProviderStatusUnknownStr      = "UNKNOWN"
)
View Source
const (
	CloudProviderTypeUnknown CloudProviderType = iota
	CloudProviderTypeAWS
	CloudProviderTypeAzure
	CloudProviderTypeGCP

	CloudProviderTypeAWSStr     = "AWS"
	CloudProviderTypeAzureStr   = "AZURE"
	CloudProviderTypeGCPStr     = "GCP"
	CloudProviderTypeUnknownStr = "UNKNOWN"
)
View Source
const (
	CloudKeystoreTypeUnknown CloudKeystoreType = iota
	CloudKeystoreTypeACM
	CloudKeystoreTypeAKV
	CloudKeystoreTypeGCM

	CloudKeystoreTypeACMStr     = "ACM"
	CloudKeystoreTypeAKVStr     = "AKV"
	CloudKeystoreTypeGCMStr     = "GCM"
	CloudKeystoreTypeUnknownStr = "UNKNOWN"
)
View Source
const (
	MachineIdentityStatusUnknown MachineIdentityStatus = iota
	MachineIdentityStatusNew
	MachineIdentityStatusPending
	MachineIdentityStatusInstalled
	MachineIdentityStatusDiscovered
	MachineIdentityStatusValidated
	MachineIdentityStatusMissing
	MachineIdentityStatusFailed

	MachineIdentityStatusUnknownStr    = "UNKNOWN"
	MachineIdentityStatusNewStr        = "NEW"
	MachineIdentityStatusPendingStr    = "PENDING"
	MachineIdentityStatusInstalledStr  = "INSTALLED"
	MachineIdentityStatusDiscoveredStr = "DISCOVERED"
	MachineIdentityStatusValidatedStr  = "VALIDATED"
	MachineIdentityStatusMissingStr    = "MISSING"
	MachineIdentityStatusFailedStr     = "FAILED"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CertificateCloudMetadata

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

func NewCertificateCloudMetadata

func NewCertificateCloudMetadata(values map[string]interface{}) CertificateCloudMetadata

func (*CertificateCloudMetadata) GetKeystoreType added in v5.7.1

func (ccm *CertificateCloudMetadata) GetKeystoreType() CloudKeystoreType

func (*CertificateCloudMetadata) GetMetadata

func (ccm *CertificateCloudMetadata) GetMetadata() map[string]interface{}

func (*CertificateCloudMetadata) GetValue

func (ccm *CertificateCloudMetadata) GetValue(key string) interface{}

type CloudKeystore

type CloudKeystore struct {
	ID                     string
	Name                   string
	Type                   CloudKeystoreType
	MachineIdentitiesCount int
}

type CloudKeystoreType added in v5.7.1

type CloudKeystoreType int

func (CloudKeystoreType) String added in v5.7.1

func (ckt CloudKeystoreType) String() string

type CloudMachineIdentity

type CloudMachineIdentity struct {
	ID                string
	CloudKeystoreID   string
	CloudKeystoreName string
	CloudProviderID   string
	CloudProviderName string
	CertificateID     string
	Metadata          *CertificateCloudMetadata
	Status            MachineIdentityStatus
	StatusDetails     string
}

type CloudProvider

type CloudProvider struct {
	ID             string
	Name           string
	Type           CloudProviderType
	Status         CloudProviderStatus
	StatusDetails  string
	KeystoresCount int
}

type CloudProviderStatus

type CloudProviderStatus int

func GetCloudProviderStatus added in v5.7.1

func GetCloudProviderStatus(status string) CloudProviderStatus

func (CloudProviderStatus) String

func (cps CloudProviderStatus) String() string

type CloudProviderType

type CloudProviderType int

func (CloudProviderType) String

func (cpt CloudProviderType) String() string

type GetCloudKeystoreRequest

type GetCloudKeystoreRequest struct {
	CloudProviderID   *string
	CloudProviderName *string
	CloudKeystoreID   *string
	CloudKeystoreName *string
}

type GetCloudMachineIdentityRequest

type GetCloudMachineIdentityRequest struct {
	KeystoreID        *string
	MachineIdentityID *string
	Fingerprints      []string
	NewlyDiscovered   *bool
	Metadata          *string
}

type GetCloudProviderRequest

type GetCloudProviderRequest struct {
	Name   string
	Status CloudProviderStatus
	Type   CloudProviderType
}

type MachineIdentityStatus

type MachineIdentityStatus int

func (MachineIdentityStatus) String

func (mis MachineIdentityStatus) String() string

type ProvisioningMetadata added in v5.7.1

type ProvisioningMetadata struct {
	CloudKeystoreType         CloudKeystoreType
	CertificateID             string
	CertificateName           string
	CertificateVersion        string
	MachineIdentityID         string
	MachineIdentityActionType string
}

type ProvisioningOptions added in v5.7.1

type ProvisioningOptions struct {
	// for ACM only
	ARN string
	// for AKV and GCM only
	CloudCertificateName string
}

type ProvisioningRequest added in v5.7.1

type ProvisioningRequest struct {
	MachineIdentityID *string
	CertificateID     *string
	PickupID          *string
	KeystoreID        *string
	KeystoreName      *string
	ProviderName      *string
	Timeout           time.Duration
	Keystore          *CloudKeystore
}

type ProvisioningResponse

type ProvisioningResponse struct {
	WorkflowId   string
	WorkflowName string
}

type WorkFlowResponseData

type WorkFlowResponseData struct {
	Result       interface{} `json:"result"`
	WorkflowID   string      `json:"workflowId"`
	WorkflowName string      `json:"workflowName"`
	WsClientID   string      `json:"wsClientId"`
}

type WorkflowResponse

type WorkflowResponse struct {
	SpecVersion     string               `json:"specversion"`
	Id              string               `json:"id"`
	Source          string               `json:"source"`
	Type            string               `json:"type"`
	Subject         string               `json:"subject"`
	DataContentType string               `json:"datacontenttype"`
	Time            string               `json:"time"`
	Data            WorkFlowResponseData `json:"data"`
	EventKind       string               `json:"eventkind"`
	EventResource   string               `json:"eventresource"`
	Recipient       string               `json:"recipient"`
	CorrelationID   string               `json:"correlationid"`
	Stream          string               `json:"stream"`
}

Jump to

Keyboard shortcuts

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