Documentation ¶
Index ¶
- Constants
- Variables
- func APIServiceGVK() apiv1.GroupVersionKind
- func APIServiceInstanceGVK() apiv1.GroupVersionKind
- func APIServiceRevisionGVK() apiv1.GroupVersionKind
- func APISpecGVK() apiv1.GroupVersionKind
- func APISpecLintingJobGVK() apiv1.GroupVersionKind
- func APISpecLintingRulesetGVK() apiv1.GroupVersionKind
- func AccessControlListGVK() apiv1.GroupVersionKind
- func AccessRequestDefinitionGVK() apiv1.GroupVersionKind
- func AccessRequestGVK() apiv1.GroupVersionKind
- func AssetMappingGVK() apiv1.GroupVersionKind
- func AssetMappingTemplateGVK() apiv1.GroupVersionKind
- func BatchJobGVK() apiv1.GroupVersionKind
- func ConsumerInstanceGVK() apiv1.GroupVersionKind
- func ConsumerSubscriptionDefinitionGVK() apiv1.GroupVersionKind
- func CredentialGVK() apiv1.GroupVersionKind
- func CredentialRequestDefinitionGVK() apiv1.GroupVersionKind
- func DataplaneGVK() apiv1.GroupVersionKind
- func DataplaneSecretGVK() apiv1.GroupVersionKind
- func DiscoveryAgentGVK() apiv1.GroupVersionKind
- func EnvironmentGVK() apiv1.GroupVersionKind
- func IntegrationGVK() apiv1.GroupVersionKind
- func K8SClusterGVK() apiv1.GroupVersionKind
- func K8SResourceGVK() apiv1.GroupVersionKind
- func ManagedApplicationGVK() apiv1.GroupVersionKind
- func MeshDiscoveryGVK() apiv1.GroupVersionKind
- func MeshGVK() apiv1.GroupVersionKind
- func MeshServiceGVK() apiv1.GroupVersionKind
- func MeshWorkloadGVK() apiv1.GroupVersionKind
- func ResourceDiscoveryGVK() apiv1.GroupVersionKind
- func ResourceHookGVK() apiv1.GroupVersionKind
- func SecretGVK() apiv1.GroupVersionKind
- func SpecDiscoveryGVK() apiv1.GroupVersionKind
- func TraceabilityAgentGVK() apiv1.GroupVersionKind
- func WatchTopicGVK() apiv1.GroupVersionKind
- func WebhookGVK() apiv1.GroupVersionKind
- type APIService
- type APIServiceInstance
- func (res *APIServiceInstance) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *APIServiceInstance) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *APIServiceInstance) MarshalJSON() ([]byte, error)
- func (res *APIServiceInstance) PluralName() string
- func (res *APIServiceInstance) UnmarshalJSON(data []byte) error
- type APIServiceRevision
- func (res *APIServiceRevision) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *APIServiceRevision) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *APIServiceRevision) MarshalJSON() ([]byte, error)
- func (res *APIServiceRevision) PluralName() string
- func (res *APIServiceRevision) UnmarshalJSON(data []byte) error
- type APISpec
- type APISpecLintingJob
- func (res *APISpecLintingJob) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *APISpecLintingJob) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *APISpecLintingJob) MarshalJSON() ([]byte, error)
- func (res *APISpecLintingJob) PluralName() string
- func (res *APISpecLintingJob) UnmarshalJSON(data []byte) error
- type APISpecLintingRuleset
- func (res *APISpecLintingRuleset) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *APISpecLintingRuleset) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *APISpecLintingRuleset) MarshalJSON() ([]byte, error)
- func (res *APISpecLintingRuleset) PluralName() string
- func (res *APISpecLintingRuleset) UnmarshalJSON(data []byte) error
- type AccessControlList
- func (res *AccessControlList) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AccessControlList) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AccessControlList) MarshalJSON() ([]byte, error)
- func (res *AccessControlList) PluralName() string
- func (res *AccessControlList) UnmarshalJSON(data []byte) error
- type AccessControlListSpec
- type AccessControlListSpecAccessLevelScope
- type AccessControlListSpecAccessLevelScopedKind
- type AccessControlListSpecAccessLevelScopedResource
- type AccessControlListSpecRules
- type AccessControlListSpecSubjects
- type AccessLevelScope
- type AccessRequest
- func (res *AccessRequest) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AccessRequest) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AccessRequest) MarshalJSON() ([]byte, error)
- func (res *AccessRequest) PluralName() string
- func (res *AccessRequest) UnmarshalJSON(data []byte) error
- type AccessRequestDefinition
- func (res *AccessRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AccessRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AccessRequestDefinition) MarshalJSON() ([]byte, error)
- func (res *AccessRequestDefinition) PluralName() string
- func (res *AccessRequestDefinition) UnmarshalJSON(data []byte) error
- type AccessRequestDefinitionSpec
- type AccessRequestDefinitionSpecProvision
- type AccessRequestDefinitionSpecProvisionPolicies
- type AccessRequestReferencesApplication
- type AccessRequestReferencesAssetRequest
- type AccessRequestReferencesAssetResource
- type AccessRequestReferencesProduct
- type AccessRequestReferencesProductPlan
- type AccessRequestReferencesProductRelease
- type AccessRequestReferencesPublishedProduct
- type AccessRequestReferencesQuota
- type AccessRequestReferencesSubscription
- type AccessRequestSpec
- type AccessRequestSpecQuota
- type AccessRequestStatus
- type AccessRequestStatusReasons
- type AccessRules
- type ApiServiceCompliance
- type ApiServiceComplianceLintingStatus
- type ApiServiceComplianceLintingStatusResult
- type ApiServiceDetails
- type ApiServiceInstanceReferences
- type ApiServiceInstanceSpec
- type ApiServiceInstanceSpecEndpoint
- type ApiServiceInstanceSpecRouting
- type ApiServiceRevisionCompliance
- type ApiServiceRevisionComplianceLintingStatus
- type ApiServiceRevisionComplianceLintingStatusResult
- type ApiServiceRevisionSpec
- type ApiServiceRevisionSpecDefinition
- type ApiServiceSpec
- type ApiServiceSpecIcon
- type ApiServiceStatus
- type ApiServiceStatusError
- type ApiSpecLintingJobResult
- type ApiSpecLintingJobResultDetails
- type ApiSpecLintingJobResultLocation
- type ApiSpecLintingJobResultSummary
- type ApiSpecLintingJobSpec
- type ApiSpecLintingJobState
- type ApiSpecLintingRulesetSpec
- type ApiSpecLintingRulesetSpecDefinition
- type ApiSpecSpec
- type ApiSpecSpecDefinition
- type ApiSpecSpecEndpoints
- type AssetMapping
- func (res *AssetMapping) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AssetMapping) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AssetMapping) MarshalJSON() ([]byte, error)
- func (res *AssetMapping) PluralName() string
- func (res *AssetMapping) UnmarshalJSON(data []byte) error
- type AssetMappingSpec
- type AssetMappingSpecInputs
- type AssetMappingStatus
- type AssetMappingStatusOperationType
- type AssetMappingStatusOutputs
- type AssetMappingStatusResource
- type AssetMappingStatusResourceAssetResource
- type AssetMappingStatusResourceStage
- type AssetMappingStatusSource
- type AssetMappingStatusSourceResource
- type AssetMappingStatusSourceResourceApiService
- type AssetMappingStatusSourceResourceApiServiceInstance
- type AssetMappingStatusSourceResourceApiServiceRevision
- type AssetMappingStatusSourceResourceAssetMappingTemplate
- type AssetMappingTemplate
- func (res *AssetMappingTemplate) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AssetMappingTemplate) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AssetMappingTemplate) MarshalJSON() ([]byte, error)
- func (res *AssetMappingTemplate) PluralName() string
- func (res *AssetMappingTemplate) UnmarshalJSON(data []byte) error
- type AssetMappingTemplateSpec
- type AssetMappingTemplateSpecApiService
- type AssetMappingTemplateSpecApiServiceRevision
- type AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance
- type AssetMappingTemplateSpecAsset
- type AssetMappingTemplateSpecFilters
- type BatchJob
- type BatchJobProgress
- type BatchJobSpec
- type BatchJobSpecReferences
- type ConsumerInstance
- func (res *ConsumerInstance) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ConsumerInstance) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ConsumerInstance) MarshalJSON() ([]byte, error)
- func (res *ConsumerInstance) PluralName() string
- func (res *ConsumerInstance) UnmarshalJSON(data []byte) error
- type ConsumerInstanceReferences
- type ConsumerInstanceSpec
- type ConsumerInstanceSpecAdditionalDataProperties
- type ConsumerInstanceSpecIcon
- type ConsumerInstanceSpecSubscription
- type ConsumerInstanceSpecUnstructuredDataProperties
- type ConsumerInstanceStatus
- type ConsumerInstanceStatusPhase
- type ConsumerSubscriptionDefinition
- func (res *ConsumerSubscriptionDefinition) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ConsumerSubscriptionDefinition) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ConsumerSubscriptionDefinition) MarshalJSON() ([]byte, error)
- func (res *ConsumerSubscriptionDefinition) PluralName() string
- func (res *ConsumerSubscriptionDefinition) UnmarshalJSON(data []byte) error
- type ConsumerSubscriptionDefinitionSpec
- type ConsumerSubscriptionDefinitionSpecSchema
- type ConsumerSubscriptionDefinitionSpecSchemaProperties
- type Credential
- type CredentialPolicies
- type CredentialPoliciesExpiry
- type CredentialReferences
- type CredentialRequestDefinition
- func (res *CredentialRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *CredentialRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *CredentialRequestDefinition) MarshalJSON() ([]byte, error)
- func (res *CredentialRequestDefinition) PluralName() string
- func (res *CredentialRequestDefinition) UnmarshalJSON(data []byte) error
- type CredentialRequestDefinitionReferences
- type CredentialRequestDefinitionSpec
- type CredentialRequestDefinitionSpecProvision
- type CredentialRequestDefinitionSpecProvisionPolicies
- type CredentialRequestDefinitionSpecProvisionPoliciesExpiry
- type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions
- type CredentialRequestDefinitionSpecWebhook
- type CredentialSpec
- type CredentialSpecState
- type CredentialState
- type CredentialStatus
- type CredentialStatusReasons
- type Dataplane
- type DataplaneSecret
- func (res *DataplaneSecret) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *DataplaneSecret) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *DataplaneSecret) MarshalJSON() ([]byte, error)
- func (res *DataplaneSecret) PluralName() string
- func (res *DataplaneSecret) UnmarshalJSON(data []byte) error
- type DataplaneSecretSpec
- type DataplaneSecretState
- type DataplaneSecretStatus
- type DataplaneSecretStatusError
- type DataplaneSecretStatusSuccess
- type DataplaneSecurity
- type DataplaneSpec
- type DataplaneSpecAws
- type DiscoveryAgent
- func (res *DiscoveryAgent) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *DiscoveryAgent) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *DiscoveryAgent) MarshalJSON() ([]byte, error)
- func (res *DiscoveryAgent) PluralName() string
- func (res *DiscoveryAgent) UnmarshalJSON(data []byte) error
- type DiscoveryAgentDataplane
- type DiscoveryAgentSpec
- type DiscoveryAgentSpecConfig
- type DiscoveryAgentSpecConfigOwner
- type DiscoveryAgentSpecLogging
- type DiscoveryAgentStatus
- type Environment
- type EnvironmentCompliancetasks
- type EnvironmentCompliancetasksLinting
- type EnvironmentPolicies
- type EnvironmentPoliciesCredentials
- type EnvironmentPoliciesCredentialsExpiry
- type EnvironmentPoliciesCredentialsExpiryNotifications
- type EnvironmentSpec
- type EnvironmentSpecCompliance
- type EnvironmentSpecIcon
- type Integration
- type IntegrationSpec
- type K8SCluster
- type K8SClusterSpec
- type K8SResource
- type K8SResourceSpec
- type K8SResourceSpecOwnerReferences
- type ManagedApplication
- func (res *ManagedApplication) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ManagedApplication) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ManagedApplication) MarshalJSON() ([]byte, error)
- func (res *ManagedApplication) PluralName() string
- func (res *ManagedApplication) UnmarshalJSON(data []byte) error
- type ManagedApplicationMarketplace
- type ManagedApplicationMarketplaceResource
- type ManagedApplicationMarketplaceResourceMetadata
- type ManagedApplicationMarketplaceResourceOwner
- type ManagedApplicationMarketplaceResourceOwnerOrganization
- type ManagedApplicationReferences
- type ManagedApplicationSpec
- type ManagedApplicationSpecSecurity
- type ManagedApplicationStatus
- type Mesh
- type MeshDiscovery
- func (res *MeshDiscovery) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *MeshDiscovery) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *MeshDiscovery) MarshalJSON() ([]byte, error)
- func (res *MeshDiscovery) PluralName() string
- func (res *MeshDiscovery) UnmarshalJSON(data []byte) error
- type MeshDiscoverySpec
- type MeshService
- type MeshServiceSpec
- type MeshServiceSpecEndpoints
- type MeshServiceSpecPorts
- type MeshWorkload
- func (res *MeshWorkload) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *MeshWorkload) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *MeshWorkload) MarshalJSON() ([]byte, error)
- func (res *MeshWorkload) PluralName() string
- func (res *MeshWorkload) UnmarshalJSON(data []byte) error
- type MeshWorkloadSpec
- type MeshWorkloadSpecPorts
- type MeshWorkloadSpecSpecs
- type ResourceDiscovery
- func (res *ResourceDiscovery) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ResourceDiscovery) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ResourceDiscovery) MarshalJSON() ([]byte, error)
- func (res *ResourceDiscovery) PluralName() string
- func (res *ResourceDiscovery) UnmarshalJSON(data []byte) error
- type ResourceDiscoverySpec
- type ResourceDiscoverySpecNamespaceFilter
- type ResourceDiscoverySpecResourceFilter
- type ResourceHook
- func (res *ResourceHook) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ResourceHook) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ResourceHook) MarshalJSON() ([]byte, error)
- func (res *ResourceHook) PluralName() string
- func (res *ResourceHook) UnmarshalJSON(data []byte) error
- type ResourceHookSpec
- type ResourceHookSpecScope
- type ResourceHookSpecTriggers
- type Secret
- type SecretSpec
- type SpecDiscovery
- func (res *SpecDiscovery) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *SpecDiscovery) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *SpecDiscovery) MarshalJSON() ([]byte, error)
- func (res *SpecDiscovery) PluralName() string
- func (res *SpecDiscovery) UnmarshalJSON(data []byte) error
- type SpecDiscoverySpec
- type SpecDiscoverySpecNamespaceFilter
- type SpecDiscoverySpecResourceFilter
- type SpecDiscoverySpecTargets
- type SpecDiscoverySpecTargetsExactPaths
- type SpecDiscoverySpecTargetsFromAnnotation
- type TraceabilityAgent
- func (res *TraceabilityAgent) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *TraceabilityAgent) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *TraceabilityAgent) MarshalJSON() ([]byte, error)
- func (res *TraceabilityAgent) PluralName() string
- func (res *TraceabilityAgent) UnmarshalJSON(data []byte) error
- type TraceabilityAgentDataplane
- type TraceabilityAgentSpec
- type TraceabilityAgentSpecConfig
- type TraceabilityAgentSpecConfigOwner
- type TraceabilityAgentSpecConfigRedaction
- type TraceabilityAgentSpecConfigRedactionQueryArgument
- type TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize
- type TraceabilityAgentSpecConfigRedactionRequestHeaders
- type TraceabilityAgentSpecConfigRedactionResponseHeaders
- type TraceabilityAgentSpecConfigSampling
- type TraceabilityAgentSpecLogging
- type TraceabilityAgentStatus
- type WatchTopic
- type WatchTopicSpec
- type WatchTopicSpecFilters
- type WatchTopicSpecScope
- type Webhook
- type WebhookSpec
- type WebhookSpecAuth
- type WebhookSpecAuthSecret
Constants ¶
const ( APIServiceResourceName = "apiservices" ApiServiceComplianceSubResourceName = "compliance" ApiServiceDetailsSubResourceName = "details" ApiServiceStatusSubResourceName = "status" )
const ( APIServiceInstanceResourceName = "apiserviceinstances" ApiServiceInstanceReferencesSubResourceName = "references" )
const ( APIServiceRevisionResourceName = "apiservicerevisions" ApiServiceRevisionComplianceSubResourceName = "compliance" )
const ( APISpecLintingJobResourceName = "apispeclintingjobs" ApiSpecLintingJobArchivedSubResourceName = "archived" ApiSpecLintingJobResultSubResourceName = "result" ApiSpecLintingJobStateSubResourceName = "state" )
const ( APISpecLintingRulesetResourceName = "apispeclintingrulesets" ApiSpecLintingRulesetRevisionSubResourceName = "revision" )
const ( AccessRequestResourceName = "accessrequests" AccessRequestDataSubResourceName = "data" AccessRequestReferencesSubResourceName = "references" AccessRequestStatusSubResourceName = "status" )
const ( AccessRequestDefinitionResourceName = "accessrequestdefinitions" AccessRequestDefinitionWebhooksSubResourceName = "webhooks" )
const ( AssetMappingResourceName = "assetmappings" AssetMappingStatusSubResourceName = "status" )
const ( BatchJobResourceName = "batchjobs" BatchJobProgressSubResourceName = "progress" )
const ( ConsumerInstanceResourceName = "consumerinstances" ConsumerInstanceReferencesSubResourceName = "references" ConsumerInstanceStatusSubResourceName = "status" )
const ( CredentialResourceName = "credentials" CredentialDataSubResourceName = "data" CredentialPoliciesSubResourceName = "policies" CredentialReferencesSubResourceName = "references" CredentialStateSubResourceName = "state" CredentialStatusSubResourceName = "status" )
const ( CredentialRequestDefinitionResourceName = "credentialrequestdefinitions" CredentialRequestDefinitionReferencesSubResourceName = "references" CredentialRequestDefinitionWebhooksSubResourceName = "webhooks" )
const ( DataplaneResourceName = "dataplanes" DataplaneSecretschemaSubResourceName = "secretschema" DataplaneSecuritySubResourceName = "security" )
const ( DataplaneSecretResourceName = "dataplanesecrets" DataplaneSecretStateSubResourceName = "state" DataplaneSecretStatusSubResourceName = "status" )
const ( DiscoveryAgentResourceName = "discoveryagents" DiscoveryAgentDataplaneSubResourceName = "dataplane" DiscoveryAgentStatusSubResourceName = "status" )
const ( EnvironmentResourceName = "environments" EnvironmentCompliancetasksSubResourceName = "compliancetasks" EnvironmentPoliciesSubResourceName = "policies" )
const ( ManagedApplicationResourceName = "managedapplications" ManagedApplicationMarketplaceSubResourceName = "marketplace" ManagedApplicationReferencesSubResourceName = "references" ManagedApplicationStatusSubResourceName = "status" )
const ( TraceabilityAgentResourceName = "traceabilityagents" TraceabilityAgentDataplaneSubResourceName = "dataplane" TraceabilityAgentStatusSubResourceName = "status" )
const (
APISpecResourceName = "apispecs"
)
const (
AccessControlListResourceName = "accesscontrollists"
)
const (
AssetMappingTemplateResourceName = "assetmappingtemplates"
)
const (
ConsumerSubscriptionDefinitionResourceName = "consumersubscriptiondefs"
)
const (
IntegrationResourceName = "integrations"
)
const (
K8SClusterResourceName = "k8sclusters"
)
const (
K8SResourceResourceName = "k8sresources"
)
const (
MeshDiscoveryResourceName = "meshdiscoveries"
)
const (
MeshResourceName = "meshes"
)
const (
MeshServiceResourceName = "meshservices"
)
const (
MeshWorkloadResourceName = "meshworkloads"
)
const (
ResourceDiscoveryResourceName = "resourcediscoveries"
)
const (
ResourceHookResourceName = "resourcehooks"
)
const (
SecretResourceName = "secrets"
)
const (
SpecDiscoveryResourceName = "specdiscoveries"
)
const (
WatchTopicResourceName = "watchtopics"
)
const (
WebhookResourceName = "webhooks"
)
Variables ¶
var ( APIServiceCtx log.ContextField = "apiService" APIServiceScopes = []string{"Environment"} )
var ( APIServiceInstanceCtx log.ContextField = "apiServiceInstance" APIServiceInstanceScopes = []string{"Environment"} )
var ( APIServiceRevisionCtx log.ContextField = "apiServiceRevision" APIServiceRevisionScopes = []string{"Environment"} )
var ( APISpecCtx log.ContextField = "apiSpec" APISpecScopes = []string{"K8SCluster"} )
var ( APISpecLintingJobCtx log.ContextField = "apiSpecLintingJob" APISpecLintingJobScopes = []string{"Environment"} )
var ( APISpecLintingRulesetCtx log.ContextField = "apiSpecLintingRuleset" APISpecLintingRulesetScopes = []string{""} )
var ( AccessControlListCtx log.ContextField = "accessControlList" AccessControlListScopes = []string{"APISpecLintingRuleset", "Environment", "Integration", "K8SCluster", "Mesh", "WatchTopic"} )
var ( AccessRequestCtx log.ContextField = "accessRequest" AccessRequestScopes = []string{"Environment"} )
var ( AccessRequestDefinitionCtx log.ContextField = "accessRequestDefinition" AccessRequestDefinitionScopes = []string{"Environment"} )
var ( AssetMappingCtx log.ContextField = "assetMapping" AssetMappingScopes = []string{"Environment"} )
var ( AssetMappingTemplateCtx log.ContextField = "assetMappingTemplate" AssetMappingTemplateScopes = []string{"Environment"} )
var ( BatchJobCtx log.ContextField = "batchJob" BatchJobScopes = []string{"Environment"} )
var ( ConsumerInstanceCtx log.ContextField = "consumerInstance" ConsumerInstanceScopes = []string{"Environment"} )
var ( ConsumerSubscriptionDefinitionCtx log.ContextField = "consumerSubscriptionDefinition" ConsumerSubscriptionDefinitionScopes = []string{"Environment"} )
var ( CredentialCtx log.ContextField = "credential" CredentialScopes = []string{"Environment"} )
var ( CredentialRequestDefinitionCtx log.ContextField = "credentialRequestDefinition" CredentialRequestDefinitionScopes = []string{"Environment"} )
var ( DataplaneCtx log.ContextField = "dataplane" DataplaneScopes = []string{"Environment"} )
var ( DataplaneSecretCtx log.ContextField = "dataplaneSecret" DataplaneSecretScopes = []string{"Environment"} )
var ( DiscoveryAgentCtx log.ContextField = "discoveryAgent" DiscoveryAgentScopes = []string{"Environment"} )
var ( EnvironmentCtx log.ContextField = "environment" EnvironmentScopes = []string{""} )
var ( IntegrationCtx log.ContextField = "integration" IntegrationScopes = []string{""} )
var ( K8SClusterCtx log.ContextField = "k8SCluster" K8SClusterScopes = []string{""} )
var ( K8SResourceCtx log.ContextField = "k8SResource" K8SResourceScopes = []string{"K8SCluster"} )
var ( ManagedApplicationCtx log.ContextField = "managedApplication" ManagedApplicationScopes = []string{"Environment"} )
var ( MeshCtx log.ContextField = "mesh" MeshScopes = []string{""} )
var ( MeshDiscoveryCtx log.ContextField = "meshDiscovery" MeshDiscoveryScopes = []string{"Mesh"} )
var ( MeshServiceCtx log.ContextField = "meshService" MeshServiceScopes = []string{"Mesh"} )
var ( MeshWorkloadCtx log.ContextField = "meshWorkload" MeshWorkloadScopes = []string{"Mesh"} )
var ( ResourceDiscoveryCtx log.ContextField = "resourceDiscovery" ResourceDiscoveryScopes = []string{"K8SCluster"} )
var ( ResourceHookCtx log.ContextField = "resourceHook" ResourceHookScopes = []string{"Integration"} )
var ( SecretCtx log.ContextField = "secret" SecretScopes = []string{"Environment", "Integration"} )
var ( SpecDiscoveryCtx log.ContextField = "specDiscovery" SpecDiscoveryScopes = []string{"K8SCluster"} )
var ( TraceabilityAgentCtx log.ContextField = "traceabilityAgent" TraceabilityAgentScopes = []string{"Environment"} )
var ( WatchTopicCtx log.ContextField = "watchTopic" WatchTopicScopes = []string{""} )
var ( WebhookCtx log.ContextField = "webhook" WebhookScopes = []string{"Environment", "Integration"} )
Functions ¶
func APIServiceGVK ¶
func APIServiceGVK() apiv1.GroupVersionKind
func APIServiceInstanceGVK ¶
func APIServiceInstanceGVK() apiv1.GroupVersionKind
func APIServiceRevisionGVK ¶
func APIServiceRevisionGVK() apiv1.GroupVersionKind
func APISpecGVK ¶
func APISpecGVK() apiv1.GroupVersionKind
func APISpecLintingJobGVK ¶ added in v1.1.52
func APISpecLintingJobGVK() apiv1.GroupVersionKind
func APISpecLintingRulesetGVK ¶ added in v1.1.52
func APISpecLintingRulesetGVK() apiv1.GroupVersionKind
func AccessControlListGVK ¶
func AccessControlListGVK() apiv1.GroupVersionKind
func AccessRequestDefinitionGVK ¶
func AccessRequestDefinitionGVK() apiv1.GroupVersionKind
func AccessRequestGVK ¶
func AccessRequestGVK() apiv1.GroupVersionKind
func AssetMappingGVK ¶
func AssetMappingGVK() apiv1.GroupVersionKind
func AssetMappingTemplateGVK ¶
func AssetMappingTemplateGVK() apiv1.GroupVersionKind
func BatchJobGVK ¶ added in v1.1.52
func BatchJobGVK() apiv1.GroupVersionKind
func ConsumerInstanceGVK ¶
func ConsumerInstanceGVK() apiv1.GroupVersionKind
func ConsumerSubscriptionDefinitionGVK ¶
func ConsumerSubscriptionDefinitionGVK() apiv1.GroupVersionKind
func CredentialGVK ¶
func CredentialGVK() apiv1.GroupVersionKind
func CredentialRequestDefinitionGVK ¶
func CredentialRequestDefinitionGVK() apiv1.GroupVersionKind
func DataplaneGVK ¶ added in v1.1.49
func DataplaneGVK() apiv1.GroupVersionKind
func DataplaneSecretGVK ¶ added in v1.1.49
func DataplaneSecretGVK() apiv1.GroupVersionKind
func DiscoveryAgentGVK ¶
func DiscoveryAgentGVK() apiv1.GroupVersionKind
func EnvironmentGVK ¶
func EnvironmentGVK() apiv1.GroupVersionKind
func IntegrationGVK ¶
func IntegrationGVK() apiv1.GroupVersionKind
func K8SClusterGVK ¶
func K8SClusterGVK() apiv1.GroupVersionKind
func K8SResourceGVK ¶
func K8SResourceGVK() apiv1.GroupVersionKind
func ManagedApplicationGVK ¶
func ManagedApplicationGVK() apiv1.GroupVersionKind
func MeshDiscoveryGVK ¶
func MeshDiscoveryGVK() apiv1.GroupVersionKind
func MeshGVK ¶
func MeshGVK() apiv1.GroupVersionKind
func MeshServiceGVK ¶
func MeshServiceGVK() apiv1.GroupVersionKind
func MeshWorkloadGVK ¶
func MeshWorkloadGVK() apiv1.GroupVersionKind
func ResourceDiscoveryGVK ¶
func ResourceDiscoveryGVK() apiv1.GroupVersionKind
func ResourceHookGVK ¶
func ResourceHookGVK() apiv1.GroupVersionKind
func SecretGVK ¶
func SecretGVK() apiv1.GroupVersionKind
func SpecDiscoveryGVK ¶
func SpecDiscoveryGVK() apiv1.GroupVersionKind
func TraceabilityAgentGVK ¶
func TraceabilityAgentGVK() apiv1.GroupVersionKind
func WatchTopicGVK ¶
func WatchTopicGVK() apiv1.GroupVersionKind
func WebhookGVK ¶
func WebhookGVK() apiv1.GroupVersionKind
Types ¶
type APIService ¶
type APIService struct { apiv1.ResourceMeta // GENERATE: The following code has been modified after code generation // // Compliance ApiServiceCompliance `json:"compliance"` Compliance *ApiServiceCompliance `json:"compliance,omitempty"` Details ApiServiceDetails `json:"details"` Owner *apiv1.Owner `json:"owner"` Spec ApiServiceSpec `json:"spec"` // Status ApiServiceStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
APIService Resource
func APIServiceFromInstanceArray ¶
func APIServiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIService, error)
APIServiceFromInstanceArray converts a []*ResourceInstance to a []*APIService
func NewAPIService ¶
func NewAPIService(name, scopeName string) *APIService
NewAPIService creates an empty *APIService
func (*APIService) AsInstance ¶
func (res *APIService) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a APIService to a ResourceInstance
func (*APIService) FromInstance ¶
func (res *APIService) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a APIService
func (*APIService) MarshalJSON ¶
func (res *APIService) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*APIService) PluralName ¶
func (res *APIService) PluralName() string
PluralName returns the plural name of the resource
func (*APIService) UnmarshalJSON ¶
func (res *APIService) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type APIServiceInstance ¶
type APIServiceInstance struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` References ApiServiceInstanceReferences `json:"references"` Spec ApiServiceInstanceSpec `json:"spec"` }
APIServiceInstance Resource
func APIServiceInstanceFromInstanceArray ¶
func APIServiceInstanceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIServiceInstance, error)
APIServiceInstanceFromInstanceArray converts a []*ResourceInstance to a []*APIServiceInstance
func NewAPIServiceInstance ¶
func NewAPIServiceInstance(name, scopeName string) *APIServiceInstance
NewAPIServiceInstance creates an empty *APIServiceInstance
func (*APIServiceInstance) AsInstance ¶
func (res *APIServiceInstance) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a APIServiceInstance to a ResourceInstance
func (*APIServiceInstance) FromInstance ¶
func (res *APIServiceInstance) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a APIServiceInstance
func (*APIServiceInstance) MarshalJSON ¶
func (res *APIServiceInstance) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*APIServiceInstance) PluralName ¶
func (res *APIServiceInstance) PluralName() string
PluralName returns the plural name of the resource
func (*APIServiceInstance) UnmarshalJSON ¶
func (res *APIServiceInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type APIServiceRevision ¶
type APIServiceRevision struct { apiv1.ResourceMeta Compliance ApiServiceRevisionCompliance `json:"compliance"` Owner *apiv1.Owner `json:"owner"` Spec ApiServiceRevisionSpec `json:"spec"` }
APIServiceRevision Resource
func APIServiceRevisionFromInstanceArray ¶
func APIServiceRevisionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIServiceRevision, error)
APIServiceRevisionFromInstanceArray converts a []*ResourceInstance to a []*APIServiceRevision
func NewAPIServiceRevision ¶
func NewAPIServiceRevision(name, scopeName string) *APIServiceRevision
NewAPIServiceRevision creates an empty *APIServiceRevision
func (*APIServiceRevision) AsInstance ¶
func (res *APIServiceRevision) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a APIServiceRevision to a ResourceInstance
func (*APIServiceRevision) FromInstance ¶
func (res *APIServiceRevision) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a APIServiceRevision
func (*APIServiceRevision) MarshalJSON ¶
func (res *APIServiceRevision) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*APIServiceRevision) PluralName ¶
func (res *APIServiceRevision) PluralName() string
PluralName returns the plural name of the resource
func (*APIServiceRevision) UnmarshalJSON ¶
func (res *APIServiceRevision) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type APISpec ¶
type APISpec struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ApiSpecSpec `json:"spec"` }
APISpec Resource
func APISpecFromInstanceArray ¶
func APISpecFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APISpec, error)
APISpecFromInstanceArray converts a []*ResourceInstance to a []*APISpec
func NewAPISpec ¶
NewAPISpec creates an empty *APISpec
func (*APISpec) AsInstance ¶
func (res *APISpec) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a APISpec to a ResourceInstance
func (*APISpec) FromInstance ¶
func (res *APISpec) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a APISpec
func (*APISpec) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*APISpec) PluralName ¶
PluralName returns the plural name of the resource
func (*APISpec) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type APISpecLintingJob ¶ added in v1.1.52
type APISpecLintingJob struct { apiv1.ResourceMeta Archived interface{} `json:"archived"` Owner *apiv1.Owner `json:"owner"` Result ApiSpecLintingJobResult `json:"result"` Spec ApiSpecLintingJobSpec `json:"spec"` State ApiSpecLintingJobState `json:"state"` }
APISpecLintingJob Resource
func APISpecLintingJobFromInstanceArray ¶ added in v1.1.52
func APISpecLintingJobFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APISpecLintingJob, error)
APISpecLintingJobFromInstanceArray converts a []*ResourceInstance to a []*APISpecLintingJob
func NewAPISpecLintingJob ¶ added in v1.1.52
func NewAPISpecLintingJob(name, scopeName string) *APISpecLintingJob
NewAPISpecLintingJob creates an empty *APISpecLintingJob
func (*APISpecLintingJob) AsInstance ¶ added in v1.1.52
func (res *APISpecLintingJob) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a APISpecLintingJob to a ResourceInstance
func (*APISpecLintingJob) FromInstance ¶ added in v1.1.52
func (res *APISpecLintingJob) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a APISpecLintingJob
func (*APISpecLintingJob) MarshalJSON ¶ added in v1.1.52
func (res *APISpecLintingJob) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*APISpecLintingJob) PluralName ¶ added in v1.1.52
func (res *APISpecLintingJob) PluralName() string
PluralName returns the plural name of the resource
func (*APISpecLintingJob) UnmarshalJSON ¶ added in v1.1.52
func (res *APISpecLintingJob) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type APISpecLintingRuleset ¶ added in v1.1.52
type APISpecLintingRuleset struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Revision interface{} `json:"revision"` Spec ApiSpecLintingRulesetSpec `json:"spec"` }
APISpecLintingRuleset Resource
func APISpecLintingRulesetFromInstanceArray ¶ added in v1.1.52
func APISpecLintingRulesetFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APISpecLintingRuleset, error)
APISpecLintingRulesetFromInstanceArray converts a []*ResourceInstance to a []*APISpecLintingRuleset
func NewAPISpecLintingRuleset ¶ added in v1.1.52
func NewAPISpecLintingRuleset(name string) *APISpecLintingRuleset
NewAPISpecLintingRuleset creates an empty *APISpecLintingRuleset
func (*APISpecLintingRuleset) AsInstance ¶ added in v1.1.52
func (res *APISpecLintingRuleset) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a APISpecLintingRuleset to a ResourceInstance
func (*APISpecLintingRuleset) FromInstance ¶ added in v1.1.52
func (res *APISpecLintingRuleset) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a APISpecLintingRuleset
func (*APISpecLintingRuleset) MarshalJSON ¶ added in v1.1.52
func (res *APISpecLintingRuleset) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*APISpecLintingRuleset) PluralName ¶ added in v1.1.52
func (res *APISpecLintingRuleset) PluralName() string
PluralName returns the plural name of the resource
func (*APISpecLintingRuleset) UnmarshalJSON ¶ added in v1.1.52
func (res *APISpecLintingRuleset) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AccessControlList ¶
type AccessControlList struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec AccessControlListSpec `json:"spec"` }
AccessControlList Resource
func AccessControlListFromInstanceArray ¶
func AccessControlListFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessControlList, error)
AccessControlListFromInstanceArray converts a []*ResourceInstance to a []*AccessControlList
func NewAccessControlList ¶
func NewAccessControlList(name, scopeKind, scopeName string) (*AccessControlList, error)
NewAccessControlList creates an empty *AccessControlList
func (*AccessControlList) AsInstance ¶
func (res *AccessControlList) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AccessControlList to a ResourceInstance
func (*AccessControlList) FromInstance ¶
func (res *AccessControlList) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AccessControlList
func (*AccessControlList) MarshalJSON ¶
func (res *AccessControlList) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AccessControlList) PluralName ¶
func (res *AccessControlList) PluralName() string
PluralName returns the plural name of the resource
func (*AccessControlList) UnmarshalJSON ¶
func (res *AccessControlList) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AccessControlListSpec ¶
type AccessControlListSpec struct { Rules []AccessRules `json:"rules,omitempty"` Subjects []apiv1.Owner `json:"subjects,omitempty"` }
AccessControlListSpec struct for AccessControlListSpec
type AccessControlListSpecAccessLevelScope ¶
type AccessControlListSpecAccessLevelScope struct { // Resource level at which access is being granted. Level string `json:"level,omitempty"` // Set true to allow users to create scoped resources. AllowCreateScoped bool `json:"allowCreateScoped,omitempty"` // Set true to allow users to delete the unscoped resource. AllowDelete bool `json:"allowDelete,omitempty"` // Set true to allow users to update the unscoped resource. AllowWrite bool `json:"allowWrite,omitempty"` }
AccessControlListSpecAccessLevelScope struct for AccessControlListSpecAccessLevelScope
type AccessControlListSpecAccessLevelScopedKind ¶ added in v1.1.35
type AccessControlListSpecAccessLevelScopedKind struct { // Resource level at which access is being granted. Level string `json:"level,omitempty"` // The kind of scoped resources to provide access to or \"*\" for all kinds. Kind string `json:"kind"` // Set true to allow users to create scoped resources of the specified kind. AllowCreate bool `json:"allowCreate,omitempty"` // Set true to allow users to delete scoped resources of the specified kind. AllowDelete bool `json:"allowDelete,omitempty"` // Set true to allow users to update scoped resources of the specified kind. AllowWrite bool `json:"allowWrite,omitempty"` }
AccessControlListSpecAccessLevelScopedKind struct for AccessControlListSpecAccessLevelScopedKind
type AccessControlListSpecAccessLevelScopedResource ¶ added in v1.1.35
type AccessControlListSpecAccessLevelScopedResource struct { // Resource level at which access is being granted. Level string `json:"level,omitempty"` // The kind of scoped resources to provide access. Kind string `json:"kind"` // The name of the scoped resource to provide access to. Name string `json:"name"` // Set true to allow users to delete the referenced scoped resource. AllowDelete bool `json:"allowDelete,omitempty"` // Set true to allow users to update the referenced scoped resource. AllowWrite bool `json:"allowWrite,omitempty"` }
AccessControlListSpecAccessLevelScopedResource struct for AccessControlListSpecAccessLevelScopedResource
type AccessControlListSpecRules ¶
type AccessControlListSpecRules struct {
// GENERATE: The following code has been modified after code generation
Access []interface{} `json:"access,omitempty"`
}
AccessControlListSpecRules (management.v1alpha1.AccessControlList)
type AccessControlListSpecSubjects ¶
type AccessControlListSpecSubjects struct { // Type of the subject Type string `json:"type,omitempty"` // ID of the subject Id string `json:"id,omitempty"` }
AccessControlListSpecSubjects (management.v1alpha1.AccessControlList)
type AccessLevelScope ¶
type AccessLevelScope struct { // Resource level at which access is being granted. Level string `json:"level,omitempty"` }
AccessLevelScope struct for AccessLevelScope
type AccessRequest ¶
type AccessRequest struct { apiv1.ResourceMeta Data interface{} `json:"data"` Owner *apiv1.Owner `json:"owner"` // GENERATE: The following code has been modified after code generation // // References interface{} `json:"references"` References []interface{} `json:"references"` Spec AccessRequestSpec `json:"spec"` // Status AccessRequestStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
AccessRequest Resource
func AccessRequestFromInstanceArray ¶
func AccessRequestFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessRequest, error)
AccessRequestFromInstanceArray converts a []*ResourceInstance to a []*AccessRequest
func NewAccessRequest ¶
func NewAccessRequest(name, scopeName string) *AccessRequest
NewAccessRequest creates an empty *AccessRequest
func (*AccessRequest) AsInstance ¶
func (res *AccessRequest) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AccessRequest to a ResourceInstance
func (*AccessRequest) FromInstance ¶
func (res *AccessRequest) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AccessRequest
func (*AccessRequest) MarshalJSON ¶
func (res *AccessRequest) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AccessRequest) PluralName ¶
func (res *AccessRequest) PluralName() string
PluralName returns the plural name of the resource
func (*AccessRequest) UnmarshalJSON ¶
func (res *AccessRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AccessRequestDefinition ¶
type AccessRequestDefinition struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec AccessRequestDefinitionSpec `json:"spec"` Webhooks interface{} `json:"webhooks"` }
AccessRequestDefinition Resource
func AccessRequestDefinitionFromInstanceArray ¶
func AccessRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessRequestDefinition, error)
AccessRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*AccessRequestDefinition
func NewAccessRequestDefinition ¶
func NewAccessRequestDefinition(name, scopeName string) *AccessRequestDefinition
NewAccessRequestDefinition creates an empty *AccessRequestDefinition
func (*AccessRequestDefinition) AsInstance ¶
func (res *AccessRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AccessRequestDefinition to a ResourceInstance
func (*AccessRequestDefinition) FromInstance ¶
func (res *AccessRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AccessRequestDefinition
func (*AccessRequestDefinition) MarshalJSON ¶
func (res *AccessRequestDefinition) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AccessRequestDefinition) PluralName ¶
func (res *AccessRequestDefinition) PluralName() string
PluralName returns the plural name of the resource
func (*AccessRequestDefinition) UnmarshalJSON ¶
func (res *AccessRequestDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AccessRequestDefinitionSpec ¶
type AccessRequestDefinitionSpec struct { // JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance. (management.v1alpha1.AccessRequestDefinition) Schema map[string]interface{} `json:"schema"` Provision *AccessRequestDefinitionSpecProvision `json:"provision,omitempty"` }
AccessRequestDefinitionSpec (management.v1alpha1.AccessRequestDefinition)
type AccessRequestDefinitionSpecProvision ¶
type AccessRequestDefinitionSpecProvision struct { // JSON Schema draft \\#7 for describing the data to be sent back after access has been provisioned. (management.v1alpha1.AccessRequestDefinition) Schema map[string]interface{} `json:"schema,omitempty"` Policies AccessRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"` }
AccessRequestDefinitionSpecProvision (management.v1alpha1.AccessRequestDefinition)
type AccessRequestDefinitionSpecProvisionPolicies ¶ added in v1.1.49
type AccessRequestDefinitionSpecProvisionPolicies struct { // Defines on if AccessRequests using this definition can be moved from their current Subscription to a new one. This update implies that quotas and references are updated depending on the new Subscription's plan. Transferable bool `json:"transferable,omitempty"` }
AccessRequestDefinitionSpecProvisionPolicies Defines the policies applied on the AccessRequests generated using this definition. (management.v1alpha1.AccessRequestDefinition)
type AccessRequestReferencesApplication ¶
type AccessRequestReferencesApplication struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesApplication struct for AccessRequestReferencesApplication
type AccessRequestReferencesAssetRequest ¶
type AccessRequestReferencesAssetRequest struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesAssetRequest struct for AccessRequestReferencesAssetRequest
type AccessRequestReferencesAssetResource ¶
type AccessRequestReferencesAssetResource struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesAssetResource struct for AccessRequestReferencesAssetResource
type AccessRequestReferencesProduct ¶
type AccessRequestReferencesProduct struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesProduct struct for AccessRequestReferencesProduct
type AccessRequestReferencesProductPlan ¶
type AccessRequestReferencesProductPlan struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesProductPlan struct for AccessRequestReferencesProductPlan
type AccessRequestReferencesProductRelease ¶
type AccessRequestReferencesProductRelease struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesProductRelease struct for AccessRequestReferencesProductRelease
type AccessRequestReferencesPublishedProduct ¶
type AccessRequestReferencesPublishedProduct struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesPublishedProduct struct for AccessRequestReferencesPublishedProduct
type AccessRequestReferencesQuota ¶
type AccessRequestReferencesQuota struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesQuota struct for AccessRequestReferencesQuota
type AccessRequestReferencesSubscription ¶
type AccessRequestReferencesSubscription struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AccessRequestReferencesSubscription struct for AccessRequestReferencesSubscription
type AccessRequestSpec ¶
type AccessRequestSpec struct { // The name of an APIServiceInstance resource that specifies where the API is deployed. ApiServiceInstance string `json:"apiServiceInstance"` // The name of an ManagedApplication resource that groups set of credentials. ManagedApplication string `json:"managedApplication"` // The value that matches the AccessRequestDefinition schema linked to the referenced APIServiceInstance. (management.v1alpha1.AccessRequest) Data map[string]interface{} `json:"data"` Quota *AccessRequestSpecQuota `json:"quota,omitempty"` }
AccessRequestSpec (management.v1alpha1.AccessRequest)
type AccessRequestSpecQuota ¶
type AccessRequestSpecQuota struct { // The limit of the allowed quota for the access request. Limit int32 `json:"limit"` Interval string `json:"interval"` }
AccessRequestSpecQuota Quota information for accessing the api. (management.v1alpha1.AccessRequest)
type AccessRequestStatus ¶
type AccessRequestStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. Reasons []AccessRequestStatusReasons `json:"reasons,omitempty"` }
AccessRequestStatus (management.v1alpha1.AccessRequest)
type AccessRequestStatusReasons ¶
type AccessRequestStatusReasons struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` // (management.v1alpha1.AccessRequest) Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
AccessRequestStatusReasons (management.v1alpha1.AccessRequest)
type AccessRules ¶
type AccessRules struct { // Resource level at which access is being granted. Access []AccessLevelScope `json:"access,omitempty"` }
AccessRules struct for AccessRules
type ApiServiceCompliance ¶ added in v1.1.57
type ApiServiceCompliance struct { // GENERATE: The following code has been modified after code generation Design ApiServiceComplianceLintingStatus `json:"design,omitempty"` // GENERATE: The following code has been modified after code generation Security ApiServiceComplianceLintingStatus `json:"security,omitempty"` }
ApiServiceCompliance (management.v1alpha1.APIService)
type ApiServiceComplianceLintingStatus ¶ added in v1.1.57
type ApiServiceComplianceLintingStatus struct { // The state of the compliance job. State string `json:"state,omitempty"` ApiSpecLintingJob string `json:"apiSpecLintingJob,omitempty"` ApiServiceRevision string `json:"apiServiceRevision,omitempty"` // Ruleset logical name. Ruleset string `json:"ruleset,omitempty"` // File name of the APISpecLintingRuleset. RulesetFileName string `json:"rulesetFileName,omitempty"` Result ApiServiceComplianceLintingStatusResult `json:"result,omitempty"` }
ApiServiceComplianceLintingStatus Provides the current linting job state and the final result.
type ApiServiceComplianceLintingStatusResult ¶ added in v1.1.57
type ApiServiceComplianceLintingStatusResult struct { // The total number of errors in the linting result. ErrorCount int32 `json:"errorCount,omitempty"` // The total number of warnings in the linting result. WarningCount int32 `json:"warningCount,omitempty"` // The total number of hints in the linting result. HintCount int32 `json:"hintCount,omitempty"` // The total number of infos in the linting result. InfoCount int32 `json:"infoCount,omitempty"` // Grade result from the results summary. Grade string `json:"grade,omitempty"` }
ApiServiceComplianceLintingStatusResult APIService Linting results.
type ApiServiceDetails ¶
type ApiServiceDetails struct { // Specification type for the API Service. SpecType string `json:"specType,omitempty"` }
ApiServiceDetails (management.v1alpha1.APIService)
type ApiServiceInstanceReferences ¶ added in v1.1.44
type ApiServiceInstanceReferences struct { // Reference to Amplify Central APIService ApiService string `json:"apiService,omitempty"` }
ApiServiceInstanceReferences (management.v1alpha1.APIServiceInstance)
type ApiServiceInstanceSpec ¶
type ApiServiceInstanceSpec struct { ApiServiceRevision string `json:"apiServiceRevision"` AccessRequestDefinition string `json:"accessRequestDefinition,omitempty"` CredentialRequestDefinitions []string `json:"credentialRequestDefinitions,omitempty"` // A list of locations where the api is deployed. Endpoint []ApiServiceInstanceSpecEndpoint `json:"endpoint"` }
ApiServiceInstanceSpec (management.v1alpha1.APIServiceInstance)
type ApiServiceInstanceSpecEndpoint ¶
type ApiServiceInstanceSpecEndpoint struct { Host string `json:"host"` Port int32 `json:"port,omitempty"` Protocol string `json:"protocol"` Routing ApiServiceInstanceSpecRouting `json:"routing,omitempty"` }
ApiServiceInstanceSpecEndpoint (management.v1alpha1.APIServiceInstance)
type ApiServiceInstanceSpecRouting ¶
type ApiServiceInstanceSpecRouting struct { // The base path to the API. Example: '/api'. BasePath string `json:"basePath,omitempty"` // Specify any additional routing details needed (management.v1alpha1.APIServiceInstance) // GENERATE: The following code has been modified after code generation Details map[string]interface{} `json:"details,omitempty"` }
ApiServiceInstanceSpecRouting (management.v1alpha1.APIServiceInstance)
type ApiServiceRevisionCompliance ¶ added in v1.1.52
type ApiServiceRevisionCompliance struct { // GENERATE: The following code has been modified after code generation Design ApiServiceRevisionComplianceLintingStatus `json:"design,omitempty"` // GENERATE: The following code has been modified after code generation Security ApiServiceRevisionComplianceLintingStatus `json:"security,omitempty"` }
ApiServiceRevisionCompliance (management.v1alpha1.APIServiceRevision)
type ApiServiceRevisionComplianceLintingStatus ¶ added in v1.1.52
type ApiServiceRevisionComplianceLintingStatus struct { // The state of the compliance job. State string `json:"state,omitempty"` ApiSpecLintingJob string `json:"apiSpecLintingJob,omitempty"` // Ruleset logical name. Ruleset string `json:"ruleset,omitempty"` // File name of the APISpecLintingRuleset. RulesetFileName string `json:"rulesetFileName,omitempty"` Result ApiServiceRevisionComplianceLintingStatusResult `json:"result,omitempty"` }
ApiServiceRevisionComplianceLintingStatus Provides the current linting job state and the final result.
type ApiServiceRevisionComplianceLintingStatusResult ¶ added in v1.1.52
type ApiServiceRevisionComplianceLintingStatusResult struct { // The total number of errors in the linting result. ErrorCount int32 `json:"errorCount,omitempty"` // The total number of warnings in the linting result. WarningCount int32 `json:"warningCount,omitempty"` // The total number of hints in the linting result. HintCount int32 `json:"hintCount,omitempty"` // The total number of infos in the linting result. InfoCount int32 `json:"infoCount,omitempty"` // Grade result from the results summary. Grade string `json:"grade,omitempty"` }
ApiServiceRevisionComplianceLintingStatusResult APIServiceRevision Linting results.
type ApiServiceRevisionSpec ¶
type ApiServiceRevisionSpec struct { ApiService string `json:"apiService"` Definition ApiServiceRevisionSpecDefinition `json:"definition,omitempty"` }
ApiServiceRevisionSpec (management.v1alpha1.APIServiceRevision)
type ApiServiceRevisionSpecDefinition ¶
type ApiServiceRevisionSpecDefinition struct { // The type of the api specification. Type string `json:"type,omitempty"` // Base64 encoded value of the api specification. Value string `json:"value,omitempty"` // content-type of the spec. ContentType string `json:"contentType,omitempty"` // The version of the api specification. Will be extracted from \"value\" if not assigned. Version string `json:"version,omitempty"` }
ApiServiceRevisionSpecDefinition The api specification details. (management.v1alpha1.APIServiceRevision)
type ApiServiceSpec ¶
type ApiServiceSpec struct { // The description of the api service. Description string `json:"description,omitempty"` Categories []string `json:"categories,omitempty"` Icon ApiServiceSpecIcon `json:"icon,omitempty"` }
ApiServiceSpec (management.v1alpha1.APIService)
type ApiServiceSpecIcon ¶
type ApiServiceSpecIcon struct { // Content-Type of the image. ContentType string `json:"contentType,omitempty"` // Base64 encoded image. Data string `json:"data,omitempty"` }
ApiServiceSpecIcon Image for the APIService. (management.v1alpha1.APIService)
type ApiServiceStatus ¶
type ApiServiceStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. // GENERATE: The following code has been modified after code generation Reasons []interface{} `json:"reasons,omitempty"` }
ApiServiceStatus (management.v1alpha1.APIService)
type ApiServiceStatusError ¶
type ApiServiceStatusError struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the change occurred. Timestamp time.Time `json:"timestamp"` Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
ApiServiceStatusError struct for ApiServiceStatusError
type ApiSpecLintingJobResult ¶ added in v1.1.52
type ApiSpecLintingJobResult struct { // The API Specification Linting Result details. Details []ApiSpecLintingJobResultDetails `json:"details"` Summary ApiSpecLintingJobResultSummary `json:"summary"` // Reference to the APISpecLintingRuleset revision ApiSpecLintingRulesetRevision int32 `json:"apiSpecLintingRulesetRevision,omitempty"` // Set the value to true if the linting result details count has reached the threshold DetailsThresholdExceeded bool `json:"detailsThresholdExceeded,omitempty"` }
ApiSpecLintingJobResult (management.v1alpha1.APISpecLintingJob)
type ApiSpecLintingJobResultDetails ¶ added in v1.1.52
type ApiSpecLintingJobResultDetails struct { // Name of the validation rule. Rule string `json:"rule,omitempty"` // Description of the linting result. Message string `json:"message,omitempty"` // Level of severity of the linting result. Severity string `json:"severity,omitempty"` // Path to the result. Path string `json:"path,omitempty"` Location ApiSpecLintingJobResultLocation `json:"location,omitempty"` }
ApiSpecLintingJobResultDetails (management.v1alpha1.APISpecLintingJob)
type ApiSpecLintingJobResultLocation ¶ added in v1.1.52
type ApiSpecLintingJobResultLocation struct { // The 1-based line number in the API Specification File. Line int32 `json:"line"` // The 1-based character number in the API Specification File. Character int32 `json:"character"` }
ApiSpecLintingJobResultLocation The location of the linting result. (management.v1alpha1.APISpecLintingJob)
type ApiSpecLintingJobResultSummary ¶ added in v1.1.52
type ApiSpecLintingJobResultSummary struct { // The total number of errors in the linting result. ErrorCount int32 `json:"errorCount,omitempty"` // The total number of warnings in the linting result. WarningCount int32 `json:"warningCount,omitempty"` // The total number of hints in the linting result. HintCount int32 `json:"hintCount,omitempty"` // The total number of infos in the linting result. InfoCount int32 `json:"infoCount,omitempty"` // Grade result from the results summary. Grade string `json:"grade,omitempty"` }
ApiSpecLintingJobResultSummary Summary of the linting results. (management.v1alpha1.APISpecLintingJob)
type ApiSpecLintingJobSpec ¶ added in v1.1.52
type ApiSpecLintingJobSpec struct { // Reference to Amplify Central APIServiceRevision ApiServiceRevision string `json:"apiServiceRevision"` // Reference to Amplify Central APISpecLintingRuleset ApiSpecLintingRuleset string `json:"apiSpecLintingRuleset"` }
ApiSpecLintingJobSpec (management.v1alpha1.APISpecLintingJob)
type ApiSpecLintingJobState ¶ added in v1.1.52
type ApiSpecLintingJobState struct { // The current state, indicating progress towards consistency. Name string `json:"name"` // Details of the state. Message string `json:"message,omitempty"` // Time when the update occurred. Timestamp time.Time `json:"timestamp,omitempty"` }
ApiSpecLintingJobState (management.v1alpha1.APISpecLintingJob)
type ApiSpecLintingRulesetSpec ¶ added in v1.1.52
type ApiSpecLintingRulesetSpec struct { Definition ApiSpecLintingRulesetSpecDefinition `json:"definition,omitempty"` // Description of the API spec linting ruleset. Description string `json:"description,omitempty"` }
ApiSpecLintingRulesetSpec (management.v1alpha1.APISpecLintingRuleset)
type ApiSpecLintingRulesetSpecDefinition ¶ added in v1.1.52
type ApiSpecLintingRulesetSpecDefinition struct { // The type of the API Specification Linting Ruleset. LintingType string `json:"lintingType"` // Base64 encoded value of the API Specification Linting Ruleset. Value string `json:"value"` // The MIME type of property \"value\" such as \"application/json\" or \"application/yaml\". ContentType string `json:"contentType"` // File name and extension of the APISpecLintingRuleset such as \"my-file.json\". FileName string `json:"fileName,omitempty"` // Defines if the APISpecLintingRuleset is default. IsDefault bool `json:"isDefault,omitempty"` // Indicates which API specification types can be linted by this ruleset. ApiTypes []string `json:"apiTypes"` }
ApiSpecLintingRulesetSpecDefinition The API Specification Ruleset details. (management.v1alpha1.APISpecLintingRuleset)
type ApiSpecSpec ¶
type ApiSpecSpec struct { SpecDiscoveryRef string `json:"specDiscoveryRef,omitempty"` Definition ApiSpecSpecDefinition `json:"definition,omitempty"` Endpoints []ApiSpecSpecEndpoints `json:"endpoints,omitempty"` }
ApiSpecSpec (management.v1alpha1.APISpec)
type ApiSpecSpecDefinition ¶
type ApiSpecSpecDefinition struct { // The type of the api specification. Type string `json:"type,omitempty"` // Base64 encoded value of the api specification. Value string `json:"value,omitempty"` // Consistent hash of the value. Hash string `json:"hash,omitempty"` }
ApiSpecSpecDefinition (management.v1alpha1.APISpec)
type ApiSpecSpecEndpoints ¶
type ApiSpecSpecEndpoints struct { // The type of the endpoint. Type string `json:"type,omitempty"` // The host of the pod <namespace>.<pod-name> Host string `json:"host,omitempty"` // The port of the pod on which this spec was discovered. Port string `json:"port,omitempty"` // The path on which this spec was discovered. Path string `json:"path,omitempty"` // The labels for the pod this spec was discovered on. (management.v1alpha1.APISpec) Labels map[string]string `json:"labels,omitempty"` }
ApiSpecSpecEndpoints (management.v1alpha1.APISpec)
type AssetMapping ¶
type AssetMapping struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec AssetMappingSpec `json:"spec"` Status AssetMappingStatus `json:"status"` }
AssetMapping Resource
func AssetMappingFromInstanceArray ¶
func AssetMappingFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetMapping, error)
AssetMappingFromInstanceArray converts a []*ResourceInstance to a []*AssetMapping
func NewAssetMapping ¶
func NewAssetMapping(name, scopeName string) *AssetMapping
NewAssetMapping creates an empty *AssetMapping
func (*AssetMapping) AsInstance ¶
func (res *AssetMapping) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AssetMapping to a ResourceInstance
func (*AssetMapping) FromInstance ¶
func (res *AssetMapping) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AssetMapping
func (*AssetMapping) MarshalJSON ¶
func (res *AssetMapping) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AssetMapping) PluralName ¶
func (res *AssetMapping) PluralName() string
PluralName returns the plural name of the resource
func (*AssetMapping) UnmarshalJSON ¶
func (res *AssetMapping) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AssetMappingSpec ¶
type AssetMappingSpec struct { // Reference to the executed AssetMappingTemplate. AssetMappingTemplate string `json:"assetMappingTemplate,omitempty"` Inputs AssetMappingSpecInputs `json:"inputs"` }
AssetMappingSpec (management.v1alpha1.AssetMapping)
type AssetMappingSpecInputs ¶
type AssetMappingSpecInputs struct { ApiService string `json:"apiService"` ApiServiceRevision string `json:"apiServiceRevision,omitempty"` ApiServiceInstance string `json:"apiServiceInstance,omitempty"` // name of the stage Stage string `json:"stage,omitempty"` // list of categories for the asset. Categories []string `json:"categories,omitempty"` // title for generated asset resource. AssetResourceTitle string `json:"assetResourceTitle,omitempty"` }
AssetMappingSpecInputs The list of the inputs provided to the template. (management.v1alpha1.AssetMapping)
type AssetMappingStatus ¶
type AssetMappingStatus struct { Level string `json:"level,omitempty"` Source AssetMappingStatusSource `json:"source,omitempty"` // Generated catalog resources. Outputs []AssetMappingStatusOutputs `json:"outputs,omitempty"` }
AssetMappingStatus (management.v1alpha1.AssetMapping)
type AssetMappingStatusOperationType ¶
type AssetMappingStatusOperationType string
AssetMappingStatusOperationType The type of the operation executed on the resource that triggered the Asset Mapping.
const ( CREATED AssetMappingStatusOperationType = "created" UPDATED AssetMappingStatusOperationType = "updated" DELETED AssetMappingStatusOperationType = "deleted" )
List of AssetMappingStatus.OperationType
type AssetMappingStatusOutputs ¶
type AssetMappingStatusOutputs struct {
Resource AssetMappingStatusResource `json:"resource,omitempty"`
}
AssetMappingStatusOutputs (management.v1alpha1.AssetMapping)
type AssetMappingStatusResource ¶
type AssetMappingStatusResource struct { AssetResource AssetMappingStatusResourceAssetResource `json:"assetResource,omitempty"` Stage AssetMappingStatusResourceStage `json:"stage,omitempty"` }
AssetMappingStatusResource The resources that were impacted with the trigger of asset mapping. (management.v1alpha1.AssetMapping)
type AssetMappingStatusResourceAssetResource ¶
type AssetMappingStatusResourceAssetResource struct { Ref string `json:"ref,omitempty"` // GENERATE: The following code has been modified after code generation OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"` }
AssetMappingStatusResourceAssetResource (management.v1alpha1.AssetMapping)
type AssetMappingStatusResourceStage ¶
type AssetMappingStatusResourceStage struct { Ref string `json:"ref,omitempty"` // GENERATE: The following code has been modified after code generation OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"` }
AssetMappingStatusResourceStage (management.v1alpha1.AssetMapping)
type AssetMappingStatusSource ¶
type AssetMappingStatusSource struct {
Resource AssetMappingStatusSourceResource `json:"resource,omitempty"`
}
AssetMappingStatusSource (management.v1alpha1.AssetMapping)
type AssetMappingStatusSourceResource ¶
type AssetMappingStatusSourceResource struct { ApiService AssetMappingStatusSourceResourceApiService `json:"apiService,omitempty"` ApiServiceRevision AssetMappingStatusSourceResourceApiServiceRevision `json:"apiServiceRevision,omitempty"` ApiServiceInstance AssetMappingStatusSourceResourceApiServiceInstance `json:"apiServiceInstance,omitempty"` AssetMappingTemplate AssetMappingStatusSourceResourceAssetMappingTemplate `json:"assetMappingTemplate,omitempty"` }
AssetMappingStatusSourceResource The resource that triggered the Asset Mapping. (management.v1alpha1.AssetMapping)
type AssetMappingStatusSourceResourceApiService ¶
type AssetMappingStatusSourceResourceApiService struct { Ref string `json:"ref,omitempty"` // GENERATE: The following code has been modified after code generation OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"` }
AssetMappingStatusSourceResourceApiService (management.v1alpha1.AssetMapping)
type AssetMappingStatusSourceResourceApiServiceInstance ¶
type AssetMappingStatusSourceResourceApiServiceInstance struct { Ref string `json:"ref,omitempty"` // GENERATE: The following code has been modified after code generation OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"` }
AssetMappingStatusSourceResourceApiServiceInstance (management.v1alpha1.AssetMapping)
type AssetMappingStatusSourceResourceApiServiceRevision ¶
type AssetMappingStatusSourceResourceApiServiceRevision struct { Ref string `json:"ref,omitempty"` // GENERATE: The following code has been modified after code generation OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"` }
AssetMappingStatusSourceResourceApiServiceRevision (management.v1alpha1.AssetMapping)
type AssetMappingStatusSourceResourceAssetMappingTemplate ¶
type AssetMappingStatusSourceResourceAssetMappingTemplate struct { Ref string `json:"ref,omitempty"` // GENERATE: The following code has been modified after code generation OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"` }
AssetMappingStatusSourceResourceAssetMappingTemplate (management.v1alpha1.AssetMapping)
type AssetMappingTemplate ¶
type AssetMappingTemplate struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec AssetMappingTemplateSpec `json:"spec"` }
AssetMappingTemplate Resource
func AssetMappingTemplateFromInstanceArray ¶
func AssetMappingTemplateFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetMappingTemplate, error)
AssetMappingTemplateFromInstanceArray converts a []*ResourceInstance to a []*AssetMappingTemplate
func NewAssetMappingTemplate ¶
func NewAssetMappingTemplate(name, scopeName string) *AssetMappingTemplate
NewAssetMappingTemplate creates an empty *AssetMappingTemplate
func (*AssetMappingTemplate) AsInstance ¶
func (res *AssetMappingTemplate) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AssetMappingTemplate to a ResourceInstance
func (*AssetMappingTemplate) FromInstance ¶
func (res *AssetMappingTemplate) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AssetMappingTemplate
func (*AssetMappingTemplate) MarshalJSON ¶
func (res *AssetMappingTemplate) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AssetMappingTemplate) PluralName ¶
func (res *AssetMappingTemplate) PluralName() string
PluralName returns the plural name of the resource
func (*AssetMappingTemplate) UnmarshalJSON ¶
func (res *AssetMappingTemplate) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AssetMappingTemplateSpec ¶
type AssetMappingTemplateSpec struct { // A list of filters for the API Service resource on which the template applies. Filters []AssetMappingTemplateSpecFilters `json:"filters,omitempty"` }
AssetMappingTemplateSpec (management.v1alpha1.AssetMappingTemplate)
type AssetMappingTemplateSpecApiService ¶
type AssetMappingTemplateSpecApiService struct { // The name of the API Service. Name string `json:"name,omitempty"` // Attributes used to filter the APIServiceRevisions for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate) Attributes map[string]string `json:"attributes,omitempty"` ApiServiceRevision AssetMappingTemplateSpecApiServiceRevision `json:"apiServiceRevision,omitempty"` }
AssetMappingTemplateSpecApiService (management.v1alpha1.AssetMappingTemplate)
type AssetMappingTemplateSpecApiServiceRevision ¶
type AssetMappingTemplateSpecApiServiceRevision struct { // Attributes used to filter the APIServiceRevisions for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate) Attributes map[string]string `json:"attributes,omitempty"` ApiServiceInstance AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance `json:"apiServiceInstance,omitempty"` }
AssetMappingTemplateSpecApiServiceRevision (management.v1alpha1.AssetMappingTemplate)
type AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance ¶
type AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance struct { // Attributes used to filter the APIServiceInstances for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate) Attributes map[string]string `json:"attributes,omitempty"` }
AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance (management.v1alpha1.AssetMappingTemplate)
type AssetMappingTemplateSpecAsset ¶
type AssetMappingTemplateSpecAsset struct { // name of the asset or a template for name Name string `json:"name,omitempty"` }
AssetMappingTemplateSpecAsset (management.v1alpha1.AssetMappingTemplate)
type AssetMappingTemplateSpecFilters ¶
type AssetMappingTemplateSpecFilters struct { ApiService []AssetMappingTemplateSpecApiService `json:"apiService,omitempty"` // name of the stage Stage string `json:"stage,omitempty"` // list of categories for the asset. Categories []string `json:"categories,omitempty"` Asset AssetMappingTemplateSpecAsset `json:"asset,omitempty"` }
AssetMappingTemplateSpecFilters (management.v1alpha1.AssetMappingTemplate)
type BatchJob ¶ added in v1.1.52
type BatchJob struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Progress BatchJobProgress `json:"progress"` Spec BatchJobSpec `json:"spec"` }
BatchJob Resource
func BatchJobFromInstanceArray ¶ added in v1.1.52
func BatchJobFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*BatchJob, error)
BatchJobFromInstanceArray converts a []*ResourceInstance to a []*BatchJob
func NewBatchJob ¶ added in v1.1.52
NewBatchJob creates an empty *BatchJob
func (*BatchJob) AsInstance ¶ added in v1.1.52
func (res *BatchJob) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a BatchJob to a ResourceInstance
func (*BatchJob) FromInstance ¶ added in v1.1.52
func (res *BatchJob) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a BatchJob
func (*BatchJob) MarshalJSON ¶ added in v1.1.52
MarshalJSON custom marshaller to handle sub resources
func (*BatchJob) PluralName ¶ added in v1.1.52
PluralName returns the plural name of the resource
func (*BatchJob) UnmarshalJSON ¶ added in v1.1.52
UnmarshalJSON custom unmarshaller to handle sub resources
type BatchJobProgress ¶ added in v1.1.52
type BatchJobProgress struct { // The last 1-based page number requested from API Server. PageNumber int32 `json:"pageNumber,omitempty"` // The number of resources requested per page from API Server. PageSize int32 `json:"pageSize,omitempty"` // The query parameters used in the request. QueryParams string `json:"queryParams,omitempty"` // Name of scoped resource the job fetches resources from. Undefined for unscoped searches. ScopeName string `json:"scopeName,omitempty"` }
BatchJobProgress (management.v1alpha1.BatchJob)
type BatchJobSpec ¶ added in v1.1.52
type BatchJobSpec struct { // Unique string ID assigned by a controller indicating what action this job is performing. Action string `json:"action"` References []BatchJobSpecReferences `json:"references,omitempty"` }
BatchJobSpec (management.v1alpha1.BatchJob)
type BatchJobSpecReferences ¶ added in v1.1.52
type BatchJobSpecReferences struct { Kind string `json:"kind,omitempty"` Name string `json:"name,omitempty"` }
BatchJobSpecReferences (management.v1alpha1.BatchJob)
type ConsumerInstance ¶
type ConsumerInstance struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` References ConsumerInstanceReferences `json:"references"` Spec ConsumerInstanceSpec `json:"spec"` Status ConsumerInstanceStatus `json:"status"` }
ConsumerInstance Resource
func ConsumerInstanceFromInstanceArray ¶
func ConsumerInstanceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerInstance, error)
ConsumerInstanceFromInstanceArray converts a []*ResourceInstance to a []*ConsumerInstance
func NewConsumerInstance ¶
func NewConsumerInstance(name, scopeName string) *ConsumerInstance
NewConsumerInstance creates an empty *ConsumerInstance
func (*ConsumerInstance) AsInstance ¶
func (res *ConsumerInstance) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ConsumerInstance to a ResourceInstance
func (*ConsumerInstance) FromInstance ¶
func (res *ConsumerInstance) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ConsumerInstance
func (*ConsumerInstance) MarshalJSON ¶
func (res *ConsumerInstance) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ConsumerInstance) PluralName ¶
func (res *ConsumerInstance) PluralName() string
PluralName returns the plural name of the resource
func (*ConsumerInstance) UnmarshalJSON ¶
func (res *ConsumerInstance) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ConsumerInstanceReferences ¶
type ConsumerInstanceReferences struct { // Reference to Amplify Central APIService ApiService string `json:"apiService,omitempty"` // Reference to Amplify Central APIServiceRevision ApiServiceRevision string `json:"apiServiceRevision,omitempty"` }
ConsumerInstanceReferences (management.v1alpha1.ConsumerInstance)
type ConsumerInstanceSpec ¶
type ConsumerInstanceSpec struct { // Maps to the name of the Catalog Item. If not provided, the resource title will be used. Name string `json:"name,omitempty"` // The name of an APIServiceInstance resource that specifies where the API is deployed. ApiServiceInstance string `json:"apiServiceInstance,omitempty"` // Name of the team that owns the Catalog Item. If not provided, the Default team will be used. OwningTeam string `json:"owningTeam,omitempty"` // Maps to the description of the Catalog Item. Defaults to the API service description. Description string `json:"description,omitempty"` // The visibility of the Catalog Item: * PUBLIC - If Catalog Item is in PUBLISHED state, it will be visible to the entire organization. * RESTRICTED - If Catalog Item is in PUBLISHED state, it will be visible to the owning team and teams part of the Catalog Item Access Control List. Visibility string `json:"visibility,omitempty"` // Version name for the revision. Version string `json:"version,omitempty"` // Catalog Item state: * UNPUBLISHED - Only developers in the owning team will be able to access the Catalog Item. * PUBLISHED - Developers and Consumers in the owning team and any additional team in the ACL will be able to access the Catalog Item. State string `json:"state,omitempty"` // A way to communicate the status of the service to consumers. Examples: DRAFT, BETA, GA Status string `json:"status,omitempty"` // List of tags to be set on the Catalog Item. Max allowed tags for the Catalog Item is 80. Tags []string `json:"tags,omitempty"` // GENERATE: The following code has been modified after code generation // // Icon ConsumerInstanceSpecIcon `json:"icon,omitempty"` Icon *ConsumerInstanceSpecIcon `json:"icon,omitempty"` // Markdown documentation for the Catalog Item documentation. Documentation string `json:"documentation,omitempty"` UnstructuredDataProperties ConsumerInstanceSpecUnstructuredDataProperties `json:"unstructuredDataProperties,omitempty"` AdditionalDataProperties ConsumerInstanceSpecAdditionalDataProperties `json:"additionalDataProperties,omitempty"` Subscription ConsumerInstanceSpecSubscription `json:"subscription,omitempty"` Categories []string `json:"categories,omitempty"` }
ConsumerInstanceSpec (management.v1alpha1.ConsumerInstance)
type ConsumerInstanceSpecAdditionalDataProperties ¶
type ConsumerInstanceSpecAdditionalDataProperties struct { // Defines the unstructured data type. Example 'APIBuilderConnector' or 'SDK'. Type string `json:"type"` // Defines the Content Type of the data. ContentType string `json:"contentType"` // Short name for the unstructured data. Label string `json:"label,omitempty"` // File name used to be sent as part of the content disposition header for revision unstructured data download. FileName string `json:"fileName,omitempty"` // Base64 encoded data for the Catalog Item revision content. Data string `json:"data"` }
ConsumerInstanceSpecAdditionalDataProperties The Catalog Item properties for additional data. (management.v1alpha1.ConsumerInstance)
type ConsumerInstanceSpecIcon ¶
type ConsumerInstanceSpecIcon struct { // Content-Type of the image. ContentType string `json:"contentType,omitempty"` // Base64 encoded image. Data string `json:"data,omitempty"` }
ConsumerInstanceSpecIcon Image for the Catalog Item. If not present, the icon on the APISevice will be used in the Catalog Item. (management.v1alpha1.ConsumerInstance)
type ConsumerInstanceSpecSubscription ¶
type ConsumerInstanceSpecSubscription struct { // Defines if subscriptions are allowed on the Catalog Item. Enabled bool `json:"enabled,omitempty"` // Defines if subscriptions need to be manually approved. // GENERATE: The following code has been modified after code generation // AutoSubscribe bool `json:"autoSubscribe,omitempty"` AutoSubscribe bool `json:"autoSubscribe"` // The name of a ConsumerSubscriptionDefinition kind that defines the schema and possible webhooks to get invoked. SubscriptionDefinition string `json:"subscriptionDefinition,omitempty"` }
ConsumerInstanceSpecSubscription (management.v1alpha1.ConsumerInstance)
type ConsumerInstanceSpecUnstructuredDataProperties ¶
type ConsumerInstanceSpecUnstructuredDataProperties struct { // Defines the unstructured data type. Example 'APIBuilderConnector' or 'SDK'. Type string `json:"type"` // Defines the Content Type of the data. ContentType string `json:"contentType"` // Short name for the unstructured data. Label string `json:"label,omitempty"` // File name used to be sent as part of the content disposition header for revision unstructured data download. FileName string `json:"fileName,omitempty"` // Base64 encoded data for the Catalog Item revision content. Data string `json:"data,omitempty"` }
ConsumerInstanceSpecUnstructuredDataProperties The Catalog Item properties for unstructured definition subtypes. (management.v1alpha1.ConsumerInstance)
type ConsumerInstanceStatus ¶
type ConsumerInstanceStatus struct {
Phase ConsumerInstanceStatusPhase `json:"phase"`
}
ConsumerInstanceStatus (management.v1alpha1.ConsumerInstance)
type ConsumerInstanceStatusPhase ¶
type ConsumerInstanceStatusPhase struct { Name string `json:"name"` // The criticality of the last update Level string `json:"level"` // Time of the current phase. TransitionTime time.Time `json:"transitionTime"` // Description of the phase. Message string `json:"message,omitempty"` }
ConsumerInstanceStatusPhase (management.v1alpha1.ConsumerInstance)
type ConsumerSubscriptionDefinition ¶
type ConsumerSubscriptionDefinition struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ConsumerSubscriptionDefinitionSpec `json:"spec"` }
ConsumerSubscriptionDefinition Resource
func ConsumerSubscriptionDefinitionFromInstanceArray ¶
func ConsumerSubscriptionDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerSubscriptionDefinition, error)
ConsumerSubscriptionDefinitionFromInstanceArray converts a []*ResourceInstance to a []*ConsumerSubscriptionDefinition
func NewConsumerSubscriptionDefinition ¶
func NewConsumerSubscriptionDefinition(name, scopeName string) *ConsumerSubscriptionDefinition
NewConsumerSubscriptionDefinition creates an empty *ConsumerSubscriptionDefinition
func (*ConsumerSubscriptionDefinition) AsInstance ¶
func (res *ConsumerSubscriptionDefinition) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ConsumerSubscriptionDefinition to a ResourceInstance
func (*ConsumerSubscriptionDefinition) FromInstance ¶
func (res *ConsumerSubscriptionDefinition) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ConsumerSubscriptionDefinition
func (*ConsumerSubscriptionDefinition) MarshalJSON ¶
func (res *ConsumerSubscriptionDefinition) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ConsumerSubscriptionDefinition) PluralName ¶
func (res *ConsumerSubscriptionDefinition) PluralName() string
PluralName returns the plural name of the resource
func (*ConsumerSubscriptionDefinition) UnmarshalJSON ¶
func (res *ConsumerSubscriptionDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ConsumerSubscriptionDefinitionSpec ¶
type ConsumerSubscriptionDefinitionSpec struct { // List of Webhook kind resource names that dictates what webhooks will be invoked on subscription changes. Webhooks []string `json:"webhooks,omitempty"` Schema ConsumerSubscriptionDefinitionSpecSchema `json:"schema,omitempty"` }
ConsumerSubscriptionDefinitionSpec (management.v1alpha1.ConsumerSubscriptionDefinition)
type ConsumerSubscriptionDefinitionSpecSchema ¶
type ConsumerSubscriptionDefinitionSpecSchema struct { // Defines the subscription schema properties as key/value pairs. Properties []ConsumerSubscriptionDefinitionSpecSchemaProperties `json:"properties,omitempty"` }
ConsumerSubscriptionDefinitionSpecSchema Subscription definition properties to be used by the consumers. (management.v1alpha1.ConsumerSubscriptionDefinition)
type ConsumerSubscriptionDefinitionSpecSchemaProperties ¶
type ConsumerSubscriptionDefinitionSpecSchemaProperties struct { // The Catalog Item subscription spec key. For API type subscriptions, the key needs to be 'profile'. Key string `json:"key"` // JSON schema to specify data needed from consumers when subscriptions are created. (management.v1alpha1.ConsumerSubscriptionDefinition) Value map[string]interface{} `json:"value"` }
ConsumerSubscriptionDefinitionSpecSchemaProperties (management.v1alpha1.ConsumerSubscriptionDefinition)
type Credential ¶
type Credential struct { apiv1.ResourceMeta Data interface{} `json:"data"` Owner *apiv1.Owner `json:"owner"` Policies CredentialPolicies `json:"policies"` References CredentialReferences `json:"references"` Spec CredentialSpec `json:"spec"` State CredentialState `json:"state"` // Status CredentialStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
Credential Resource
func CredentialFromInstanceArray ¶
func CredentialFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Credential, error)
CredentialFromInstanceArray converts a []*ResourceInstance to a []*Credential
func NewCredential ¶
func NewCredential(name, scopeName string) *Credential
NewCredential creates an empty *Credential
func (*Credential) AsInstance ¶
func (res *Credential) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Credential to a ResourceInstance
func (*Credential) FromInstance ¶
func (res *Credential) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Credential
func (*Credential) MarshalJSON ¶
func (res *Credential) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*Credential) PluralName ¶
func (res *Credential) PluralName() string
PluralName returns the plural name of the resource
func (*Credential) UnmarshalJSON ¶
func (res *Credential) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type CredentialPolicies ¶ added in v1.1.35
type CredentialPolicies struct { // Defines on if Credential can be renewed. Expiry *CredentialPoliciesExpiry `json:"expiry,omitempty"` }
CredentialPolicies (management.v1alpha1.Credential)
type CredentialPoliciesExpiry ¶ added in v1.1.35
type CredentialPoliciesExpiry struct { // Time when the Credential is set to be expired. Timestamp time.Time `json:"timestamp"` }
CredentialPoliciesExpiry (management.v1alpha1.Credential)
type CredentialReferences ¶
type CredentialReferences struct { // Name of the catalog Application for which the initial Credential was generated Application string `json:"application,omitempty"` }
CredentialReferences (management.v1alpha1.Credential)
type CredentialRequestDefinition ¶
type CredentialRequestDefinition struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` References CredentialRequestDefinitionReferences `json:"references"` Spec CredentialRequestDefinitionSpec `json:"spec"` Webhooks interface{} `json:"webhooks"` }
CredentialRequestDefinition Resource
func CredentialRequestDefinitionFromInstanceArray ¶
func CredentialRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*CredentialRequestDefinition, error)
CredentialRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*CredentialRequestDefinition
func NewCredentialRequestDefinition ¶
func NewCredentialRequestDefinition(name, scopeName string) *CredentialRequestDefinition
NewCredentialRequestDefinition creates an empty *CredentialRequestDefinition
func (*CredentialRequestDefinition) AsInstance ¶
func (res *CredentialRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a CredentialRequestDefinition to a ResourceInstance
func (*CredentialRequestDefinition) FromInstance ¶
func (res *CredentialRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a CredentialRequestDefinition
func (*CredentialRequestDefinition) MarshalJSON ¶
func (res *CredentialRequestDefinition) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*CredentialRequestDefinition) PluralName ¶
func (res *CredentialRequestDefinition) PluralName() string
PluralName returns the plural name of the resource
func (*CredentialRequestDefinition) UnmarshalJSON ¶
func (res *CredentialRequestDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type CredentialRequestDefinitionReferences ¶
type CredentialRequestDefinitionReferences struct { // The name of the CredentialRequestDefinition from an Environment. CredentialReqDef string `json:"credentialReqDef,omitempty"` }
CredentialRequestDefinitionReferences (management.v1alpha1.CredentialRequestDefinition)
type CredentialRequestDefinitionSpec ¶
type CredentialRequestDefinitionSpec struct { // JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance. Schema map[string]interface{} `json:"schema"` Provision *CredentialRequestDefinitionSpecProvision `json:"provision,omitempty"` Webhooks []CredentialRequestDefinitionSpecWebhook `json:"webhooks,omitempty"` }
CredentialRequestDefinitionSpec struct for CredentialRequestDefinitionSpec
type CredentialRequestDefinitionSpecProvision ¶
type CredentialRequestDefinitionSpecProvision struct { // JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance. Schema map[string]interface{} `json:"schema"` Policies CredentialRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"` }
CredentialRequestDefinitionSpecProvision struct for CredentialRequestDefinitionSpecProvision
type CredentialRequestDefinitionSpecProvisionPolicies ¶ added in v1.1.35
type CredentialRequestDefinitionSpecProvisionPolicies struct { // Defines on if Credentials using this definitions can be renewed. Renewable bool `json:"renewable,omitempty"` // Defines on if Credentials can be suspended. Suspendable bool `json:"suspendable,omitempty"` Expiry *CredentialRequestDefinitionSpecProvisionPoliciesExpiry `json:"expiry,omitempty"` }
CredentialRequestDefinitionSpecProvisionPolicies Defines the policies applied on the Credentials generated using this definition. (management.v1alpha1.CredentialRequestDefinition)
type CredentialRequestDefinitionSpecProvisionPoliciesExpiry ¶ added in v1.1.35
type CredentialRequestDefinitionSpecProvisionPoliciesExpiry struct { // The number of days after the Credentials are considered to be expired. Period int32 `json:"period"` // The actions taken when the Credentials expire. Actions []CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions `json:"actions,omitempty"` }
CredentialRequestDefinitionSpecProvisionPoliciesExpiry Expiry properties for Credentials linked to this definition. (management.v1alpha1.CredentialRequestDefinition)
type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions ¶ added in v1.1.35
type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions struct { // The type of the action taken when the Credential using this definition expires. Type string `json:"type,omitempty"` }
CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions (management.v1alpha1.CredentialRequestDefinition)
type CredentialRequestDefinitionSpecWebhook ¶
type CredentialRequestDefinitionSpecWebhook struct { Kind string `json:"kind"` Name string `json:"name"` }
CredentialRequestDefinitionSpecWebhook struct for CredentialRequestDefinitionSpecWebhook
type CredentialSpec ¶
type CredentialSpec struct { // Reference to Credential Request Definition resource CredentialRequestDefinition string `json:"credentialRequestDefinition"` // Reference to the ManagedApplication for which the Credential belongs to ManagedApplication string `json:"managedApplication"` // data matching the credential request definition schema. (management.v1alpha1.Credential) Data map[string]interface{} `json:"data"` State CredentialSpecState `json:"state,omitempty"` }
CredentialSpec (management.v1alpha1.Credential)
type CredentialSpecState ¶ added in v1.1.35
type CredentialSpecState struct { Name string `json:"name"` // Additional info on the desired state. Reason string `json:"reason,omitempty"` // Defines if credential needs to be rotated. Rotate bool `json:"rotate,omitempty"` }
CredentialSpecState Desired state of the Credential. (management.v1alpha1.Credential)
type CredentialState ¶ added in v1.1.35
type CredentialState struct { Name string `json:"name"` // Additional info on the state. Reason string `json:"reason,omitempty"` }
CredentialState Current state of the Credential. (management.v1alpha1.Credential)
type CredentialStatus ¶
type CredentialStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. Reasons []CredentialStatusReasons `json:"reasons,omitempty"` }
CredentialStatus (management.v1alpha1.Credential)
type CredentialStatusReasons ¶
type CredentialStatusReasons struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` // (management.v1alpha1.Credential) Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
CredentialStatusReasons (management.v1alpha1.Credential)
type Dataplane ¶ added in v1.1.49
type Dataplane struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Secretschema interface{} `json:"secretschema"` Security DataplaneSecurity `json:"security"` Spec DataplaneSpec `json:"spec"` }
Dataplane Resource
func DataplaneFromInstanceArray ¶ added in v1.1.49
func DataplaneFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Dataplane, error)
DataplaneFromInstanceArray converts a []*ResourceInstance to a []*Dataplane
func NewDataplane ¶ added in v1.1.49
NewDataplane creates an empty *Dataplane
func (*Dataplane) AsInstance ¶ added in v1.1.49
func (res *Dataplane) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Dataplane to a ResourceInstance
func (*Dataplane) FromInstance ¶ added in v1.1.49
func (res *Dataplane) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Dataplane
func (*Dataplane) MarshalJSON ¶ added in v1.1.49
MarshalJSON custom marshaller to handle sub resources
func (*Dataplane) PluralName ¶ added in v1.1.49
PluralName returns the plural name of the resource
func (*Dataplane) UnmarshalJSON ¶ added in v1.1.49
UnmarshalJSON custom unmarshaller to handle sub resources
type DataplaneSecret ¶ added in v1.1.49
type DataplaneSecret struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec DataplaneSecretSpec `json:"spec"` State DataplaneSecretState `json:"state"` // Status DataplaneSecretStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
DataplaneSecret Resource
func DataplaneSecretFromInstanceArray ¶ added in v1.1.49
func DataplaneSecretFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*DataplaneSecret, error)
DataplaneSecretFromInstanceArray converts a []*ResourceInstance to a []*DataplaneSecret
func NewDataplaneSecret ¶ added in v1.1.49
func NewDataplaneSecret(name, scopeName string) *DataplaneSecret
NewDataplaneSecret creates an empty *DataplaneSecret
func (*DataplaneSecret) AsInstance ¶ added in v1.1.49
func (res *DataplaneSecret) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a DataplaneSecret to a ResourceInstance
func (*DataplaneSecret) FromInstance ¶ added in v1.1.49
func (res *DataplaneSecret) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a DataplaneSecret
func (*DataplaneSecret) MarshalJSON ¶ added in v1.1.49
func (res *DataplaneSecret) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*DataplaneSecret) PluralName ¶ added in v1.1.49
func (res *DataplaneSecret) PluralName() string
PluralName returns the plural name of the resource
func (*DataplaneSecret) UnmarshalJSON ¶ added in v1.1.49
func (res *DataplaneSecret) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type DataplaneSecretSpec ¶ added in v1.1.49
type DataplaneSecretSpec struct { Dataplane string `json:"dataplane"` // Key value pairs for accessing the dataplane. The value will be stored encrypted. Data string `json:"data"` }
DataplaneSecretSpec (management.v1alpha1.DataplaneSecret)
type DataplaneSecretState ¶ added in v1.1.49
type DataplaneSecretState string
DataplaneSecretState the model 'DataplaneSecretState'
const ( // GENERATE: The following code has been modified after code generation DataplaneSecretStateACTIVE DataplaneSecretState = "active" // GENERATE: The following code has been modified after code generation DataplaneSecretStateDEPRECATED DataplaneSecretState = "deprecated" // GENERATE: The following code has been modified after code generation DataplaneSecretStateARCHIVED DataplaneSecretState = "archived" )
List of DataplaneSecretState
type DataplaneSecretStatus ¶ added in v1.1.49
type DataplaneSecretStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. // GENERATE: The following code has been modified after code generation Reasons []interface{} `json:"reasons,omitempty"` }
DataplaneSecretStatus (management.v1alpha1.DataplaneSecret)
type DataplaneSecretStatusError ¶ added in v1.1.49
type DataplaneSecretStatusError struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` Meta map[string]interface{} `json:"meta,omitempty"` }
DataplaneSecretStatusError struct for DataplaneSecretStatusError
type DataplaneSecretStatusSuccess ¶ added in v1.1.49
type DataplaneSecretStatusSuccess struct { Type string `json:"type"` // Time when the change occured. Timestamp time.Time `json:"timestamp"` // message of the result Detail string `json:"detail"` Meta map[string]interface{} `json:"meta,omitempty"` }
DataplaneSecretStatusSuccess struct for DataplaneSecretStatusSuccess
type DataplaneSecurity ¶ added in v1.1.49
type DataplaneSecurity struct { // public key to be used to encrypt the access data linked to this dataplane. EncryptionKey string `json:"encryptionKey"` EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"` EncryptionHash string `json:"encryptionHash,omitempty"` }
DataplaneSecurity (management.v1alpha1.Dataplane)
type DataplaneSpec ¶ added in v1.1.49
type DataplaneSpec struct { // The dataplane type that this agent connects to Type string `json:"type"` // GENERATE: The following code has been modified after code generation Config interface{} `json:"config,omitempty"` }
DataplaneSpec (management.v1alpha1.Dataplane)
type DataplaneSpecAws ¶ added in v1.1.58
type DataplaneSpecAws struct { Type string `json:"type"` // The ARN of the cloud watch log resource that AWS API Gateway will be configured to send API Access data to AccessLogARN string `json:"accessLogARN,omitempty"` }
DataplaneSpecAws The configuration common to all AWS agents that use this dataplane
type DiscoveryAgent ¶
type DiscoveryAgent struct { apiv1.ResourceMeta Dataplane DiscoveryAgentDataplane `json:"dataplane"` Owner *apiv1.Owner `json:"owner"` Spec DiscoveryAgentSpec `json:"spec"` Status DiscoveryAgentStatus `json:"status"` }
DiscoveryAgent Resource
func DiscoveryAgentFromInstanceArray ¶
func DiscoveryAgentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*DiscoveryAgent, error)
DiscoveryAgentFromInstanceArray converts a []*ResourceInstance to a []*DiscoveryAgent
func NewDiscoveryAgent ¶
func NewDiscoveryAgent(name, scopeName string) *DiscoveryAgent
NewDiscoveryAgent creates an empty *DiscoveryAgent
func (*DiscoveryAgent) AsInstance ¶
func (res *DiscoveryAgent) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a DiscoveryAgent to a ResourceInstance
func (*DiscoveryAgent) FromInstance ¶
func (res *DiscoveryAgent) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a DiscoveryAgent
func (*DiscoveryAgent) MarshalJSON ¶
func (res *DiscoveryAgent) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*DiscoveryAgent) PluralName ¶
func (res *DiscoveryAgent) PluralName() string
PluralName returns the plural name of the resource
func (*DiscoveryAgent) UnmarshalJSON ¶
func (res *DiscoveryAgent) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type DiscoveryAgentDataplane ¶ added in v1.1.49
type DiscoveryAgentDataplane struct { Name string `json:"name,omitempty"` // Defines the interval that the dataplane will be accessed (30m = 30 minutes, 5h 5m = 5 hours and 5 mins, 2d = 2 days). 30m minimum Frequency string `json:"frequency,omitempty"` // Queues this agent to run a discovery process. Defaults to false QueueDiscovery bool `json:"queueDiscovery,omitempty"` }
DiscoveryAgentDataplane (management.v1alpha1.DiscoveryAgent)
type DiscoveryAgentSpec ¶
type DiscoveryAgentSpec struct { // The dataplane type that this agent connects to DataplaneType string `json:"dataplaneType"` Config DiscoveryAgentSpecConfig `json:"config"` Logging DiscoveryAgentSpecLogging `json:"logging,omitempty"` }
DiscoveryAgentSpec (management.v1alpha1.DiscoveryAgent)
type DiscoveryAgentSpecConfig ¶
type DiscoveryAgentSpecConfig struct { // Defines the tag based filter expression to be evaluated for discovering the API from the API Gateway. The filter value is a conditional expression that can use logical operators to compare two value. The conditional expression must have \"tag\" as the prefix/selector in the symbol name. For e.g. “` tag.SOME_TAG == \"somevalue\" “` The expression can be a simple condition as shown above or compound condition in which more than one simple conditions are evaluated using logical operator. For e.g. “` tag.SOME_TAG == \"somevalue\" || tag.ANOTHER_TAG != \"some_other_value\" “` In addition to logical expression, the filter can hold call based expressions. Below are the list of supported call expressions #### Exists Exists call can be made to evaluate if the tag name exists in the list of tags on API. This call expression can be used as unary expression For e.g. “` tag.SOME_TAG.Exists() “` #### Any Any call can be made in a simple expression to evaluate if the tag with any name has specified value or not in the list of tags on the API. For e.g. “` tag.Any() == \"Tag with some value\" || tag.Any() != \"Tag with other value\" “` #### Contains Contains call can be made in a simple expression to evaluate if the the specified tag contains specified argument as value. This call expression requires string argument that will be used to perform lookup in tag value For e.g. “` tag.Contains(\"somevalue\") “` #### MatchRegEx MatchRegEx call can be used for evaluating the specified tag value to match specified regular expression. This call expression requires a regular expression as the argument. For e.g. “` tag.MatchRegEx(\"(some){1}\") “` Filter string `json:"filter,omitempty"` // The list of tags to be added to the API service resource that the agent publishes to Amplify Central AdditionalTags []string `json:"additionalTags,omitempty"` // The list of tags to exclude from the API service resource that the agent publishes to Amplify Central IgnoreTags []string `json:"ignoreTags,omitempty"` // Name of the team that owns the catalog item created by agent. If not provided, the default team will be used. OwningTeam string `json:"owningTeam,omitempty"` // GENERATE: The following code has been modified after code generation Owner *apiv1.Owner `json:"owner,omitempty"` }
DiscoveryAgentSpecConfig Represents the discovery agent config (management.v1alpha1.DiscoveryAgent)
type DiscoveryAgentSpecConfigOwner ¶ added in v1.1.52
type DiscoveryAgentSpecConfigOwner struct { // The type of the owner. Defaults to team if not present. Type string `json:"type,omitempty"` // Id of the owner of the resource. Id string `json:"id"` }
DiscoveryAgentSpecConfigOwner Owner of the resources that the agent discovers. (management.v1alpha1.DiscoveryAgent)
type DiscoveryAgentSpecLogging ¶
type DiscoveryAgentSpecLogging struct { // Defines the log level. Level string `json:"level,omitempty"` }
DiscoveryAgentSpecLogging Logging config (management.v1alpha1.DiscoveryAgent)
type DiscoveryAgentStatus ¶
type DiscoveryAgentStatus struct { // Version name for the agent revision. Version string `json:"version,omitempty"` // Latest available version for the agent revision. LatestAvailableVersion string `json:"latestAvailableVersion,omitempty"` // Agent status: * running - Passed all health checks. Up and running * stopped - Agent is not running * failed - Failed health checks * unhealthy - Agent is running with health check failure State string `json:"state,omitempty"` PreviousState string `json:"previousState,omitempty"` // A way to communicate details about the current status by the agent Message string `json:"message,omitempty"` // The last updated event timestamp provided by the agent LastActivityTime time.Time `json:"lastActivityTime,omitempty"` // Version name for the SDK revision. SdkVersion string `json:"sdkVersion,omitempty"` }
DiscoveryAgentStatus (management.v1alpha1.DiscoveryAgent)
type Environment ¶
type Environment struct { apiv1.ResourceMeta Compliancetasks EnvironmentCompliancetasks `json:"compliancetasks"` Owner *apiv1.Owner `json:"owner"` Policies EnvironmentPolicies `json:"policies"` Spec EnvironmentSpec `json:"spec"` }
Environment Resource
func EnvironmentFromInstanceArray ¶
func EnvironmentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Environment, error)
EnvironmentFromInstanceArray converts a []*ResourceInstance to a []*Environment
func NewEnvironment ¶
func NewEnvironment(name string) *Environment
NewEnvironment creates an empty *Environment
func (*Environment) AsInstance ¶
func (res *Environment) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Environment to a ResourceInstance
func (*Environment) FromInstance ¶
func (res *Environment) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Environment
func (*Environment) MarshalJSON ¶
func (res *Environment) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*Environment) PluralName ¶
func (res *Environment) PluralName() string
PluralName returns the plural name of the resource
func (*Environment) UnmarshalJSON ¶
func (res *Environment) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type EnvironmentCompliancetasks ¶ added in v1.1.52
type EnvironmentCompliancetasks struct { // GENERATE: The following code has been modified after code generation Design EnvironmentCompliancetasksLinting `json:"design,omitempty"` // GENERATE: The following code has been modified after code generation Security EnvironmentCompliancetasksLinting `json:"security,omitempty"` }
EnvironmentCompliancetasks Subresource that is only accessible by the backend. Used by compliance-controller to auto-start/cancel linting jobs based on changes made to \"spec.compliance\" properties detected via mutation hook. (management.v1alpha1.Environment)
type EnvironmentCompliancetasksLinting ¶ added in v1.1.52
type EnvironmentCompliancetasksLinting struct { // Name of APISpecLintingRuleset to create linting jobs for. StartJobsForRuleset string `json:"startJobsForRuleset,omitempty"` // Name of APISpecLintingRuleset to cancel currently pending linting jobs for. CancelJobsForRuleset string `json:"cancelJobsForRuleset,omitempty"` }
EnvironmentCompliancetasksLinting struct for EnvironmentCompliancetasksLinting
type EnvironmentPolicies ¶ added in v1.1.52
type EnvironmentPolicies struct {
Credentials EnvironmentPoliciesCredentials `json:"credentials,omitempty"`
}
EnvironmentPolicies (management.v1alpha1.Environment)
type EnvironmentPoliciesCredentials ¶ added in v1.1.52
type EnvironmentPoliciesCredentials struct {
Expiry EnvironmentPoliciesCredentialsExpiry `json:"expiry,omitempty"`
}
EnvironmentPoliciesCredentials Defines the policies for the Environment's Credentials (management.v1alpha1.Environment)
type EnvironmentPoliciesCredentialsExpiry ¶ added in v1.1.52
type EnvironmentPoliciesCredentialsExpiry struct { // The number of days after the Credentials are considered to be expired. Period int32 `json:"period,omitempty"` // The action taken when the Credential expires. Action string `json:"action,omitempty"` Notifications EnvironmentPoliciesCredentialsExpiryNotifications `json:"notifications,omitempty"` }
EnvironmentPoliciesCredentialsExpiry Expiry properties for Credentials generated in the scoped Environment. (management.v1alpha1.Environment)
type EnvironmentPoliciesCredentialsExpiryNotifications ¶ added in v1.1.52
type EnvironmentPoliciesCredentialsExpiryNotifications struct { // The days interval at which to send notifications before the Credentials are to expire. DaysBefore []int32 `json:"daysBefore,omitempty"` }
EnvironmentPoliciesCredentialsExpiryNotifications Notifications properties for Credentials expiry. (management.v1alpha1.Environment)
type EnvironmentSpec ¶
type EnvironmentSpec struct { Description string `json:"description,omitempty"` // (management.v1alpha1.Environment) Variables map[string]string `json:"variables,omitempty"` // Production environment will be used to perform production processing or connect to a non-Axway gateway. This usage will count against your entitled quota. Production bool `json:"production,omitempty"` // Axway Managed environment is hosted in the Axway Managed Cloud. AxwayManaged bool `json:"axwayManaged,omitempty"` Icon EnvironmentSpecIcon `json:"icon,omitempty"` Compliance EnvironmentSpecCompliance `json:"compliance,omitempty"` }
EnvironmentSpec (management.v1alpha1.Environment)
type EnvironmentSpecCompliance ¶ added in v1.1.52
type EnvironmentSpecCompliance struct { // Reference to Amplify Central design Ruleset Design string `json:"design,omitempty"` // Reference to Amplify Central security Ruleset Security string `json:"security,omitempty"` }
EnvironmentSpecCompliance Compliance for the Environment. (management.v1alpha1.Environment)
type EnvironmentSpecIcon ¶
type EnvironmentSpecIcon struct { // Content-Type of the image. ContentType string `json:"contentType,omitempty"` // Base64 encoded image. Data string `json:"data,omitempty"` }
EnvironmentSpecIcon Image for the Environment. (management.v1alpha1.Environment)
type Integration ¶
type Integration struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec IntegrationSpec `json:"spec"` }
Integration Resource
func IntegrationFromInstanceArray ¶
func IntegrationFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Integration, error)
IntegrationFromInstanceArray converts a []*ResourceInstance to a []*Integration
func NewIntegration ¶
func NewIntegration(name string) *Integration
NewIntegration creates an empty *Integration
func (*Integration) AsInstance ¶
func (res *Integration) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Integration to a ResourceInstance
func (*Integration) FromInstance ¶
func (res *Integration) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Integration
func (*Integration) MarshalJSON ¶
func (res *Integration) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*Integration) PluralName ¶
func (res *Integration) PluralName() string
PluralName returns the plural name of the resource
func (*Integration) UnmarshalJSON ¶
func (res *Integration) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type IntegrationSpec ¶
type IntegrationSpec struct {
Description string `json:"description,omitempty"`
}
IntegrationSpec (management.v1alpha1.Integration)
type K8SCluster ¶
type K8SCluster struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec K8SClusterSpec `json:"spec"` }
K8SCluster Resource
func K8SClusterFromInstanceArray ¶
func K8SClusterFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*K8SCluster, error)
K8SClusterFromInstanceArray converts a []*ResourceInstance to a []*K8SCluster
func NewK8SCluster ¶
func NewK8SCluster(name string) *K8SCluster
NewK8SCluster creates an empty *K8SCluster
func (*K8SCluster) AsInstance ¶
func (res *K8SCluster) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a K8SCluster to a ResourceInstance
func (*K8SCluster) FromInstance ¶
func (res *K8SCluster) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a K8SCluster
func (*K8SCluster) MarshalJSON ¶
func (res *K8SCluster) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*K8SCluster) PluralName ¶
func (res *K8SCluster) PluralName() string
PluralName returns the plural name of the resource
func (*K8SCluster) UnmarshalJSON ¶
func (res *K8SCluster) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type K8SClusterSpec ¶
type K8SClusterSpec struct {
Mesh string `json:"mesh,omitempty"`
}
K8SClusterSpec (management.v1alpha1.K8SCluster)
type K8SResource ¶
type K8SResource struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec K8SResourceSpec `json:"spec"` }
K8SResource Resource
func K8SResourceFromInstanceArray ¶
func K8SResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*K8SResource, error)
K8SResourceFromInstanceArray converts a []*ResourceInstance to a []*K8SResource
func NewK8SResource ¶
func NewK8SResource(name, scopeName string) *K8SResource
NewK8SResource creates an empty *K8SResource
func (*K8SResource) AsInstance ¶
func (res *K8SResource) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a K8SResource to a ResourceInstance
func (*K8SResource) FromInstance ¶
func (res *K8SResource) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a K8SResource
func (*K8SResource) MarshalJSON ¶
func (res *K8SResource) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*K8SResource) PluralName ¶
func (res *K8SResource) PluralName() string
PluralName returns the plural name of the resource
func (*K8SResource) UnmarshalJSON ¶
func (res *K8SResource) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type K8SResourceSpec ¶
type K8SResourceSpec struct { ResourceDiscovery string `json:"resourceDiscovery,omitempty"` ResourceVersion string `json:"resourceVersion,omitempty"` Uid string `json:"uid,omitempty"` OwnerReferences []K8SResourceSpecOwnerReferences `json:"ownerReferences,omitempty"` // (management.v1alpha1.K8SResource) ResourceSpec map[string]interface{} `json:"resourceSpec,omitempty"` // (management.v1alpha1.K8SResource) ResourceStatus map[string]interface{} `json:"resourceStatus,omitempty"` }
K8SResourceSpec (management.v1alpha1.K8SResource)
type K8SResourceSpecOwnerReferences ¶
type K8SResourceSpecOwnerReferences struct { Kind string `json:"kind,omitempty"` Name string `json:"name,omitempty"` }
K8SResourceSpecOwnerReferences (management.v1alpha1.K8SResource)
type ManagedApplication ¶
type ManagedApplication struct { apiv1.ResourceMeta Marketplace ManagedApplicationMarketplace `json:"marketplace"` Owner *apiv1.Owner `json:"owner"` References ManagedApplicationReferences `json:"references"` Spec ManagedApplicationSpec `json:"spec"` // Status ManagedApplicationStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
ManagedApplication Resource
func ManagedApplicationFromInstanceArray ¶
func ManagedApplicationFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ManagedApplication, error)
ManagedApplicationFromInstanceArray converts a []*ResourceInstance to a []*ManagedApplication
func NewManagedApplication ¶
func NewManagedApplication(name, scopeName string) *ManagedApplication
NewManagedApplication creates an empty *ManagedApplication
func (*ManagedApplication) AsInstance ¶
func (res *ManagedApplication) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ManagedApplication to a ResourceInstance
func (*ManagedApplication) FromInstance ¶
func (res *ManagedApplication) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ManagedApplication
func (*ManagedApplication) MarshalJSON ¶
func (res *ManagedApplication) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ManagedApplication) PluralName ¶
func (res *ManagedApplication) PluralName() string
PluralName returns the plural name of the resource
func (*ManagedApplication) UnmarshalJSON ¶
func (res *ManagedApplication) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ManagedApplicationMarketplace ¶
type ManagedApplicationMarketplace struct { // The name of the Marketplace. Name string `json:"name"` Resource ManagedApplicationMarketplaceResource `json:"resource"` }
ManagedApplicationMarketplace Details about the marketplace Application. (management.v1alpha1.ManagedApplication)
type ManagedApplicationMarketplaceResource ¶
type ManagedApplicationMarketplaceResource struct { Metadata ManagedApplicationMarketplaceResourceMetadata `json:"metadata"` // GENERATE: The following code has been modified after code generation Owner *apiv1.Owner `json:"owner,omitempty"` }
ManagedApplicationMarketplaceResource The Marketplace Application resource details. (management.v1alpha1.ManagedApplication)
type ManagedApplicationMarketplaceResourceMetadata ¶
type ManagedApplicationMarketplaceResourceMetadata struct { // Id of the user that created the entity. CreateUserId string `json:"createUserId,omitempty"` // Id of the user that created the entity. ModifyUserId string `json:"modifyUserId,omitempty"` }
ManagedApplicationMarketplaceResourceMetadata Marketplace Application metadata. (management.v1alpha1.ManagedApplication)
type ManagedApplicationMarketplaceResourceOwner ¶
type ManagedApplicationMarketplaceResourceOwner struct { // The type of the owner. Type string `json:"type,omitempty"` // Id of the owner of the resource. Id string `json:"id,omitempty"` Organization ManagedApplicationMarketplaceResourceOwnerOrganization `json:"organization"` }
ManagedApplicationMarketplaceResourceOwner Owner of the Application. (management.v1alpha1.ManagedApplication)
type ManagedApplicationMarketplaceResourceOwnerOrganization ¶
type ManagedApplicationMarketplaceResourceOwnerOrganization struct { // Id of the organization. Id string `json:"id"` }
ManagedApplicationMarketplaceResourceOwnerOrganization Organization details. (management.v1alpha1.ManagedApplication)
type ManagedApplicationReferences ¶
type ManagedApplicationReferences struct { // Reference to Application resource Application string `json:"application,omitempty"` }
ManagedApplicationReferences (management.v1alpha1.ManagedApplication)
type ManagedApplicationSpec ¶
type ManagedApplicationSpec struct {
Security ManagedApplicationSpecSecurity `json:"security,omitempty"`
}
ManagedApplicationSpec (management.v1alpha1.ManagedApplication)
type ManagedApplicationSpecSecurity ¶
type ManagedApplicationSpecSecurity struct { // public key to be used to encrypt the credentials linked to this Managed Application. EncryptionKey string `json:"encryptionKey"` EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"` EncryptionHash string `json:"encryptionHash,omitempty"` }
ManagedApplicationSpecSecurity (management.v1alpha1.ManagedApplication)
type ManagedApplicationStatus ¶
type ManagedApplicationStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. Reasons []map[string]map[string]interface{} `json:"reasons,omitempty"` }
ManagedApplicationStatus (management.v1alpha1.ManagedApplication)
type Mesh ¶
type Mesh struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec interface{} `json:"spec"` }
Mesh Resource
func MeshFromInstanceArray ¶
func MeshFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Mesh, error)
MeshFromInstanceArray converts a []*ResourceInstance to a []*Mesh
func (*Mesh) AsInstance ¶
func (res *Mesh) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Mesh to a ResourceInstance
func (*Mesh) FromInstance ¶
func (res *Mesh) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Mesh
func (*Mesh) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Mesh) PluralName ¶
PluralName returns the plural name of the resource
func (*Mesh) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type MeshDiscovery ¶
type MeshDiscovery struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec MeshDiscoverySpec `json:"spec"` }
MeshDiscovery Resource
func MeshDiscoveryFromInstanceArray ¶
func MeshDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshDiscovery, error)
MeshDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*MeshDiscovery
func NewMeshDiscovery ¶
func NewMeshDiscovery(name, scopeName string) *MeshDiscovery
NewMeshDiscovery creates an empty *MeshDiscovery
func (*MeshDiscovery) AsInstance ¶
func (res *MeshDiscovery) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a MeshDiscovery to a ResourceInstance
func (*MeshDiscovery) FromInstance ¶
func (res *MeshDiscovery) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a MeshDiscovery
func (*MeshDiscovery) MarshalJSON ¶
func (res *MeshDiscovery) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*MeshDiscovery) PluralName ¶
func (res *MeshDiscovery) PluralName() string
PluralName returns the plural name of the resource
func (*MeshDiscovery) UnmarshalJSON ¶
func (res *MeshDiscovery) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type MeshDiscoverySpec ¶
type MeshDiscoverySpec struct { // Target environment. EnvironmentRef string `json:"environmentRef"` }
MeshDiscoverySpec (management.v1alpha1.MeshDiscovery)
type MeshService ¶
type MeshService struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec MeshServiceSpec `json:"spec"` }
MeshService Resource
func MeshServiceFromInstanceArray ¶
func MeshServiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshService, error)
MeshServiceFromInstanceArray converts a []*ResourceInstance to a []*MeshService
func NewMeshService ¶
func NewMeshService(name, scopeName string) *MeshService
NewMeshService creates an empty *MeshService
func (*MeshService) AsInstance ¶
func (res *MeshService) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a MeshService to a ResourceInstance
func (*MeshService) FromInstance ¶
func (res *MeshService) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a MeshService
func (*MeshService) MarshalJSON ¶
func (res *MeshService) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*MeshService) PluralName ¶
func (res *MeshService) PluralName() string
PluralName returns the plural name of the resource
func (*MeshService) UnmarshalJSON ¶
func (res *MeshService) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type MeshServiceSpec ¶
type MeshServiceSpec struct { // The labels used by the service to match workloads it exposes. (management.v1alpha1.MeshService) Selector map[string]string `json:"selector,omitempty"` // Reference to the K8SResource derived from the Kubernetes Service. Resource string `json:"resource,omitempty"` // References to workloads exposed by the service. Workloads []string `json:"workloads,omitempty"` // Details per port. Ports []MeshServiceSpecPorts `json:"ports,omitempty"` }
MeshServiceSpec (management.v1alpha1.MeshService)
type MeshServiceSpecEndpoints ¶
type MeshServiceSpecEndpoints struct { Workloads []string `json:"workloads,omitempty"` // A subset is the set of labels one or more workloads has outside the labels in the service selector. (management.v1alpha1.MeshService) Subset map[string]string `json:"subset,omitempty"` // Array of references to apispecs discovered by the discovery agent. Specs []string `json:"specs,omitempty"` }
MeshServiceSpecEndpoints (management.v1alpha1.MeshService)
type MeshServiceSpecPorts ¶
type MeshServiceSpecPorts struct { Name string `json:"name,omitempty"` Port int32 `json:"port,omitempty"` Endpoints []MeshServiceSpecEndpoints `json:"endpoints,omitempty"` }
MeshServiceSpecPorts (management.v1alpha1.MeshService)
type MeshWorkload ¶
type MeshWorkload struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec MeshWorkloadSpec `json:"spec"` }
MeshWorkload Resource
func MeshWorkloadFromInstanceArray ¶
func MeshWorkloadFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshWorkload, error)
MeshWorkloadFromInstanceArray converts a []*ResourceInstance to a []*MeshWorkload
func NewMeshWorkload ¶
func NewMeshWorkload(name, scopeName string) *MeshWorkload
NewMeshWorkload creates an empty *MeshWorkload
func (*MeshWorkload) AsInstance ¶
func (res *MeshWorkload) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a MeshWorkload to a ResourceInstance
func (*MeshWorkload) FromInstance ¶
func (res *MeshWorkload) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a MeshWorkload
func (*MeshWorkload) MarshalJSON ¶
func (res *MeshWorkload) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*MeshWorkload) PluralName ¶
func (res *MeshWorkload) PluralName() string
PluralName returns the plural name of the resource
func (*MeshWorkload) UnmarshalJSON ¶
func (res *MeshWorkload) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type MeshWorkloadSpec ¶
type MeshWorkloadSpec struct { // References to k8sresources making up the workload. Resources []string `json:"resources,omitempty"` // Labels from the k8sresources making up the workload. (management.v1alpha1.MeshWorkload) Labels map[string]string `json:"labels,omitempty"` // Discovered ports on the workload. Ports []MeshWorkloadSpecPorts `json:"ports,omitempty"` }
MeshWorkloadSpec (management.v1alpha1.MeshWorkload)
type MeshWorkloadSpecPorts ¶
type MeshWorkloadSpecPorts struct { // The name of the port. Name string `json:"name,omitempty"` // Port number. Port int32 `json:"port,omitempty"` Specs MeshWorkloadSpecSpecs `json:"specs,omitempty"` }
MeshWorkloadSpecPorts (management.v1alpha1.MeshWorkload)
type MeshWorkloadSpecSpecs ¶
type MeshWorkloadSpecSpecs struct { // Array of references to apispecs discovered by the discovery agent. DiscoveredSpecs []string `json:"discoveredSpecs,omitempty"` }
MeshWorkloadSpecSpecs API specs exposed by this workload on this port. (management.v1alpha1.MeshWorkload)
type ResourceDiscovery ¶
type ResourceDiscovery struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ResourceDiscoverySpec `json:"spec"` }
ResourceDiscovery Resource
func NewResourceDiscovery ¶
func NewResourceDiscovery(name, scopeName string) *ResourceDiscovery
NewResourceDiscovery creates an empty *ResourceDiscovery
func ResourceDiscoveryFromInstanceArray ¶
func ResourceDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ResourceDiscovery, error)
ResourceDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*ResourceDiscovery
func (*ResourceDiscovery) AsInstance ¶
func (res *ResourceDiscovery) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ResourceDiscovery to a ResourceInstance
func (*ResourceDiscovery) FromInstance ¶
func (res *ResourceDiscovery) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ResourceDiscovery
func (*ResourceDiscovery) MarshalJSON ¶
func (res *ResourceDiscovery) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ResourceDiscovery) PluralName ¶
func (res *ResourceDiscovery) PluralName() string
PluralName returns the plural name of the resource
func (*ResourceDiscovery) UnmarshalJSON ¶
func (res *ResourceDiscovery) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ResourceDiscoverySpec ¶
type ResourceDiscoverySpec struct { Version string `json:"version,omitempty"` Kind string `json:"kind,omitempty"` Group string `json:"group,omitempty"` NamespaceFilter ResourceDiscoverySpecNamespaceFilter `json:"namespaceFilter,omitempty"` ResourceFilter ResourceDiscoverySpecResourceFilter `json:"resourceFilter,omitempty"` KeepSpecFields []string `json:"keepSpecFields,omitempty"` KeepStatusFields []string `json:"keepStatusFields,omitempty"` IgnoreLabels []string `json:"ignoreLabels,omitempty"` Tags []string `json:"tags,omitempty"` // (management.v1alpha1.ResourceDiscovery) ExtraAttributes map[string]string `json:"extraAttributes,omitempty"` }
ResourceDiscoverySpec (management.v1alpha1.ResourceDiscovery)
type ResourceDiscoverySpecNamespaceFilter ¶
type ResourceDiscoverySpecNamespaceFilter struct {
Names []string `json:"names,omitempty"`
}
ResourceDiscoverySpecNamespaceFilter Namespace filter. (management.v1alpha1.ResourceDiscovery)
type ResourceDiscoverySpecResourceFilter ¶
type ResourceDiscoverySpecResourceFilter struct { Names []string `json:"names,omitempty"` // (management.v1alpha1.ResourceDiscovery) MatchLabels map[string]string `json:"matchLabels,omitempty"` }
ResourceDiscoverySpecResourceFilter Resource filter. (management.v1alpha1.ResourceDiscovery)
type ResourceHook ¶
type ResourceHook struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ResourceHookSpec `json:"spec"` }
ResourceHook Resource
func NewResourceHook ¶
func NewResourceHook(name, scopeName string) *ResourceHook
NewResourceHook creates an empty *ResourceHook
func ResourceHookFromInstanceArray ¶
func ResourceHookFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ResourceHook, error)
ResourceHookFromInstanceArray converts a []*ResourceInstance to a []*ResourceHook
func (*ResourceHook) AsInstance ¶
func (res *ResourceHook) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ResourceHook to a ResourceInstance
func (*ResourceHook) FromInstance ¶
func (res *ResourceHook) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ResourceHook
func (*ResourceHook) MarshalJSON ¶
func (res *ResourceHook) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ResourceHook) PluralName ¶
func (res *ResourceHook) PluralName() string
PluralName returns the plural name of the resource
func (*ResourceHook) UnmarshalJSON ¶
func (res *ResourceHook) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ResourceHookSpec ¶
type ResourceHookSpec struct { Triggers []ResourceHookSpecTriggers `json:"triggers"` // List of Webhook kind resource names that dictates what webhooks will be invoked on matching triggers. Webhooks []string `json:"webhooks"` }
ResourceHookSpec (management.v1alpha1.ResourceHook)
type ResourceHookSpecScope ¶
type ResourceHookSpecScope struct { // Value for the Kind of the scope of the resource. Use \"*\" for any. Kind string `json:"kind"` // Name of the scope of the resource. Use \"*\" for any. Name string `json:"name"` }
ResourceHookSpecScope Resource scope trigger details. (management.v1alpha1.ResourceHook)
type ResourceHookSpecTriggers ¶
type ResourceHookSpecTriggers struct { // Value for the group of the resource. Use \"*\" for any. Group string `json:"group"` Scope ResourceHookSpecScope `json:"scope,omitempty"` // Value for the Kind of the resource. Use \"*\" for any. Kind string `json:"kind"` // Name of the resource. Use \"*\" for any. Name string `json:"name"` Type []string `json:"type"` }
ResourceHookSpecTriggers (management.v1alpha1.ResourceHook)
type Secret ¶
type Secret struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec SecretSpec `json:"spec"` }
Secret Resource
func SecretFromInstanceArray ¶
func SecretFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Secret, error)
SecretFromInstanceArray converts a []*ResourceInstance to a []*Secret
func (*Secret) AsInstance ¶
func (res *Secret) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Secret to a ResourceInstance
func (*Secret) FromInstance ¶
func (res *Secret) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Secret
func (*Secret) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Secret) PluralName ¶
PluralName returns the plural name of the resource
func (*Secret) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type SecretSpec ¶
type SecretSpec struct { // Key value pairs. The value will be stored encrypted. (management.v1alpha1.Secret) Data map[string]string `json:"data,omitempty"` }
SecretSpec (management.v1alpha1.Secret)
type SpecDiscovery ¶
type SpecDiscovery struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec SpecDiscoverySpec `json:"spec"` }
SpecDiscovery Resource
func NewSpecDiscovery ¶
func NewSpecDiscovery(name, scopeName string) *SpecDiscovery
NewSpecDiscovery creates an empty *SpecDiscovery
func SpecDiscoveryFromInstanceArray ¶
func SpecDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SpecDiscovery, error)
SpecDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*SpecDiscovery
func (*SpecDiscovery) AsInstance ¶
func (res *SpecDiscovery) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a SpecDiscovery to a ResourceInstance
func (*SpecDiscovery) FromInstance ¶
func (res *SpecDiscovery) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a SpecDiscovery
func (*SpecDiscovery) MarshalJSON ¶
func (res *SpecDiscovery) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*SpecDiscovery) PluralName ¶
func (res *SpecDiscovery) PluralName() string
PluralName returns the plural name of the resource
func (*SpecDiscovery) UnmarshalJSON ¶
func (res *SpecDiscovery) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type SpecDiscoverySpec ¶
type SpecDiscoverySpec struct { NamespaceFilter SpecDiscoverySpecNamespaceFilter `json:"namespaceFilter,omitempty"` ResourceFilter SpecDiscoverySpecResourceFilter `json:"resourceFilter,omitempty"` Targets SpecDiscoverySpecTargets `json:"targets,omitempty"` }
SpecDiscoverySpec (management.v1alpha1.SpecDiscovery)
type SpecDiscoverySpecNamespaceFilter ¶
type SpecDiscoverySpecNamespaceFilter struct {
Names []string `json:"names,omitempty"`
}
SpecDiscoverySpecNamespaceFilter a list of namespace names to follow. If not set, follows all namespaces. (management.v1alpha1.SpecDiscovery)
type SpecDiscoverySpecResourceFilter ¶
type SpecDiscoverySpecResourceFilter struct { Names []string `json:"names,omitempty"` // (management.v1alpha1.SpecDiscovery) MatchLabels map[string]string `json:"matchLabels,omitempty"` }
SpecDiscoverySpecResourceFilter Filter pod resources by name or labels. (management.v1alpha1.SpecDiscovery)
type SpecDiscoverySpecTargets ¶
type SpecDiscoverySpecTargets struct { ExactPaths []SpecDiscoverySpecTargetsExactPaths `json:"exactPaths,omitempty"` FromAnnotation []SpecDiscoverySpecTargetsFromAnnotation `json:"fromAnnotation,omitempty"` }
SpecDiscoverySpecTargets (management.v1alpha1.SpecDiscovery)
type SpecDiscoverySpecTargetsExactPaths ¶
type SpecDiscoverySpecTargetsExactPaths struct { // path to api definition Path string `json:"path,omitempty"` // headers to add to the query (management.v1alpha1.SpecDiscovery) Headers map[string]string `json:"headers,omitempty"` }
SpecDiscoverySpecTargetsExactPaths (management.v1alpha1.SpecDiscovery)
type SpecDiscoverySpecTargetsFromAnnotation ¶
type SpecDiscoverySpecTargetsFromAnnotation struct { // annotation template. golang template that's fed the following object for each declared port of the pod: {\"name\", \"number\"} Template string `json:"template,omitempty"` }
SpecDiscoverySpecTargetsFromAnnotation (management.v1alpha1.SpecDiscovery)
type TraceabilityAgent ¶
type TraceabilityAgent struct { apiv1.ResourceMeta Dataplane TraceabilityAgentDataplane `json:"dataplane"` Owner *apiv1.Owner `json:"owner"` Spec TraceabilityAgentSpec `json:"spec"` Status TraceabilityAgentStatus `json:"status"` }
TraceabilityAgent Resource
func NewTraceabilityAgent ¶
func NewTraceabilityAgent(name, scopeName string) *TraceabilityAgent
NewTraceabilityAgent creates an empty *TraceabilityAgent
func TraceabilityAgentFromInstanceArray ¶
func TraceabilityAgentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*TraceabilityAgent, error)
TraceabilityAgentFromInstanceArray converts a []*ResourceInstance to a []*TraceabilityAgent
func (*TraceabilityAgent) AsInstance ¶
func (res *TraceabilityAgent) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a TraceabilityAgent to a ResourceInstance
func (*TraceabilityAgent) FromInstance ¶
func (res *TraceabilityAgent) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a TraceabilityAgent
func (*TraceabilityAgent) MarshalJSON ¶
func (res *TraceabilityAgent) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*TraceabilityAgent) PluralName ¶
func (res *TraceabilityAgent) PluralName() string
PluralName returns the plural name of the resource
func (*TraceabilityAgent) UnmarshalJSON ¶
func (res *TraceabilityAgent) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type TraceabilityAgentDataplane ¶ added in v1.1.58
type TraceabilityAgentDataplane struct { Name string `json:"name,omitempty"` // Defines the interval that the dataplane will be accessed (30m = 30 minutes, 5h 5m = 5 hours and 5 mins, 2d = 2 days). 30m minimum Frequency string `json:"frequency,omitempty"` // Queues this agent to run a traffic collection process. Defaults to false QueueTrafficCollection bool `json:"queueTrafficCollection,omitempty"` }
TraceabilityAgentDataplane (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpec ¶
type TraceabilityAgentSpec struct { // The dataplane type that this agent connects to DataplaneType string `json:"dataplaneType"` Config TraceabilityAgentSpecConfig `json:"config"` Logging TraceabilityAgentSpecLogging `json:"logging,omitempty"` }
TraceabilityAgentSpec (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecConfig ¶
type TraceabilityAgentSpecConfig struct { // Name of the team that owns the catalog item created by agent. If not provided, the default team will be used. OwningTeam string `json:"owningTeam,omitempty"` // Configures the agent to include request and response headers in captured traffic. Defaults to true ProcessHeaders bool `json:"processHeaders,omitempty"` Redaction TraceabilityAgentSpecConfigRedaction `json:"redaction,omitempty"` Sampling TraceabilityAgentSpecConfigSampling `json:"sampling,omitempty"` // GENERATE: The following code has been modified after code generation Owner *apiv1.Owner `json:"owner,omitempty"` }
TraceabilityAgentSpecConfig Represents the traceability agent config (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecConfigOwner ¶ added in v1.1.58
type TraceabilityAgentSpecConfigOwner struct { // The type of the owner. Defaults to team if not present. Type string `json:"type,omitempty"` // Id of the owner of the resource. Id string `json:"id"` }
TraceabilityAgentSpecConfigOwner Owner of the resources that the agent discovers. (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecConfigRedaction ¶ added in v1.1.58
type TraceabilityAgentSpecConfigRedaction struct { // The regular expressions for URL paths that, when matched, will be saved for Business and Consumer Insights Path []string `json:"path,omitempty"` QueryArgument TraceabilityAgentSpecConfigRedactionQueryArgument `json:"queryArgument,omitempty"` RequestHeaders TraceabilityAgentSpecConfigRedactionRequestHeaders `json:"requestHeaders,omitempty"` ResponseHeaders TraceabilityAgentSpecConfigRedactionResponseHeaders `json:"responseHeaders,omitempty"` // The character(s) to apply to values that are sanitized before saving for Business and Consumer Insights. Max length of 5 Default is '{*}' MaskingCharacter string `json:"maskingCharacter,omitempty"` }
TraceabilityAgentSpecConfigRedaction How the agent will redact sensitive information within traffic events (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecConfigRedactionQueryArgument ¶ added in v1.1.58
type TraceabilityAgentSpecConfigRedactionQueryArgument struct { // The regular expressions for query arguments that, when matched, will be saved for Business and Consumer Insights Show []string `json:"show,omitempty"` // The regular expressions for query argument keys that, when matched, will sanitize based off the value regular expression before saving for Business and Consumer Insights Sanitize []TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize `json:"sanitize,omitempty"` }
TraceabilityAgentSpecConfigRedactionQueryArgument The allowed and sanitization setup of query arguments in transactional data (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize ¶ added in v1.1.58
type TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize struct { KeyMatch string `json:"keyMatch"` ValueMatch string `json:"valueMatch"` }
TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecConfigRedactionRequestHeaders ¶ added in v1.1.58
type TraceabilityAgentSpecConfigRedactionRequestHeaders struct { // The regular expressions for request headers that, when matched, will be saved for Business and Consumer Insights Show []string `json:"show,omitempty"` // The regular expressions for request headers keys that, when matched, will sanitize based off the value regular expression before saving for Business and Consumer Insights Sanitize []TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize `json:"sanitize,omitempty"` }
TraceabilityAgentSpecConfigRedactionRequestHeaders The allowed and sanitization setup of request headers in transactional data (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecConfigRedactionResponseHeaders ¶ added in v1.1.58
type TraceabilityAgentSpecConfigRedactionResponseHeaders struct { // The regular expressions for response headers that, when matched, will be saved for Business and Consumer Insights Show []string `json:"show,omitempty"` // The regular expressions for response headers keys that, when matched, will sanitize based off the value regular expression before saving for Business and Consumer Insights Sanitize []TraceabilityAgentSpecConfigRedactionQueryArgumentSanitize `json:"sanitize,omitempty"` }
TraceabilityAgentSpecConfigRedactionResponseHeaders The allowed and sanitization setup of response headers in transactional data (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecConfigSampling ¶ added in v1.1.58
type TraceabilityAgentSpecConfigSampling struct { // The number of transactions, out of 100, that the agent will save the full transaction details for, valid values are 0 to 50 Percentage int32 `json:"percentage,omitempty"` // When set to true will send transactional data for every errored transaction for Business and Consumer Insights AllErrors bool `json:"allErrors,omitempty"` }
TraceabilityAgentSpecConfigSampling How the agent will sample the transaction data found during collection (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentSpecLogging ¶
type TraceabilityAgentSpecLogging struct { // Defines the log level. Level string `json:"level,omitempty"` }
TraceabilityAgentSpecLogging Logging config (management.v1alpha1.TraceabilityAgent)
type TraceabilityAgentStatus ¶
type TraceabilityAgentStatus struct { // Version name for the agent revision. Version string `json:"version,omitempty"` // Latest available version for the agent revision. LatestAvailableVersion string `json:"latestAvailableVersion,omitempty"` // Agent status: * running - Passed all health checks. Up and running * stopped - Agent is not running * failed - Failed health checks * unhealthy - Agent is running with health check failure State string `json:"state,omitempty"` PreviousState string `json:"previousState,omitempty"` // A way to communicate details about the current status by the agent Message string `json:"message,omitempty"` // The last updated event timestamp provided by the agent LastActivityTime time.Time `json:"lastActivityTime,omitempty"` // Version name for the SDK revision. SdkVersion string `json:"sdkVersion,omitempty"` }
TraceabilityAgentStatus (management.v1alpha1.TraceabilityAgent)
type WatchTopic ¶
type WatchTopic struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec WatchTopicSpec `json:"spec"` }
WatchTopic Resource
func NewWatchTopic ¶
func NewWatchTopic(name string) *WatchTopic
NewWatchTopic creates an empty *WatchTopic
func WatchTopicFromInstanceArray ¶
func WatchTopicFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*WatchTopic, error)
WatchTopicFromInstanceArray converts a []*ResourceInstance to a []*WatchTopic
func (*WatchTopic) AsInstance ¶
func (res *WatchTopic) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a WatchTopic to a ResourceInstance
func (*WatchTopic) FromInstance ¶
func (res *WatchTopic) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a WatchTopic
func (*WatchTopic) MarshalJSON ¶
func (res *WatchTopic) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*WatchTopic) PluralName ¶
func (res *WatchTopic) PluralName() string
PluralName returns the plural name of the resource
func (*WatchTopic) UnmarshalJSON ¶
func (res *WatchTopic) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type WatchTopicSpec ¶
type WatchTopicSpec struct { // Description of the WatchTopic Description string `json:"description,omitempty"` Filters []WatchTopicSpecFilters `json:"filters"` }
WatchTopicSpec (management.v1alpha1.WatchTopic)
type WatchTopicSpecFilters ¶
type WatchTopicSpecFilters struct { // Value for the group of the resource. Use \"*\" for any. Group string `json:"group"` // GENERATE: The following code has been modified after code generation // // Scope WatchTopicSpecScope `json:"scope,omitempty"` Scope *WatchTopicSpecScope `json:"scope,omitempty"` // Value for the Kind of the resource. Use \"*\" for any. Kind string `json:"kind"` // Name of the resource. Use \"*\" for any. Name string `json:"name"` Type []string `json:"type"` }
WatchTopicSpecFilters (management.v1alpha1.WatchTopic)
type WatchTopicSpecScope ¶
type WatchTopicSpecScope struct { // Value for the Kind of the scope of the resource. Use \"*\" for any. Kind string `json:"kind"` // Name of the scope of the resource. Use \"*\" for any. Name string `json:"name"` }
WatchTopicSpecScope Resource scope filter details. (management.v1alpha1.WatchTopic)
type Webhook ¶
type Webhook struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec WebhookSpec `json:"spec"` }
Webhook Resource
func NewWebhook ¶
NewWebhook creates an empty *Webhook
func WebhookFromInstanceArray ¶
func WebhookFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Webhook, error)
WebhookFromInstanceArray converts a []*ResourceInstance to a []*Webhook
func (*Webhook) AsInstance ¶
func (res *Webhook) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Webhook to a ResourceInstance
func (*Webhook) FromInstance ¶
func (res *Webhook) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Webhook
func (*Webhook) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Webhook) PluralName ¶
PluralName returns the plural name of the resource
func (*Webhook) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type WebhookSpec ¶
type WebhookSpec struct { Auth WebhookSpecAuth `json:"auth,omitempty"` Enabled bool `json:"enabled,omitempty"` Url string `json:"url"` // A list of headers that will be sent as par of the http call to the webhook endpoint. (management.v1alpha1.Webhook) Headers map[string]string `json:"headers,omitempty"` }
WebhookSpec (management.v1alpha1.Webhook)
type WebhookSpecAuth ¶
type WebhookSpecAuth struct {
Secret WebhookSpecAuthSecret `json:"secret,omitempty"`
}
WebhookSpecAuth Defines the authentication used to invoke the webhook. When invoking the webhook, the value from the secret/key will be sent in the Authorization header. (management.v1alpha1.Webhook)
type WebhookSpecAuthSecret ¶
type WebhookSpecAuthSecret struct { // Secret name to be used as a reference. If the secret is removed, the reference gets removed and the webhook invocation will be done with no Authorization header. Name string `json:"name,omitempty"` // Key to be used from the referenced secret. Key string `json:"key,omitempty"` }
WebhookSpecAuthSecret (management.v1alpha1.Webhook)
Source Files ¶
- APIService.go
- APIServiceInstance.go
- APIServiceRevision.go
- APISpec.go
- APISpecLintingJob.go
- APISpecLintingRuleset.go
- AccessControlList.go
- AccessRequest.go
- AccessRequestDefinition.go
- AssetMapping.go
- AssetMappingTemplate.go
- BatchJob.go
- ConsumerInstance.go
- ConsumerSubscriptionDefinition.go
- Credential.go
- CredentialRequestDefinition.go
- Dataplane.go
- DataplaneSecret.go
- DiscoveryAgent.go
- Environment.go
- Integration.go
- K8SCluster.go
- K8SResource.go
- ManagedApplication.go
- Mesh.go
- MeshDiscovery.go
- MeshService.go
- MeshWorkload.go
- ResourceDiscovery.go
- ResourceHook.go
- Secret.go
- SpecDiscovery.go
- TraceabilityAgent.go
- WatchTopic.go
- Webhook.go
- model_access_control_list_spec.go
- model_access_control_list_spec_access_level_scope.go
- model_access_control_list_spec_access_level_scoped_kind.go
- model_access_control_list_spec_access_level_scoped_resource.go
- model_access_control_list_spec_rules.go
- model_access_control_list_spec_subjects.go
- model_access_request_definition_spec.go
- model_access_request_definition_spec_provision.go
- model_access_request_definition_spec_provision_policies.go
- model_access_request_references_application.go
- model_access_request_references_asset_request.go
- model_access_request_references_asset_resource.go
- model_access_request_references_product.go
- model_access_request_references_product_plan.go
- model_access_request_references_product_release.go
- model_access_request_references_published_product.go
- model_access_request_references_quota.go
- model_access_request_references_subscription.go
- model_access_request_spec.go
- model_access_request_spec_quota.go
- model_access_request_status.go
- model_access_request_status_reasons.go
- model_api_service_compliance.go
- model_api_service_compliance_linting_status.go
- model_api_service_compliance_linting_status_result.go
- model_api_service_details.go
- model_api_service_instance_references.go
- model_api_service_instance_spec.go
- model_api_service_instance_spec_endpoint.go
- model_api_service_instance_spec_routing.go
- model_api_service_revision_compliance.go
- model_api_service_revision_compliance_linting_status.go
- model_api_service_revision_compliance_linting_status_result.go
- model_api_service_revision_spec.go
- model_api_service_revision_spec_definition.go
- model_api_service_spec.go
- model_api_service_spec_icon.go
- model_api_service_status.go
- model_api_service_status_error.go
- model_api_spec_linting_job_result.go
- model_api_spec_linting_job_result_details.go
- model_api_spec_linting_job_result_location.go
- model_api_spec_linting_job_result_summary.go
- model_api_spec_linting_job_spec.go
- model_api_spec_linting_job_state.go
- model_api_spec_linting_ruleset_spec.go
- model_api_spec_linting_ruleset_spec_definition.go
- model_api_spec_spec.go
- model_api_spec_spec_definition.go
- model_api_spec_spec_endpoints.go
- model_asset_mapping_spec.go
- model_asset_mapping_spec_inputs.go
- model_asset_mapping_status.go
- model_asset_mapping_status_operation_type.go
- model_asset_mapping_status_outputs.go
- model_asset_mapping_status_resource.go
- model_asset_mapping_status_resource_asset_resource.go
- model_asset_mapping_status_resource_stage.go
- model_asset_mapping_status_source.go
- model_asset_mapping_status_source_resource.go
- model_asset_mapping_status_source_resource_api_service.go
- model_asset_mapping_status_source_resource_api_service_instance.go
- model_asset_mapping_status_source_resource_api_service_revision.go
- model_asset_mapping_status_source_resource_asset_mapping_template.go
- model_asset_mapping_template_spec.go
- model_asset_mapping_template_spec_api_service.go
- model_asset_mapping_template_spec_api_service_revision.go
- model_asset_mapping_template_spec_api_service_revision_api_service_instance.go
- model_asset_mapping_template_spec_asset.go
- model_asset_mapping_template_spec_filters.go
- model_batch_job_progress.go
- model_batch_job_spec.go
- model_batch_job_spec_references.go
- model_consumer_instance_references.go
- model_consumer_instance_spec.go
- model_consumer_instance_spec_additional_data_properties.go
- model_consumer_instance_spec_icon.go
- model_consumer_instance_spec_subscription.go
- model_consumer_instance_spec_unstructured_data_properties.go
- model_consumer_instance_status.go
- model_consumer_instance_status_phase.go
- model_consumer_subscription_definition_spec.go
- model_consumer_subscription_definition_spec_schema.go
- model_consumer_subscription_definition_spec_schema_properties.go
- model_credential_policies.go
- model_credential_policies_expiry.go
- model_credential_references.go
- model_credential_request_definition_references.go
- model_credential_request_definition_spec.go
- model_credential_request_definition_spec_provision.go
- model_credential_request_definition_spec_provision_policies.go
- model_credential_request_definition_spec_provision_policies_expiry.go
- model_credential_request_definition_spec_provision_policies_expiry_actions.go
- model_credential_request_definition_spec_webhook.go
- model_credential_spec.go
- model_credential_spec_state.go
- model_credential_state.go
- model_credential_status.go
- model_credential_status_reasons.go
- model_dataplane_secret_spec.go
- model_dataplane_secret_state.go
- model_dataplane_secret_status.go
- model_dataplane_secret_status_error.go
- model_dataplane_secret_status_success.go
- model_dataplane_security.go
- model_dataplane_spec.go
- model_dataplane_spec_aws.go
- model_discovery_agent_dataplane.go
- model_discovery_agent_spec.go
- model_discovery_agent_spec_config.go
- model_discovery_agent_spec_config_owner.go
- model_discovery_agent_spec_logging.go
- model_discovery_agent_status.go
- model_environment_compliancetasks.go
- model_environment_compliancetasks_linting.go
- model_environment_policies.go
- model_environment_policies_credentials.go
- model_environment_policies_credentials_expiry.go
- model_environment_policies_credentials_expiry_notifications.go
- model_environment_spec.go
- model_environment_spec_compliance.go
- model_environment_spec_icon.go
- model_integration_spec.go
- model_k8_s_cluster_spec.go
- model_k8_s_resource_spec.go
- model_k8_s_resource_spec_owner_references.go
- model_managed_application_marketplace.go
- model_managed_application_marketplace_resource.go
- model_managed_application_marketplace_resource_metadata.go
- model_managed_application_marketplace_resource_owner.go
- model_managed_application_marketplace_resource_owner_organization.go
- model_managed_application_references.go
- model_managed_application_spec.go
- model_managed_application_spec_security.go
- model_managed_application_status.go
- model_mesh_discovery_spec.go
- model_mesh_service_spec.go
- model_mesh_service_spec_endpoints.go
- model_mesh_service_spec_ports.go
- model_mesh_workload_spec.go
- model_mesh_workload_spec_ports.go
- model_mesh_workload_spec_specs.go
- model_resource_discovery_spec.go
- model_resource_discovery_spec_namespace_filter.go
- model_resource_discovery_spec_resource_filter.go
- model_resource_hook_spec.go
- model_resource_hook_spec_scope.go
- model_resource_hook_spec_triggers.go
- model_secret_spec.go
- model_spec_discovery_spec.go
- model_spec_discovery_spec_namespace_filter.go
- model_spec_discovery_spec_resource_filter.go
- model_spec_discovery_spec_targets.go
- model_spec_discovery_spec_targets_exact_paths.go
- model_spec_discovery_spec_targets_from_annotation.go
- model_traceability_agent_dataplane.go
- model_traceability_agent_spec.go
- model_traceability_agent_spec_config.go
- model_traceability_agent_spec_config_owner.go
- model_traceability_agent_spec_config_redaction.go
- model_traceability_agent_spec_config_redaction_query_argument.go
- model_traceability_agent_spec_config_redaction_query_argument_sanitize.go
- model_traceability_agent_spec_config_redaction_request_headers.go
- model_traceability_agent_spec_config_redaction_response_headers.go
- model_traceability_agent_spec_config_sampling.go
- model_traceability_agent_spec_logging.go
- model_traceability_agent_status.go
- model_watch_topic_spec.go
- model_watch_topic_spec_filters.go
- model_watch_topic_spec_scope.go
- model_webhook_spec.go
- model_webhook_spec_auth.go
- model_webhook_spec_auth_secret.go