Documentation ¶
Index ¶
- Constants
- Variables
- func AccessControlListGVK() apiv1.GroupVersionKind
- func ApplicationGVK() apiv1.GroupVersionKind
- func AssetGVK() apiv1.GroupVersionKind
- func AssetMappingGVK() apiv1.GroupVersionKind
- func AssetReleaseGVK() apiv1.GroupVersionKind
- func AssetRequestDefinitionGVK() apiv1.GroupVersionKind
- func AssetRequestGVK() apiv1.GroupVersionKind
- func AssetResourceGVK() apiv1.GroupVersionKind
- func AuthorizationProfileGVK() apiv1.GroupVersionKind
- func CategoryGVK() apiv1.GroupVersionKind
- func CredentialGVK() apiv1.GroupVersionKind
- func CredentialRequestDefinitionGVK() apiv1.GroupVersionKind
- func DocumentGVK() apiv1.GroupVersionKind
- func MarketplaceGVK() apiv1.GroupVersionKind
- func ProductGVK() apiv1.GroupVersionKind
- func ProductOverviewGVK() apiv1.GroupVersionKind
- func ProductPlanGVK() apiv1.GroupVersionKind
- func ProductPlanUnitGVK() apiv1.GroupVersionKind
- func ProductReleaseGVK() apiv1.GroupVersionKind
- func ProductVisibilityGVK() apiv1.GroupVersionKind
- func PublishedProductGVK() apiv1.GroupVersionKind
- func QuotaGVK() apiv1.GroupVersionKind
- func ReleaseTagGVK() apiv1.GroupVersionKind
- func ResourceGVK() apiv1.GroupVersionKind
- func SecretGVK() apiv1.GroupVersionKind
- func StageGVK() apiv1.GroupVersionKind
- func SubscriptionGVK() apiv1.GroupVersionKind
- func WebhookGVK() apiv1.GroupVersionKind
- 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 AccessControlListSpecRules
- type AccessControlListSpecSubjects
- type AccessLevelScope
- type AccessRules
- type Application
- type ApplicationMarketplace
- type ApplicationMarketplaceResource
- type ApplicationMarketplaceResourceMetadata
- type ApplicationMarketplaceResourceOwner
- type ApplicationMarketplaceResourceOwnerOrganization
- type ApplicationSpec
- type ApplicationSpecSecurity
- type Asset
- 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 AssetReferencesApiServiceRef
- type AssetReferencesAssetMappingRef
- type AssetReferencesAssetMappingTemplateRef
- type AssetReferencesEnvironmentRef
- type AssetReferencesStageRef
- type AssetRelease
- func (res *AssetRelease) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AssetRelease) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AssetRelease) MarshalJSON() ([]byte, error)
- func (res *AssetRelease) PluralName() string
- func (res *AssetRelease) UnmarshalJSON(data []byte) error
- type AssetReleaseReferencesApiServiceRef
- type AssetReleaseReferencesAssetMappingTemplateRef
- type AssetReleaseReferencesEnvironmentRef
- type AssetReleaseReferencesReleaseTagRef
- type AssetReleaseReferencesStageRef
- type AssetReleaseSpec
- type AssetReleaseStatus
- type AssetReleaseStatusMeta
- type AssetReleaseStatusReasons
- type AssetRequest
- func (res *AssetRequest) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AssetRequest) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AssetRequest) MarshalJSON() ([]byte, error)
- func (res *AssetRequest) PluralName() string
- func (res *AssetRequest) UnmarshalJSON(data []byte) error
- type AssetRequestApproval
- type AssetRequestApprovalState
- type AssetRequestDefinition
- func (res *AssetRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AssetRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AssetRequestDefinition) MarshalJSON() ([]byte, error)
- func (res *AssetRequestDefinition) PluralName() string
- func (res *AssetRequestDefinition) UnmarshalJSON(data []byte) error
- type AssetRequestDefinitionAuthorization
- type AssetRequestDefinitionSpec
- type AssetRequestDefinitionSpecProvision
- type AssetRequestReferences
- type AssetRequestSpec
- type AssetRequestStatus
- type AssetRequestStatusReasons
- type AssetResource
- func (res *AssetResource) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AssetResource) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AssetResource) MarshalJSON() ([]byte, error)
- func (res *AssetResource) PluralName() string
- func (res *AssetResource) UnmarshalJSON(data []byte) error
- type AssetResourceReferences
- type AssetResourceSpec
- type AssetResourceSpecAccessInfo
- type AssetSpec
- type AssetState
- type AssetStatus
- type AssetStatusMeta
- type AssetStatusReasons
- type AuthorizationProfile
- func (res *AuthorizationProfile) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *AuthorizationProfile) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *AuthorizationProfile) MarshalJSON() ([]byte, error)
- func (res *AuthorizationProfile) PluralName() string
- func (res *AuthorizationProfile) UnmarshalJSON(data []byte) error
- type AuthorizationProfileReferences
- type AuthorizationProfileSpec
- type Category
- type CategorySpec
- type Credential
- 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 CredentialSpec
- type CredentialStatus
- type CredentialStatusReasons
- type Document
- type DocumentSpec
- type DocumentSpecAssetResourceRef
- type DocumentSpecResourceRef
- type DocumentSpecSections
- type DocumentStatus
- type DocumentStatusError
- type DocumentStatusSuccess
- type Marketplace
- type MarketplaceSpec
- type Product
- type ProductOverview
- func (res *ProductOverview) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ProductOverview) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ProductOverview) MarshalJSON() ([]byte, error)
- func (res *ProductOverview) PluralName() string
- func (res *ProductOverview) UnmarshalJSON(data []byte) error
- type ProductOverviewSpec
- type ProductOverviewSpecDocuments
- type ProductPlan
- type ProductPlanReferences
- type ProductPlanReferencesProduct
- type ProductPlanSpec
- type ProductPlanSpecBilling
- type ProductPlanSpecFeatures
- type ProductPlanSpecSubscription
- type ProductPlanSpecSubscriptionInterval
- type ProductPlanState
- type ProductPlanStatus
- type ProductPlanStatusReasons
- type ProductPlanUnit
- func (res *ProductPlanUnit) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ProductPlanUnit) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ProductPlanUnit) MarshalJSON() ([]byte, error)
- func (res *ProductPlanUnit) PluralName() string
- func (res *ProductPlanUnit) UnmarshalJSON(data []byte) error
- type ProductPlanUnitSpec
- type ProductReferences
- type ProductReferencesAssets
- type ProductReferencesRelease
- type ProductRelease
- func (res *ProductRelease) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ProductRelease) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ProductRelease) MarshalJSON() ([]byte, error)
- func (res *ProductRelease) PluralName() string
- func (res *ProductRelease) UnmarshalJSON(data []byte) error
- type ProductReleaseSpec
- type ProductReleaseSpecAssets
- type ProductReleaseSpecRelease
- type ProductReleaseStatus
- type ProductReleaseStatusError
- type ProductReleaseStatusPending
- type ProductReleaseStatusSuccess
- type ProductSpec
- type ProductSpecAssets
- type ProductSpecFilters
- type ProductState
- type ProductVisibility
- func (res *ProductVisibility) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *ProductVisibility) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *ProductVisibility) MarshalJSON() ([]byte, error)
- func (res *ProductVisibility) PluralName() string
- func (res *ProductVisibility) UnmarshalJSON(data []byte) error
- type ProductVisibilitySpec
- type ProductVisibilitySpecProducts
- type ProductVisibilitySpecSubjects
- type PublishedProduct
- func (res *PublishedProduct) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *PublishedProduct) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *PublishedProduct) MarshalJSON() ([]byte, error)
- func (res *PublishedProduct) PluralName() string
- func (res *PublishedProduct) UnmarshalJSON(data []byte) error
- type PublishedProductReferences
- type PublishedProductReferencesRelease
- type PublishedProductSpec
- type PublishedProductSpecProduct
- type Quota
- type QuotaSpec
- type QuotaSpecAssetResourceRef
- type QuotaSpecFixedPricingType
- type QuotaSpecLimitTypeLoose
- type QuotaSpecLimitTypeLooseOverages
- type QuotaSpecLimitTypeStrict
- type QuotaSpecUnlimitedPricingType
- type QuotaStatus
- type QuotaStatusError
- type QuotaStatusPending
- type QuotaStatusSuccess
- type ReleaseTag
- type ReleaseTagSpec
- type ReleaseTagStatus
- type ReleaseTagStatusError
- type ReleaseTagStatusPending
- type ReleaseTagStatusReference
- type ReleaseTagStatusSuccess
- type ReleaseTagStatusSuccessMeta
- type Resource
- type ResourceSpec
- type ResourceSpecBinaryData
- type ResourceSpecTextData
- type Secret
- type SecretSpec
- type Stage
- type StageSpec
- type Subscription
- func (res *Subscription) AsInstance() (*apiv1.ResourceInstance, error)
- func (res *Subscription) FromInstance(ri *apiv1.ResourceInstance) error
- func (res *Subscription) MarshalJSON() ([]byte, error)
- func (res *Subscription) PluralName() string
- func (res *Subscription) UnmarshalJSON(data []byte) error
- type SubscriptionApproval
- type SubscriptionMarketplace
- type SubscriptionMarketplaceResource
- type SubscriptionMarketplaceResourceMetadata
- type SubscriptionMarketplaceResourceOwner
- type SubscriptionMarketplaceResourceOwnerOrganization
- type SubscriptionSpec
- type SubscriptionSpecPlan
- type SubscriptionStatus
- type SubscriptionStatusReasons
- type Webhook
- type WebhookSpec
- type WebhookSpecAuth
- type WebhookSpecAuthSecret
Constants ¶
const AccessControlListResourceName = "accesscontrollists"
const ApplicationResourceName = "applications"
const AssetMappingResourceName = "assetmappings"
const AssetReleaseResourceName = "assetreleases"
const AssetRequestDefinitionResourceName = "assetrequestdefinitions"
const AssetRequestResourceName = "assetrequests"
const AssetResourceName = "assets"
const AssetResourceResourceName = "assetresources"
const AuthorizationProfileResourceName = "authprofiles"
const CategoryResourceName = "categories"
const CredentialRequestDefinitionResourceName = "credentialrequestdefinitions"
const CredentialResourceName = "credentials"
const DocumentResourceName = "documents"
const MarketplaceResourceName = "marketplaces"
const ProductOverviewResourceName = "productoverviews"
const ProductPlanResourceName = "productplans"
const ProductPlanUnitResourceName = "productplanunits"
const ProductReleaseResourceName = "productreleases"
const ProductResourceName = "products"
const ProductVisibilityResourceName = "productvisibility"
const PublishedProductResourceName = "publishedproducts"
const QuotaResourceName = "quotas"
const ReleaseTagResourceName = "releasetags"
const ResourceResourceName = "resources"
const SecretResourceName = "secrets"
const StageResourceName = "stages"
const SubscriptionResourceName = "subscriptions"
const WebhookResourceName = "webhooks"
Variables ¶
var (
AccessControlListScopes = []string{"Application", "Asset", "AssetRelease", "AuthorizationProfile", "Category", "Marketplace", "Product", "ProductPlan", "ProductPlanUnit", "ProductRelease", "Stage", "Subscription"}
)
var (
ApplicationScopes = []string{""}
)
var (
AssetMappingScopes = []string{"Asset"}
)
var (
AssetReleaseScopes = []string{""}
)
var (
AssetRequestDefinitionScopes = []string{"AuthorizationProfile"}
)
var (
AssetRequestScopes = []string{"Application"}
)
var (
AssetResourceScopes = []string{"Asset", "AssetRelease"}
)
var (
AssetScopes = []string{""}
)
var (
AuthorizationProfileScopes = []string{""}
)
var (
CategoryScopes = []string{""}
)
var (
CredentialRequestDefinitionScopes = []string{"AuthorizationProfile"}
)
var (
CredentialScopes = []string{"Application"}
)
var (
DocumentScopes = []string{"Product", "ProductRelease"}
)
var (
MarketplaceScopes = []string{""}
)
var (
ProductOverviewScopes = []string{"Product", "ProductRelease"}
)
var (
ProductPlanScopes = []string{""}
)
var (
ProductPlanUnitScopes = []string{""}
)
var (
ProductReleaseScopes = []string{""}
)
var (
ProductScopes = []string{""}
)
var (
ProductVisibilityScopes = []string{"Marketplace"}
)
var (
PublishedProductScopes = []string{"Marketplace"}
)
var (
QuotaScopes = []string{"ProductPlan"}
)
var (
ReleaseTagScopes = []string{"Asset", "Product"}
)
var (
ResourceScopes = []string{"Product", "ProductRelease"}
)
var (
SecretScopes = []string{"AuthorizationProfile"}
)
var (
StageScopes = []string{""}
)
var (
SubscriptionScopes = []string{""}
)
var (
WebhookScopes = []string{"AuthorizationProfile"}
)
Functions ¶
func AccessControlListGVK ¶
func AccessControlListGVK() apiv1.GroupVersionKind
func ApplicationGVK ¶
func ApplicationGVK() apiv1.GroupVersionKind
func AssetGVK ¶
func AssetGVK() apiv1.GroupVersionKind
func AssetMappingGVK ¶
func AssetMappingGVK() apiv1.GroupVersionKind
func AssetReleaseGVK ¶
func AssetReleaseGVK() apiv1.GroupVersionKind
func AssetRequestDefinitionGVK ¶
func AssetRequestDefinitionGVK() apiv1.GroupVersionKind
func AssetRequestGVK ¶
func AssetRequestGVK() apiv1.GroupVersionKind
func AssetResourceGVK ¶
func AssetResourceGVK() apiv1.GroupVersionKind
func AuthorizationProfileGVK ¶
func AuthorizationProfileGVK() apiv1.GroupVersionKind
func CategoryGVK ¶
func CategoryGVK() apiv1.GroupVersionKind
func CredentialGVK ¶
func CredentialGVK() apiv1.GroupVersionKind
func CredentialRequestDefinitionGVK ¶
func CredentialRequestDefinitionGVK() apiv1.GroupVersionKind
func DocumentGVK ¶
func DocumentGVK() apiv1.GroupVersionKind
func MarketplaceGVK ¶
func MarketplaceGVK() apiv1.GroupVersionKind
func ProductGVK ¶
func ProductGVK() apiv1.GroupVersionKind
func ProductOverviewGVK ¶
func ProductOverviewGVK() apiv1.GroupVersionKind
func ProductPlanGVK ¶
func ProductPlanGVK() apiv1.GroupVersionKind
func ProductPlanUnitGVK ¶
func ProductPlanUnitGVK() apiv1.GroupVersionKind
func ProductReleaseGVK ¶
func ProductReleaseGVK() apiv1.GroupVersionKind
func ProductVisibilityGVK ¶
func ProductVisibilityGVK() apiv1.GroupVersionKind
func PublishedProductGVK ¶
func PublishedProductGVK() apiv1.GroupVersionKind
func QuotaGVK ¶
func QuotaGVK() apiv1.GroupVersionKind
func ReleaseTagGVK ¶
func ReleaseTagGVK() apiv1.GroupVersionKind
func ResourceGVK ¶
func ResourceGVK() apiv1.GroupVersionKind
func SecretGVK ¶
func SecretGVK() apiv1.GroupVersionKind
func StageGVK ¶
func StageGVK() apiv1.GroupVersionKind
func SubscriptionGVK ¶
func SubscriptionGVK() apiv1.GroupVersionKind
func WebhookGVK ¶
func WebhookGVK() apiv1.GroupVersionKind
Types ¶
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"` }
AccessControlListSpecAccessLevelScope struct for AccessControlListSpecAccessLevelScope
type AccessControlListSpecRules ¶
type AccessControlListSpecRules struct {
// GENERATE: The following code has been modified after code generation
Access []interface{} `json:"access,omitempty"`
}
AccessControlListSpecRules (catalog.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 (catalog.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 AccessRules ¶
type AccessRules struct { // Resource level at which access is being granted. Access []AccessLevelScope `json:"access,omitempty"` }
AccessRules struct for AccessRules
type Application ¶
type Application struct { apiv1.ResourceMeta Marketplace ApplicationMarketplace `json:"marketplace"` Owner *apiv1.Owner `json:"owner"` Spec ApplicationSpec `json:"spec"` }
Application Resource
func ApplicationFromInstanceArray ¶
func ApplicationFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Application, error)
ApplicationFromInstanceArray converts a []*ResourceInstance to a []*Application
func NewApplication ¶
func NewApplication(name string) *Application
NewApplication creates an empty *Application
func (*Application) AsInstance ¶
func (res *Application) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Application to a ResourceInstance
func (*Application) FromInstance ¶
func (res *Application) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Application
func (*Application) MarshalJSON ¶
func (res *Application) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*Application) PluralName ¶
func (res *Application) PluralName() string
PluralName returns the plural name of the resource
func (*Application) UnmarshalJSON ¶
func (res *Application) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ApplicationMarketplace ¶
type ApplicationMarketplace struct { // The name of the Marketplace. Name string `json:"name"` Resource ApplicationMarketplaceResource `json:"resource"` }
ApplicationMarketplace Details about the marketplace Application. (catalog.v1alpha1.Application)
type ApplicationMarketplaceResource ¶
type ApplicationMarketplaceResource struct { Metadata ApplicationMarketplaceResourceMetadata `json:"metadata"` Owner ApplicationMarketplaceResourceOwner `json:"owner,omitempty"` }
ApplicationMarketplaceResource The Marketplace Application resource details. (catalog.v1alpha1.Application)
type ApplicationMarketplaceResourceMetadata ¶
type ApplicationMarketplaceResourceMetadata 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"` }
ApplicationMarketplaceResourceMetadata Marketplace Application metadata. (catalog.v1alpha1.Application)
type ApplicationMarketplaceResourceOwner ¶
type ApplicationMarketplaceResourceOwner struct { // The type of the owner. Type string `json:"type,omitempty"` // Id of the owner of the resource. Id string `json:"id,omitempty"` Organization ApplicationMarketplaceResourceOwnerOrganization `json:"organization"` }
ApplicationMarketplaceResourceOwner Owner of the Application. (catalog.v1alpha1.Application)
type ApplicationMarketplaceResourceOwnerOrganization ¶
type ApplicationMarketplaceResourceOwnerOrganization struct { // Id of the organization. Id string `json:"id"` }
ApplicationMarketplaceResourceOwnerOrganization Organization details. (catalog.v1alpha1.Application)
type ApplicationSpec ¶
type ApplicationSpec struct {
Security ApplicationSpecSecurity `json:"security"`
}
ApplicationSpec (catalog.v1alpha1.Application)
type ApplicationSpecSecurity ¶
type ApplicationSpecSecurity struct { // public key to be used to encrypt the credentials linked to this Application. EncryptionKey string `json:"encryptionKey"` EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"` EncryptionHash string `json:"encryptionHash,omitempty"` }
ApplicationSpecSecurity (catalog.v1alpha1.Application)
type Asset ¶
type Asset struct { apiv1.ResourceMeta Icon interface{} `json:"icon"` Owner *apiv1.Owner `json:"owner"` References interface{} `json:"references"` Spec AssetSpec `json:"spec"` State AssetState `json:"state"` // Status AssetStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
Asset Resource
func AssetFromInstanceArray ¶
func AssetFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Asset, error)
AssetFromInstanceArray converts a []*ResourceInstance to a []*Asset
func (*Asset) AsInstance ¶
func (res *Asset) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Asset to a ResourceInstance
func (*Asset) FromInstance ¶
func (res *Asset) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Asset
func (*Asset) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Asset) PluralName ¶
PluralName returns the plural name of the resource
func (*Asset) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
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 (catalog.v1alpha1.AssetMapping)
type AssetMappingSpecInputs ¶
type AssetMappingSpecInputs struct { ApiService string `json:"apiService"` ApiServiceRevision string `json:"apiServiceRevision"` 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"` }
AssetMappingSpecInputs The list of the inputs provided to the template. (catalog.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 (catalog.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 (catalog.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. (catalog.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 (catalog.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 (catalog.v1alpha1.AssetMapping)
type AssetMappingStatusSource ¶
type AssetMappingStatusSource struct {
Resource AssetMappingStatusSourceResource `json:"resource,omitempty"`
}
AssetMappingStatusSource (catalog.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. (catalog.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 (catalog.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 (catalog.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 (catalog.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 (catalog.v1alpha1.AssetMapping)
type AssetReferencesApiServiceRef ¶
type AssetReferencesApiServiceRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReferencesApiServiceRef struct for AssetReferencesApiServiceRef
type AssetReferencesAssetMappingRef ¶
type AssetReferencesAssetMappingRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReferencesAssetMappingRef struct for AssetReferencesAssetMappingRef
type AssetReferencesAssetMappingTemplateRef ¶
type AssetReferencesAssetMappingTemplateRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReferencesAssetMappingTemplateRef struct for AssetReferencesAssetMappingTemplateRef
type AssetReferencesEnvironmentRef ¶
type AssetReferencesEnvironmentRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReferencesEnvironmentRef struct for AssetReferencesEnvironmentRef
type AssetReferencesStageRef ¶
type AssetReferencesStageRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReferencesStageRef struct for AssetReferencesStageRef
type AssetRelease ¶
type AssetRelease struct { apiv1.ResourceMeta Icon interface{} `json:"icon"` Owner *apiv1.Owner `json:"owner"` References interface{} `json:"references"` Spec AssetReleaseSpec `json:"spec"` // Status AssetReleaseStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
AssetRelease Resource
func AssetReleaseFromInstanceArray ¶
func AssetReleaseFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetRelease, error)
AssetReleaseFromInstanceArray converts a []*ResourceInstance to a []*AssetRelease
func NewAssetRelease ¶
func NewAssetRelease(name string) *AssetRelease
NewAssetRelease creates an empty *AssetRelease
func (*AssetRelease) AsInstance ¶
func (res *AssetRelease) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AssetRelease to a ResourceInstance
func (*AssetRelease) FromInstance ¶
func (res *AssetRelease) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AssetRelease
func (*AssetRelease) MarshalJSON ¶
func (res *AssetRelease) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AssetRelease) PluralName ¶
func (res *AssetRelease) PluralName() string
PluralName returns the plural name of the resource
func (*AssetRelease) UnmarshalJSON ¶
func (res *AssetRelease) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AssetReleaseReferencesApiServiceRef ¶
type AssetReleaseReferencesApiServiceRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReleaseReferencesApiServiceRef struct for AssetReleaseReferencesApiServiceRef
type AssetReleaseReferencesAssetMappingTemplateRef ¶
type AssetReleaseReferencesAssetMappingTemplateRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReleaseReferencesAssetMappingTemplateRef struct for AssetReleaseReferencesAssetMappingTemplateRef
type AssetReleaseReferencesEnvironmentRef ¶
type AssetReleaseReferencesEnvironmentRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReleaseReferencesEnvironmentRef struct for AssetReleaseReferencesEnvironmentRef
type AssetReleaseReferencesReleaseTagRef ¶
type AssetReleaseReferencesReleaseTagRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReleaseReferencesReleaseTagRef struct for AssetReleaseReferencesReleaseTagRef
type AssetReleaseReferencesStageRef ¶
type AssetReleaseReferencesStageRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
AssetReleaseReferencesStageRef struct for AssetReleaseReferencesStageRef
type AssetReleaseSpec ¶
type AssetReleaseSpec struct { // Description of the asset release. Description string `json:"description,omitempty"` Type string `json:"type"` // version of the asset release. Version string `json:"version"` Asset string `json:"asset"` State string `json:"state,omitempty"` // list of categories for the released asset. Categories []string `json:"categories,omitempty"` }
AssetReleaseSpec (catalog.v1alpha1.AssetRelease)
type AssetReleaseStatus ¶
type AssetReleaseStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. Reasons []AssetReleaseStatusReasons `json:"reasons,omitempty"` }
AssetReleaseStatus (catalog.v1alpha1.AssetRelease)
type AssetReleaseStatusMeta ¶
type AssetReleaseStatusMeta struct {
AssetResource string `json:"assetResource,omitempty"`
}
AssetReleaseStatusMeta (catalog.v1alpha1.AssetRelease)
type AssetReleaseStatusReasons ¶
type AssetReleaseStatusReasons struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` Meta AssetReleaseStatusMeta `json:"meta,omitempty"` }
AssetReleaseStatusReasons (catalog.v1alpha1.AssetRelease)
type AssetRequest ¶
type AssetRequest struct { apiv1.ResourceMeta Approval AssetRequestApproval `json:"approval"` Data interface{} `json:"data"` Owner *apiv1.Owner `json:"owner"` References AssetRequestReferences `json:"references"` Spec AssetRequestSpec `json:"spec"` // Status AssetRequestStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
AssetRequest Resource
func AssetRequestFromInstanceArray ¶
func AssetRequestFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetRequest, error)
AssetRequestFromInstanceArray converts a []*ResourceInstance to a []*AssetRequest
func NewAssetRequest ¶
func NewAssetRequest(name, scopeName string) *AssetRequest
NewAssetRequest creates an empty *AssetRequest
func (*AssetRequest) AsInstance ¶
func (res *AssetRequest) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AssetRequest to a ResourceInstance
func (*AssetRequest) FromInstance ¶
func (res *AssetRequest) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AssetRequest
func (*AssetRequest) MarshalJSON ¶
func (res *AssetRequest) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AssetRequest) PluralName ¶
func (res *AssetRequest) PluralName() string
PluralName returns the plural name of the resource
func (*AssetRequest) UnmarshalJSON ¶
func (res *AssetRequest) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AssetRequestApproval ¶
type AssetRequestApproval struct {
State AssetRequestApprovalState `json:"state"`
}
AssetRequestApproval (catalog.v1alpha1.AssetRequest)
type AssetRequestApprovalState ¶
type AssetRequestApprovalState struct { Name string `json:"name"` // Additional info on the state. Reason string `json:"reason,omitempty"` }
AssetRequestApprovalState (catalog.v1alpha1.AssetRequest)
type AssetRequestDefinition ¶
type AssetRequestDefinition struct { apiv1.ResourceMeta Authorization AssetRequestDefinitionAuthorization `json:"authorization"` Owner *apiv1.Owner `json:"owner"` References interface{} `json:"references"` Spec AssetRequestDefinitionSpec `json:"spec"` Webhooks interface{} `json:"webhooks"` }
AssetRequestDefinition Resource
func AssetRequestDefinitionFromInstanceArray ¶
func AssetRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetRequestDefinition, error)
AssetRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*AssetRequestDefinition
func NewAssetRequestDefinition ¶
func NewAssetRequestDefinition(name, scopeName string) *AssetRequestDefinition
NewAssetRequestDefinition creates an empty *AssetRequestDefinition
func (*AssetRequestDefinition) AsInstance ¶
func (res *AssetRequestDefinition) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AssetRequestDefinition to a ResourceInstance
func (*AssetRequestDefinition) FromInstance ¶
func (res *AssetRequestDefinition) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AssetRequestDefinition
func (*AssetRequestDefinition) MarshalJSON ¶
func (res *AssetRequestDefinition) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AssetRequestDefinition) PluralName ¶
func (res *AssetRequestDefinition) PluralName() string
PluralName returns the plural name of the resource
func (*AssetRequestDefinition) UnmarshalJSON ¶
func (res *AssetRequestDefinition) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AssetRequestDefinitionAuthorization ¶
type AssetRequestDefinitionAuthorization struct {
Approval string `json:"approval"`
}
AssetRequestDefinitionAuthorization (catalog.v1alpha1.AssetRequestDefinition)
type AssetRequestDefinitionSpec ¶
type AssetRequestDefinitionSpec struct { // JSON Schema draft \\#7 for defining the AssetRequest properties needed to get access to an APIServiceInstance. (catalog.v1alpha1.AssetRequestDefinition) Schema map[string]interface{} `json:"schema"` Provision AssetRequestDefinitionSpecProvision `json:"provision,omitempty"` }
AssetRequestDefinitionSpec (catalog.v1alpha1.AssetRequestDefinition)
type AssetRequestDefinitionSpecProvision ¶
type AssetRequestDefinitionSpecProvision struct { // JSON Schema draft \\#7 for describing the data to be sent back after access has been provisioned. (catalog.v1alpha1.AssetRequestDefinition) Schema map[string]interface{} `json:"schema"` }
AssetRequestDefinitionSpecProvision (catalog.v1alpha1.AssetRequestDefinition)
type AssetRequestReferences ¶
type AssetRequestReferences struct { AssetRequestDefinition string `json:"assetRequestDefinition,omitempty"` // Reference to Release that got created from this asset request. AssetRelease string `json:"assetRelease,omitempty"` // Reference to Release that got created from this asset request. Asset string `json:"asset,omitempty"` // Reference to Access Request resource AccessRequest string `json:"accessRequest,omitempty"` }
AssetRequestReferences (catalog.v1alpha1.AssetRequest)
type AssetRequestSpec ¶
type AssetRequestSpec struct { // (catalog.v1alpha1.AssetRequest) Data map[string]interface{} `json:"data"` AssetResource string `json:"assetResource"` // reference to the Subscription to be used to access the Asset Resource. Subscription string `json:"subscription,omitempty"` }
AssetRequestSpec (catalog.v1alpha1.AssetRequest)
type AssetRequestStatus ¶
type AssetRequestStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. Reasons []AssetRequestStatusReasons `json:"reasons,omitempty"` }
AssetRequestStatus (catalog.v1alpha1.AssetRequest)
type AssetRequestStatusReasons ¶
type AssetRequestStatusReasons struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` // (catalog.v1alpha1.AssetRequest) Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
AssetRequestStatusReasons (catalog.v1alpha1.AssetRequest)
type AssetResource ¶
type AssetResource struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` References AssetResourceReferences `json:"references"` Spec AssetResourceSpec `json:"spec"` }
AssetResource Resource
func AssetResourceFromInstanceArray ¶
func AssetResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetResource, error)
AssetResourceFromInstanceArray converts a []*ResourceInstance to a []*AssetResource
func NewAssetResource ¶
func NewAssetResource(name, scopeKind, scopeName string) (*AssetResource, error)
NewAssetResource creates an empty *AssetResource
func (*AssetResource) AsInstance ¶
func (res *AssetResource) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AssetResource to a ResourceInstance
func (*AssetResource) FromInstance ¶
func (res *AssetResource) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AssetResource
func (*AssetResource) MarshalJSON ¶
func (res *AssetResource) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AssetResource) PluralName ¶
func (res *AssetResource) PluralName() string
PluralName returns the plural name of the resource
func (*AssetResource) UnmarshalJSON ¶
func (res *AssetResource) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AssetResourceReferences ¶
type AssetResourceReferences struct { // Reference to API Service Revision resource ApiServiceRevision string `json:"apiServiceRevision,omitempty"` // Reference to API Service Instance resource ApiServiceInstance string `json:"apiServiceInstance,omitempty"` }
AssetResourceReferences (catalog.v1alpha1.AssetResource)
type AssetResourceSpec ¶
type AssetResourceSpec struct { // The Stage this Asset Resource is deployed on. Stage string `json:"stage,omitempty"` AssetRequestDefinition string `json:"assetRequestDefinition,omitempty"` CredentialRequestDefinitions []string `json:"credentialRequestDefinitions,omitempty"` Type string `json:"type"` // content-type of the spec. ContentType string `json:"contentType,omitempty"` // Base64 encoded value of the api specification. Definition string `json:"definition"` // Resource availabiltiy Status string `json:"status"` // information to access the definition. AccessInfo []AssetResourceSpecAccessInfo `json:"accessInfo,omitempty"` }
AssetResourceSpec (catalog.v1alpha1.AssetResource)
type AssetResourceSpecAccessInfo ¶
type AssetResourceSpecAccessInfo struct { // url where the definition can be accessed. Url string `json:"url,omitempty"` // description of the access information. Description string `json:"description,omitempty"` }
AssetResourceSpecAccessInfo (catalog.v1alpha1.AssetResource)
type AssetSpec ¶
type AssetSpec struct { // description of the asset. Description string `json:"description,omitempty"` Type string `json:"type"` // list of categories for the asset. Categories []string `json:"categories,omitempty"` }
AssetSpec (catalog.v1alpha1.Asset)
type AssetState ¶
type AssetState string
AssetState the model 'AssetState'
const ( // GENERATE: The following code has been modified after code generation AssetStateDRAFT AssetState = "draft" // GENERATE: The following code has been modified after code generation AssetStateACTIVE AssetState = "active" // GENERATE: The following code has been modified after code generation AssetStateDEPRECATED AssetState = "deprecated" // GENERATE: The following code has been modified after code generation AssetStateARCHIVED AssetState = "archived" )
List of AssetState
type AssetStatus ¶
type AssetStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. Reasons []AssetStatusReasons `json:"reasons,omitempty"` }
AssetStatus (catalog.v1alpha1.Asset)
type AssetStatusMeta ¶
type AssetStatusMeta struct {
AssetResource string `json:"assetResource,omitempty"`
}
AssetStatusMeta (catalog.v1alpha1.Asset)
type AssetStatusReasons ¶
type AssetStatusReasons struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` Meta AssetStatusMeta `json:"meta,omitempty"` }
AssetStatusReasons (catalog.v1alpha1.Asset)
type AuthorizationProfile ¶
type AuthorizationProfile struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` References AuthorizationProfileReferences `json:"references"` Spec AuthorizationProfileSpec `json:"spec"` }
AuthorizationProfile Resource
func AuthorizationProfileFromInstanceArray ¶
func AuthorizationProfileFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AuthorizationProfile, error)
AuthorizationProfileFromInstanceArray converts a []*ResourceInstance to a []*AuthorizationProfile
func NewAuthorizationProfile ¶
func NewAuthorizationProfile(name string) *AuthorizationProfile
NewAuthorizationProfile creates an empty *AuthorizationProfile
func (*AuthorizationProfile) AsInstance ¶
func (res *AuthorizationProfile) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a AuthorizationProfile to a ResourceInstance
func (*AuthorizationProfile) FromInstance ¶
func (res *AuthorizationProfile) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a AuthorizationProfile
func (*AuthorizationProfile) MarshalJSON ¶
func (res *AuthorizationProfile) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*AuthorizationProfile) PluralName ¶
func (res *AuthorizationProfile) PluralName() string
PluralName returns the plural name of the resource
func (*AuthorizationProfile) UnmarshalJSON ¶
func (res *AuthorizationProfile) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type AuthorizationProfileReferences ¶
type AuthorizationProfileReferences struct {
Environment string `json:"environment,omitempty"`
}
AuthorizationProfileReferences (catalog.v1alpha1.AuthorizationProfile)
type AuthorizationProfileSpec ¶
type AuthorizationProfileSpec struct { // Description of AuthorizationProfile that can be used to access Asset. Description string `json:"description,omitempty"` }
AuthorizationProfileSpec (catalog.v1alpha1.AuthorizationProfile)
type Category ¶
type Category struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec CategorySpec `json:"spec"` }
Category Resource
func CategoryFromInstanceArray ¶
func CategoryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Category, error)
CategoryFromInstanceArray converts a []*ResourceInstance to a []*Category
func (*Category) AsInstance ¶
func (res *Category) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Category to a ResourceInstance
func (*Category) FromInstance ¶
func (res *Category) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Category
func (*Category) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Category) PluralName ¶
PluralName returns the plural name of the resource
func (*Category) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type CategorySpec ¶
type CategorySpec struct { // Markdown representing the category description. Description string `json:"description,omitempty"` }
CategorySpec (catalog.v1alpha1.Category)
type Credential ¶
type Credential struct { apiv1.ResourceMeta Data interface{} `json:"data"` Owner *apiv1.Owner `json:"owner"` References CredentialReferences `json:"references"` Spec CredentialSpec `json:"spec"` // 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 CredentialReferences ¶
type CredentialReferences struct { // Reference to the Credential for managed app that got created from this catalog credential. Credential string `json:"credential,omitempty"` }
CredentialReferences (catalog.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 (catalog.v1alpha1.CredentialRequestDefinition)
type CredentialRequestDefinitionSpec ¶
type CredentialRequestDefinitionSpec struct { // JSON Schema draft \\#7 for describing the fields needed to provision Credentials of that type. (catalog.v1alpha1.CredentialRequestDefinition) Schema map[string]interface{} `json:"schema"` Provision CredentialRequestDefinitionSpecProvision `json:"provision"` }
CredentialRequestDefinitionSpec (catalog.v1alpha1.CredentialRequestDefinition)
type CredentialRequestDefinitionSpecProvision ¶
type CredentialRequestDefinitionSpecProvision struct { // JSON Schema draft \\#7 for describing the generated credentials format. (catalog.v1alpha1.CredentialRequestDefinition) Schema map[string]interface{} `json:"schema"` }
CredentialRequestDefinitionSpecProvision (catalog.v1alpha1.CredentialRequestDefinition)
type CredentialSpec ¶
type CredentialSpec struct { // Reference to Credential Request Definition resource CredentialRequestDefinition string `json:"credentialRequestDefinition"` // data matching the credential request definition schema. (catalog.v1alpha1.Credential) Data map[string]interface{} `json:"data"` }
CredentialSpec (catalog.v1alpha1.Credential)
type CredentialStatus ¶
type CredentialStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated credential status. Reasons []CredentialStatusReasons `json:"reasons,omitempty"` }
CredentialStatus (catalog.v1alpha1.Credential)
type CredentialStatusReasons ¶
type CredentialStatusReasons struct { // type of the reason. Type string `json:"type"` // Details of the type. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` // (catalog.v1alpha1.Credential) Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
CredentialStatusReasons (catalog.v1alpha1.Credential)
type Document ¶
type Document struct { apiv1.ResourceMeta Icon interface{} `json:"icon"` Owner *apiv1.Owner `json:"owner"` Spec DocumentSpec `json:"spec"` // Status DocumentStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
Document Resource
func DocumentFromInstanceArray ¶
func DocumentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Document, error)
DocumentFromInstanceArray converts a []*ResourceInstance to a []*Document
func NewDocument ¶
NewDocument creates an empty *Document
func (*Document) AsInstance ¶
func (res *Document) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Document to a ResourceInstance
func (*Document) FromInstance ¶
func (res *Document) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Document
func (*Document) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Document) PluralName ¶
PluralName returns the plural name of the resource
func (*Document) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type DocumentSpec ¶
type DocumentSpec struct { // Document description. Description string `json:"description,omitempty"` // Rank of document. // GENERATE: The following code has been modified after code generation Rank float64 `json:"rank,omitempty"` Sections []DocumentSpecSections `json:"sections,omitempty"` }
DocumentSpec (catalog.v1alpha1.Document)
type DocumentSpecAssetResourceRef ¶
type DocumentSpecAssetResourceRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` // Title for the article. Title string `json:"title"` }
DocumentSpecAssetResourceRef struct for DocumentSpecAssetResourceRef
type DocumentSpecResourceRef ¶
type DocumentSpecResourceRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` // Title for the article. Title string `json:"title"` }
DocumentSpecResourceRef struct for DocumentSpecResourceRef
type DocumentSpecSections ¶
type DocumentSpecSections struct { // Title for the section. Title string `json:"title"` // Description for the section. Description string `json:"description,omitempty"` // Section articles. // GENERATE: The following code has been modified after code generation Articles []interface{} `json:"articles,omitempty"` }
DocumentSpecSections (catalog.v1alpha1.Document)
type DocumentStatus ¶
type DocumentStatus 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"` }
DocumentStatus (catalog.v1alpha1.Document)
type DocumentStatusError ¶
type DocumentStatusError 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"` }
DocumentStatusError struct for DocumentStatusError
type DocumentStatusSuccess ¶
type DocumentStatusSuccess 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"` }
DocumentStatusSuccess struct for DocumentStatusSuccess
type Marketplace ¶
type Marketplace struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec MarketplaceSpec `json:"spec"` }
Marketplace Resource
func MarketplaceFromInstanceArray ¶
func MarketplaceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Marketplace, error)
MarketplaceFromInstanceArray converts a []*ResourceInstance to a []*Marketplace
func NewMarketplace ¶
func NewMarketplace(name string) *Marketplace
NewMarketplace creates an empty *Marketplace
func (*Marketplace) AsInstance ¶
func (res *Marketplace) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Marketplace to a ResourceInstance
func (*Marketplace) FromInstance ¶
func (res *Marketplace) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Marketplace
func (*Marketplace) MarshalJSON ¶
func (res *Marketplace) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*Marketplace) PluralName ¶
func (res *Marketplace) PluralName() string
PluralName returns the plural name of the resource
func (*Marketplace) UnmarshalJSON ¶
func (res *Marketplace) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type MarketplaceSpec ¶
type MarketplaceSpec struct { // description of the Marketplace. Description string `json:"description,omitempty"` }
MarketplaceSpec (catalog.v1alpha1.Marketplace)
type Product ¶
type Product struct { apiv1.ResourceMeta Icon interface{} `json:"icon"` Owner *apiv1.Owner `json:"owner"` References ProductReferences `json:"references"` Spec ProductSpec `json:"spec"` State ProductState `json:"state"` }
Product Resource
func ProductFromInstanceArray ¶
func ProductFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Product, error)
ProductFromInstanceArray converts a []*ResourceInstance to a []*Product
func (*Product) AsInstance ¶
func (res *Product) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Product to a ResourceInstance
func (*Product) FromInstance ¶
func (res *Product) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Product
func (*Product) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Product) PluralName ¶
PluralName returns the plural name of the resource
func (*Product) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type ProductOverview ¶
type ProductOverview struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ProductOverviewSpec `json:"spec"` }
ProductOverview Resource
func NewProductOverview ¶
func NewProductOverview(name, scopeKind, scopeName string) (*ProductOverview, error)
NewProductOverview creates an empty *ProductOverview
func ProductOverviewFromInstanceArray ¶
func ProductOverviewFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductOverview, error)
ProductOverviewFromInstanceArray converts a []*ResourceInstance to a []*ProductOverview
func (*ProductOverview) AsInstance ¶
func (res *ProductOverview) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ProductOverview to a ResourceInstance
func (*ProductOverview) FromInstance ¶
func (res *ProductOverview) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ProductOverview
func (*ProductOverview) MarshalJSON ¶
func (res *ProductOverview) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ProductOverview) PluralName ¶
func (res *ProductOverview) PluralName() string
PluralName returns the plural name of the resource
func (*ProductOverview) UnmarshalJSON ¶
func (res *ProductOverview) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ProductOverviewSpec ¶
type ProductOverviewSpec struct { // Defines all the documents and order for marketplace. Documents []ProductOverviewSpecDocuments `json:"documents,omitempty"` }
ProductOverviewSpec (catalog.v1alpha1.ProductOverview)
type ProductOverviewSpecDocuments ¶
type ProductOverviewSpecDocuments struct {
Name string `json:"name"`
}
ProductOverviewSpecDocuments (catalog.v1alpha1.ProductOverview)
type ProductPlan ¶
type ProductPlan struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` References ProductPlanReferences `json:"references"` Spec ProductPlanSpec `json:"spec"` State ProductPlanState `json:"state"` // Status ProductPlanStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
ProductPlan Resource
func NewProductPlan ¶
func NewProductPlan(name string) *ProductPlan
NewProductPlan creates an empty *ProductPlan
func ProductPlanFromInstanceArray ¶
func ProductPlanFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductPlan, error)
ProductPlanFromInstanceArray converts a []*ResourceInstance to a []*ProductPlan
func (*ProductPlan) AsInstance ¶
func (res *ProductPlan) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ProductPlan to a ResourceInstance
func (*ProductPlan) FromInstance ¶
func (res *ProductPlan) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ProductPlan
func (*ProductPlan) MarshalJSON ¶
func (res *ProductPlan) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ProductPlan) PluralName ¶
func (res *ProductPlan) PluralName() string
PluralName returns the plural name of the resource
func (*ProductPlan) UnmarshalJSON ¶
func (res *ProductPlan) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ProductPlanReferences ¶
type ProductPlanReferences struct {
Product ProductPlanReferencesProduct `json:"product,omitempty"`
}
ProductPlanReferences (catalog.v1alpha1.ProductPlan)
type ProductPlanReferencesProduct ¶
type ProductPlanReferencesProduct struct { // The latest active Product Release that corresponds to the Product referenced in the Plan. Release string `json:"release,omitempty"` }
ProductPlanReferencesProduct (catalog.v1alpha1.ProductPlan)
type ProductPlanSpec ¶
type ProductPlanSpec struct { Product string `json:"product"` // description of the Plan. Description string `json:"description,omitempty"` // The type of the Plan. Type string `json:"type"` Billing ProductPlanSpecBilling `json:"billing,omitempty"` // Defines all features supported by the Plan. Features []ProductPlanSpecFeatures `json:"features,omitempty"` Subscription ProductPlanSpecSubscription `json:"subscription,omitempty"` }
ProductPlanSpec (catalog.v1alpha1.ProductPlan)
type ProductPlanSpecBilling ¶
type ProductPlanSpecBilling struct { Currency string `json:"currency"` // The base price for the plan. // GENERATE: The following code has been modified after code generation Price float64 `json:"price,omitempty"` // The billing cycle type. Cycle string `json:"cycle,omitempty"` Interval string `json:"interval"` }
ProductPlanSpecBilling Paid plan billing details. (catalog.v1alpha1.ProductPlan)
type ProductPlanSpecFeatures ¶
type ProductPlanSpecFeatures struct {
Name string `json:"name"`
}
ProductPlanSpecFeatures (catalog.v1alpha1.ProductPlan)
type ProductPlanSpecSubscription ¶
type ProductPlanSpecSubscription struct { Interval ProductPlanSpecSubscriptionInterval `json:"interval,omitempty"` Renewal string `json:"renewal,omitempty"` Approval string `json:"approval,omitempty"` }
ProductPlanSpecSubscription Defines Plan's subscription information (catalog.v1alpha1.ProductPlan)
type ProductPlanSpecSubscriptionInterval ¶
type ProductPlanSpecSubscriptionInterval struct { // The type of the interval Type string `json:"type,omitempty"` // The subscription inverval length // GENERATE: The following code has been modified after code generation Length float64 `json:"length,omitempty"` }
ProductPlanSpecSubscriptionInterval The subscription interval (catalog.v1alpha1.ProductPlan)
type ProductPlanState ¶
type ProductPlanState string
ProductPlanState the model 'ProductPlanState'
const ( // GENERATE: The following code has been modified after code generation ProductPlanStateDRAFT ProductPlanState = "draft" // GENERATE: The following code has been modified after code generation ProductPlanStateACTIVE ProductPlanState = "active" // GENERATE: The following code has been modified after code generation ProductPlanStateDEPRECATED ProductPlanState = "deprecated" // GENERATE: The following code has been modified after code generation ProductPlanStateARCHIVED ProductPlanState = "archived" )
List of ProductPlanState
type ProductPlanStatus ¶
type ProductPlanStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. Reasons []ProductPlanStatusReasons `json:"reasons,omitempty"` }
ProductPlanStatus (catalog.v1alpha1.ProductPlan)
type ProductPlanStatusReasons ¶
type ProductPlanStatusReasons struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` // (catalog.v1alpha1.ProductPlan) Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
ProductPlanStatusReasons (catalog.v1alpha1.ProductPlan)
type ProductPlanUnit ¶
type ProductPlanUnit struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ProductPlanUnitSpec `json:"spec"` }
ProductPlanUnit Resource
func NewProductPlanUnit ¶
func NewProductPlanUnit(name string) *ProductPlanUnit
NewProductPlanUnit creates an empty *ProductPlanUnit
func ProductPlanUnitFromInstanceArray ¶
func ProductPlanUnitFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductPlanUnit, error)
ProductPlanUnitFromInstanceArray converts a []*ResourceInstance to a []*ProductPlanUnit
func (*ProductPlanUnit) AsInstance ¶
func (res *ProductPlanUnit) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ProductPlanUnit to a ResourceInstance
func (*ProductPlanUnit) FromInstance ¶
func (res *ProductPlanUnit) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ProductPlanUnit
func (*ProductPlanUnit) MarshalJSON ¶
func (res *ProductPlanUnit) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ProductPlanUnit) PluralName ¶
func (res *ProductPlanUnit) PluralName() string
PluralName returns the plural name of the resource
func (*ProductPlanUnit) UnmarshalJSON ¶
func (res *ProductPlanUnit) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ProductPlanUnitSpec ¶
type ProductPlanUnitSpec struct { // description of the Plan. Description string `json:"description,omitempty"` }
ProductPlanUnitSpec (catalog.v1alpha1.ProductPlanUnit)
type ProductReferences ¶
type ProductReferences struct { // Computed latest AssetReleases for each Asset reference in the Product. Assets []ProductReferencesAssets `json:"assets,omitempty"` }
ProductReferences (catalog.v1alpha1.Product)
type ProductReferencesAssets ¶
type ProductReferencesAssets struct { // The Asset reference. Name string `json:"name,omitempty"` Release ProductReferencesRelease `json:"release,omitempty"` }
ProductReferencesAssets (catalog.v1alpha1.Product)
type ProductReferencesRelease ¶
type ProductReferencesRelease struct { // The latest AssetRelease computed based on the provided Asset filters. Name string `json:"name,omitempty"` // The AssetRelease version that the Product currently points to. Version string `json:"version,omitempty"` // The AssetRelease state. State string `json:"state,omitempty"` }
ProductReferencesRelease (catalog.v1alpha1.Product)
type ProductRelease ¶
type ProductRelease struct { apiv1.ResourceMeta Icon interface{} `json:"icon"` Owner *apiv1.Owner `json:"owner"` Spec ProductReleaseSpec `json:"spec"` // Status ProductReleaseStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
ProductRelease Resource
func NewProductRelease ¶
func NewProductRelease(name string) *ProductRelease
NewProductRelease creates an empty *ProductRelease
func ProductReleaseFromInstanceArray ¶
func ProductReleaseFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductRelease, error)
ProductReleaseFromInstanceArray converts a []*ResourceInstance to a []*ProductRelease
func (*ProductRelease) AsInstance ¶
func (res *ProductRelease) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ProductRelease to a ResourceInstance
func (*ProductRelease) FromInstance ¶
func (res *ProductRelease) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ProductRelease
func (*ProductRelease) MarshalJSON ¶
func (res *ProductRelease) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ProductRelease) PluralName ¶
func (res *ProductRelease) PluralName() string
PluralName returns the plural name of the resource
func (*ProductRelease) UnmarshalJSON ¶
func (res *ProductRelease) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ProductReleaseSpec ¶
type ProductReleaseSpec struct { // Description of the release. Description string `json:"description,omitempty"` // Version of the release. Version string `json:"version"` Product string `json:"product"` Assets []ProductReleaseSpecAssets `json:"assets,omitempty"` ReleaseTag string `json:"releaseTag"` State string `json:"state,omitempty"` // list of categories for the released product. Categories []string `json:"categories,omitempty"` }
ProductReleaseSpec (catalog.v1alpha1.ProductRelease)
type ProductReleaseSpecAssets ¶
type ProductReleaseSpecAssets struct { // The Asset name Name string `json:"name,omitempty"` Release ProductReleaseSpecRelease `json:"release,omitempty"` }
ProductReleaseSpecAssets (catalog.v1alpha1.ProductRelease)
type ProductReleaseSpecRelease ¶
type ProductReleaseSpecRelease struct { Name string `json:"name,omitempty"` // The AssetRelease version. Version string `json:"version,omitempty"` // The AssetRelease state. State string `json:"state,omitempty"` }
ProductReleaseSpecRelease (catalog.v1alpha1.ProductRelease)
type ProductReleaseStatus ¶
type ProductReleaseStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level,omitempty"` // Reasons for the generated status. // GENERATE: The following code has been modified after code generation Reasons []interface{} `json:"reasons,omitempty"` }
ProductReleaseStatus (catalog.v1alpha1.ProductRelease)
type ProductReleaseStatusError ¶
type ProductReleaseStatusError 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]map[string]interface{} `json:"meta,omitempty"` }
ProductReleaseStatusError struct for ProductReleaseStatusError
type ProductReleaseStatusPending ¶
type ProductReleaseStatusPending struct { Type string `json:"type"` // Time when the change occured. Timestamp time.Time `json:"timestamp"` // Reason for being in Pending. Detail string `json:"detail"` Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
ProductReleaseStatusPending struct for ProductReleaseStatusPending
type ProductReleaseStatusSuccess ¶
type ProductReleaseStatusSuccess 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]map[string]interface{} `json:"meta,omitempty"` }
ProductReleaseStatusSuccess struct for ProductReleaseStatusSuccess
type ProductSpec ¶
type ProductSpec struct { // description of the Product. Description string `json:"description,omitempty"` Categories []string `json:"categories,omitempty"` // Defines all the Assets that the Product will be built from. Assets []ProductSpecAssets `json:"assets,omitempty"` }
ProductSpec (catalog.v1alpha1.Product)
type ProductSpecAssets ¶
type ProductSpecAssets struct { Name string `json:"name"` Filters ProductSpecFilters `json:"filters,omitempty"` }
ProductSpecAssets (catalog.v1alpha1.Product)
type ProductSpecFilters ¶
type ProductSpecFilters struct { // The AssetRelease version to use. Examples: - 1.0.1 for a specific asset release version - 1.* for all minor and patch versions of version 1 - 1.2.* for all the patch version for version 1.2 Version string `json:"version,omitempty"` }
ProductSpecFilters Filters what AssetRelease the Product points to. (catalog.v1alpha1.Product)
type ProductState ¶
type ProductState string
ProductState the model 'ProductState'
const ( // GENERATE: The following code has been modified after code generation ProductStateDRAFT ProductState = "draft" // GENERATE: The following code has been modified after code generation ProductStateACTIVE ProductState = "active" // GENERATE: The following code has been modified after code generation ProductStateDEPRECATED ProductState = "deprecated" // GENERATE: The following code has been modified after code generation ProductStateARCHIVED ProductState = "archived" )
List of ProductState
type ProductVisibility ¶
type ProductVisibility struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ProductVisibilitySpec `json:"spec"` }
ProductVisibility Resource
func NewProductVisibility ¶
func NewProductVisibility(name, scopeName string) *ProductVisibility
NewProductVisibility creates an empty *ProductVisibility
func ProductVisibilityFromInstanceArray ¶
func ProductVisibilityFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductVisibility, error)
ProductVisibilityFromInstanceArray converts a []*ResourceInstance to a []*ProductVisibility
func (*ProductVisibility) AsInstance ¶
func (res *ProductVisibility) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ProductVisibility to a ResourceInstance
func (*ProductVisibility) FromInstance ¶
func (res *ProductVisibility) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ProductVisibility
func (*ProductVisibility) MarshalJSON ¶
func (res *ProductVisibility) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ProductVisibility) PluralName ¶
func (res *ProductVisibility) PluralName() string
PluralName returns the plural name of the resource
func (*ProductVisibility) UnmarshalJSON ¶
func (res *ProductVisibility) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ProductVisibilitySpec ¶
type ProductVisibilitySpec struct { // Defines where the visibility settings apply. Products []ProductVisibilitySpecProducts `json:"products,omitempty"` Subjects []ProductVisibilitySpecSubjects `json:"subjects,omitempty"` }
ProductVisibilitySpec (catalog.v1alpha1.ProductVisibility)
type ProductVisibilitySpecProducts ¶
type ProductVisibilitySpecProducts struct {
Name string `json:"name"`
}
ProductVisibilitySpecProducts (catalog.v1alpha1.ProductVisibility)
type ProductVisibilitySpecSubjects ¶
type ProductVisibilitySpecSubjects struct { // Type of the subject Type string `json:"type,omitempty"` // ID of the subject Id string `json:"id,omitempty"` }
ProductVisibilitySpecSubjects (catalog.v1alpha1.ProductVisibility)
type PublishedProduct ¶
type PublishedProduct struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` References PublishedProductReferences `json:"references"` Spec PublishedProductSpec `json:"spec"` }
PublishedProduct Resource
func NewPublishedProduct ¶
func NewPublishedProduct(name, scopeName string) *PublishedProduct
NewPublishedProduct creates an empty *PublishedProduct
func PublishedProductFromInstanceArray ¶
func PublishedProductFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*PublishedProduct, error)
PublishedProductFromInstanceArray converts a []*ResourceInstance to a []*PublishedProduct
func (*PublishedProduct) AsInstance ¶
func (res *PublishedProduct) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a PublishedProduct to a ResourceInstance
func (*PublishedProduct) FromInstance ¶
func (res *PublishedProduct) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a PublishedProduct
func (*PublishedProduct) MarshalJSON ¶
func (res *PublishedProduct) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*PublishedProduct) PluralName ¶
func (res *PublishedProduct) PluralName() string
PluralName returns the plural name of the resource
func (*PublishedProduct) UnmarshalJSON ¶
func (res *PublishedProduct) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type PublishedProductReferences ¶
type PublishedProductReferences struct {
Release PublishedProductReferencesRelease `json:"release"`
}
PublishedProductReferences (catalog.v1alpha1.PublishedProduct)
type PublishedProductReferencesRelease ¶
type PublishedProductReferencesRelease struct { // Reference to product release Name string `json:"name,omitempty"` // Product release version Version string `json:"version,omitempty"` // Product release state State string `json:"state,omitempty"` }
PublishedProductReferencesRelease The Product release that was published to the marketplace (catalog.v1alpha1.PublishedProduct)
type PublishedProductSpec ¶
type PublishedProductSpec struct {
Product PublishedProductSpecProduct `json:"product,omitempty"`
}
PublishedProductSpec (catalog.v1alpha1.PublishedProduct)
type PublishedProductSpecProduct ¶
type PublishedProductSpecProduct struct {
Name string `json:"name,omitempty"`
}
PublishedProductSpecProduct (catalog.v1alpha1.PublishedProduct)
type Quota ¶
type Quota struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec QuotaSpec `json:"spec"` // Status QuotaStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
Quota Resource
func QuotaFromInstanceArray ¶
func QuotaFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Quota, error)
QuotaFromInstanceArray converts a []*ResourceInstance to a []*Quota
func (*Quota) AsInstance ¶
func (res *Quota) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Quota to a ResourceInstance
func (*Quota) FromInstance ¶
func (res *Quota) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Quota
func (*Quota) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Quota) PluralName ¶
PluralName returns the plural name of the resource
func (*Quota) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type QuotaSpec ¶
type QuotaSpec struct { // description of the quota. Description string `json:"description,omitempty"` // The unit used to measure the access to the resource. Unit string `json:"unit"` // GENERATE: The following code has been modified after code generation Pricing interface{} `json:"pricing"` // The resources that the access is being granted to. // GENERATE: The following code has been modified after code generation Resources []interface{} `json:"resources"` }
QuotaSpec (catalog.v1alpha1.Quota)
type QuotaSpecAssetResourceRef ¶
type QuotaSpecAssetResourceRef struct { Kind string `json:"kind"` Name string `json:"name,omitempty"` }
QuotaSpecAssetResourceRef struct for QuotaSpecAssetResourceRef
type QuotaSpecFixedPricingType ¶
type QuotaSpecFixedPricingType struct { Type string `json:"type"` Interval string `json:"interval"` // GENERATE: The following code has been modified after code generation Limit interface{} `json:"limit"` }
QuotaSpecFixedPricingType struct for QuotaSpecFixedPricingType
type QuotaSpecLimitTypeLoose ¶
type QuotaSpecLimitTypeLoose struct { Type string `json:"type"` // The limit of the unit that is provided. // GENERATE: The following code has been modified after code generation Value float64 `json:"value"` Overages QuotaSpecLimitTypeLooseOverages `json:"overages"` }
QuotaSpecLimitTypeLoose struct for QuotaSpecLimitTypeLoose
type QuotaSpecLimitTypeLooseOverages ¶
type QuotaSpecLimitTypeLooseOverages struct { // The overage price per unit. // GENERATE: The following code has been modified after code generation Value float64 `json:"value,omitempty"` }
QuotaSpecLimitTypeLooseOverages struct for QuotaSpecLimitTypeLooseOverages
type QuotaSpecLimitTypeStrict ¶
type QuotaSpecLimitTypeStrict struct { Type string `json:"type"` // The limit of the unit that is provided. // GENERATE: The following code has been modified after code generation Value float64 `json:"value"` }
QuotaSpecLimitTypeStrict struct for QuotaSpecLimitTypeStrict
type QuotaSpecUnlimitedPricingType ¶
type QuotaSpecUnlimitedPricingType struct {
Type string `json:"type"`
}
QuotaSpecUnlimitedPricingType struct for QuotaSpecUnlimitedPricingType
type QuotaStatus ¶
type QuotaStatus 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"` }
QuotaStatus (catalog.v1alpha1.Quota)
type QuotaStatusError ¶
type QuotaStatusError 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]map[string]interface{} `json:"meta,omitempty"` }
QuotaStatusError struct for QuotaStatusError
type QuotaStatusPending ¶
type QuotaStatusPending struct { Type string `json:"type"` // Details of the Pending status. Detail string `json:"detail"` // Time when the resource moved to Pending. Timestamp time.Time `json:"timestamp"` Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
QuotaStatusPending struct for QuotaStatusPending
type QuotaStatusSuccess ¶
type QuotaStatusSuccess struct { Type string `json:"type"` // Time when the change occured. Timestamp time.Time `json:"timestamp"` // Details of the result. Detail string `json:"detail"` Meta map[string]interface{} `json:"meta,omitempty"` }
QuotaStatusSuccess struct for QuotaStatusSuccess
type ReleaseTag ¶
type ReleaseTag struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ReleaseTagSpec `json:"spec"` State interface{} `json:"state"` // Status ReleaseTagStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
ReleaseTag Resource
func NewReleaseTag ¶
func NewReleaseTag(name, scopeKind, scopeName string) (*ReleaseTag, error)
NewReleaseTag creates an empty *ReleaseTag
func ReleaseTagFromInstanceArray ¶
func ReleaseTagFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ReleaseTag, error)
ReleaseTagFromInstanceArray converts a []*ResourceInstance to a []*ReleaseTag
func (*ReleaseTag) AsInstance ¶
func (res *ReleaseTag) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a ReleaseTag to a ResourceInstance
func (*ReleaseTag) FromInstance ¶
func (res *ReleaseTag) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a ReleaseTag
func (*ReleaseTag) MarshalJSON ¶
func (res *ReleaseTag) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*ReleaseTag) PluralName ¶
func (res *ReleaseTag) PluralName() string
PluralName returns the plural name of the resource
func (*ReleaseTag) UnmarshalJSON ¶
func (res *ReleaseTag) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type ReleaseTagSpec ¶
type ReleaseTagSpec struct { // Description of the Release Tag. Description string `json:"description,omitempty"` ReleaseType string `json:"releaseType"` }
ReleaseTagSpec (catalog.v1alpha1.ReleaseTag)
type ReleaseTagStatus ¶
type ReleaseTagStatus 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"` }
ReleaseTagStatus (catalog.v1alpha1.ReleaseTag)
type ReleaseTagStatusError ¶
type ReleaseTagStatusError 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]map[string]interface{} `json:"meta,omitempty"` }
ReleaseTagStatusError struct for ReleaseTagStatusError
type ReleaseTagStatusPending ¶
type ReleaseTagStatusPending struct { Type string `json:"type"` // Time when the change occured. Timestamp time.Time `json:"timestamp"` // message of the pending status Detail string `json:"detail"` Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
ReleaseTagStatusPending struct for ReleaseTagStatusPending
type ReleaseTagStatusReference ¶
type ReleaseTagStatusReference struct { // message of the status of the reference Message string `json:"message,omitempty"` Kind string `json:"kind,omitempty"` // The name of the resource that got created. Name string `json:"name,omitempty"` ScopeKind string `json:"scopeKind,omitempty"` ScopeName string `json:"scopeName,omitempty"` }
ReleaseTagStatusReference The resource reference that was created/updated.
type ReleaseTagStatusSuccess ¶
type ReleaseTagStatusSuccess struct { Type string `json:"type"` // Time when the change occured. Timestamp time.Time `json:"timestamp"` // message of the result Detail string `json:"detail"` Meta ReleaseTagStatusSuccessMeta `json:"meta,omitempty"` }
ReleaseTagStatusSuccess struct for ReleaseTagStatusSuccess
type ReleaseTagStatusSuccessMeta ¶
type ReleaseTagStatusSuccessMeta struct { // GENERATE: The following code has been modified after code generation Reference []ReleaseTagStatusReference `json:"reference,omitempty"` }
ReleaseTagStatusSuccessMeta struct for ReleaseTagStatusSuccessMeta
type Resource ¶
type Resource struct { apiv1.ResourceMeta Owner *apiv1.Owner `json:"owner"` Spec ResourceSpec `json:"spec"` }
Resource Resource
func NewResource ¶
NewResource creates an empty *Resource
func ResourceFromInstanceArray ¶
func ResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Resource, error)
ResourceFromInstanceArray converts a []*ResourceInstance to a []*Resource
func (*Resource) AsInstance ¶
func (res *Resource) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Resource to a ResourceInstance
func (*Resource) FromInstance ¶
func (res *Resource) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Resource
func (*Resource) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Resource) PluralName ¶
PluralName returns the plural name of the resource
func (*Resource) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type ResourceSpec ¶
type ResourceSpec struct { // The type of the resource, example: pdf FileType string `json:"fileType"` // The content type ContentType string `json:"contentType"` // GENERATE: The following code has been modified after code generation Data interface{} `json:"data"` }
ResourceSpec (catalog.v1alpha1.Resource)
type ResourceSpecBinaryData ¶
type ResourceSpecBinaryData struct { Type string `json:"type"` // Base64 encoded value of the file. Content string `json:"content"` }
ResourceSpecBinaryData struct for ResourceSpecBinaryData
type ResourceSpecTextData ¶
type ResourceSpecTextData struct { Type string `json:"type"` // Resource content. Content string `json:"content"` }
ResourceSpecTextData struct for ResourceSpecTextData
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. (catalog.v1alpha1.Secret) Data map[string]string `json:"data,omitempty"` }
SecretSpec (catalog.v1alpha1.Secret)
type Stage ¶
type Stage struct { apiv1.ResourceMeta Icon interface{} `json:"icon"` Owner *apiv1.Owner `json:"owner"` Spec StageSpec `json:"spec"` }
Stage Resource
func StageFromInstanceArray ¶
func StageFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Stage, error)
StageFromInstanceArray converts a []*ResourceInstance to a []*Stage
func (*Stage) AsInstance ¶
func (res *Stage) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Stage to a ResourceInstance
func (*Stage) FromInstance ¶
func (res *Stage) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Stage
func (*Stage) MarshalJSON ¶
MarshalJSON custom marshaller to handle sub resources
func (*Stage) PluralName ¶
PluralName returns the plural name of the resource
func (*Stage) UnmarshalJSON ¶
UnmarshalJSON custom unmarshaller to handle sub resources
type StageSpec ¶
type StageSpec struct { // description of the stage Description string `json:"description,omitempty"` }
StageSpec (catalog.v1alpha1.Stage)
type Subscription ¶
type Subscription struct { apiv1.ResourceMeta Approval SubscriptionApproval `json:"approval"` Marketplace SubscriptionMarketplace `json:"marketplace"` Owner *apiv1.Owner `json:"owner"` Spec SubscriptionSpec `json:"spec"` // Status SubscriptionStatus `json:"status"` Status *apiv1.ResourceStatus `json:"status"` }
Subscription Resource
func NewSubscription ¶
func NewSubscription(name string) *Subscription
NewSubscription creates an empty *Subscription
func SubscriptionFromInstanceArray ¶
func SubscriptionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Subscription, error)
SubscriptionFromInstanceArray converts a []*ResourceInstance to a []*Subscription
func (*Subscription) AsInstance ¶
func (res *Subscription) AsInstance() (*apiv1.ResourceInstance, error)
AsInstance converts a Subscription to a ResourceInstance
func (*Subscription) FromInstance ¶
func (res *Subscription) FromInstance(ri *apiv1.ResourceInstance) error
FromInstance converts a ResourceInstance to a Subscription
func (*Subscription) MarshalJSON ¶
func (res *Subscription) MarshalJSON() ([]byte, error)
MarshalJSON custom marshaller to handle sub resources
func (*Subscription) PluralName ¶
func (res *Subscription) PluralName() string
PluralName returns the plural name of the resource
func (*Subscription) UnmarshalJSON ¶
func (res *Subscription) UnmarshalJSON(data []byte) error
UnmarshalJSON custom unmarshaller to handle sub resources
type SubscriptionApproval ¶
type SubscriptionApproval struct { State string `json:"state"` // Reason for the state. Reason string `json:"reason,omitempty"` }
SubscriptionApproval (catalog.v1alpha1.Subscription)
type SubscriptionMarketplace ¶
type SubscriptionMarketplace struct { // The name of the Marketplace. Name string `json:"name"` Resource SubscriptionMarketplaceResource `json:"resource"` }
SubscriptionMarketplace Details about the marketplace Application. (catalog.v1alpha1.Subscription)
type SubscriptionMarketplaceResource ¶
type SubscriptionMarketplaceResource struct { Metadata SubscriptionMarketplaceResourceMetadata `json:"metadata"` Owner SubscriptionMarketplaceResourceOwner `json:"owner,omitempty"` }
SubscriptionMarketplaceResource The Marketplace Application resource details. (catalog.v1alpha1.Subscription)
type SubscriptionMarketplaceResourceMetadata ¶
type SubscriptionMarketplaceResourceMetadata 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"` }
SubscriptionMarketplaceResourceMetadata Marketplace Application metadata. (catalog.v1alpha1.Subscription)
type SubscriptionMarketplaceResourceOwner ¶
type SubscriptionMarketplaceResourceOwner struct { // The type of the owner. Type string `json:"type,omitempty"` // Id of the owner of the resource. Id string `json:"id,omitempty"` Organization SubscriptionMarketplaceResourceOwnerOrganization `json:"organization"` }
SubscriptionMarketplaceResourceOwner Owner of the Application. (catalog.v1alpha1.Subscription)
type SubscriptionMarketplaceResourceOwnerOrganization ¶
type SubscriptionMarketplaceResourceOwnerOrganization struct { // Id of the organization. Id string `json:"id"` }
SubscriptionMarketplaceResourceOwnerOrganization Organization details. (catalog.v1alpha1.Subscription)
type SubscriptionSpec ¶
type SubscriptionSpec struct { // Reference to Product resource Product string `json:"product"` Plan SubscriptionSpecPlan `json:"plan"` }
SubscriptionSpec (catalog.v1alpha1.Subscription)
type SubscriptionSpecPlan ¶
type SubscriptionSpecPlan struct { // Reference to Product resource Name string `json:"name"` }
SubscriptionSpecPlan (catalog.v1alpha1.Subscription)
type SubscriptionStatus ¶
type SubscriptionStatus struct { // The current status level, indicating progress towards consistency. Level string `json:"level"` // Reasons for the generated status. Reasons []SubscriptionStatusReasons `json:"reasons,omitempty"` }
SubscriptionStatus (catalog.v1alpha1.Subscription)
type SubscriptionStatusReasons ¶
type SubscriptionStatusReasons struct { Type string `json:"type"` // Details of the error. Detail string `json:"detail"` // Time when the update occurred. Timestamp time.Time `json:"timestamp"` // (catalog.v1alpha1.Subscription) Meta map[string]map[string]interface{} `json:"meta,omitempty"` }
SubscriptionStatusReasons (catalog.v1alpha1.Subscription)
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. (catalog.v1alpha1.Webhook) Headers map[string]string `json:"headers,omitempty"` }
WebhookSpec (catalog.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. (catalog.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 (catalog.v1alpha1.Webhook)
Source Files ¶
- AccessControlList.go
- Application.go
- Asset.go
- AssetMapping.go
- AssetRelease.go
- AssetRequest.go
- AssetRequestDefinition.go
- AssetResource.go
- AuthorizationProfile.go
- Category.go
- Credential.go
- CredentialRequestDefinition.go
- Document.go
- Marketplace.go
- Product.go
- ProductOverview.go
- ProductPlan.go
- ProductPlanUnit.go
- ProductRelease.go
- ProductVisibility.go
- PublishedProduct.go
- Quota.go
- ReleaseTag.go
- Resource.go
- Secret.go
- Stage.go
- Subscription.go
- Webhook.go
- model_access_control_list_spec.go
- model_access_control_list_spec_access_level_scope.go
- model_access_control_list_spec_rules.go
- model_access_control_list_spec_subjects.go
- model_application_marketplace.go
- model_application_marketplace_resource.go
- model_application_marketplace_resource_metadata.go
- model_application_marketplace_resource_owner.go
- model_application_marketplace_resource_owner_organization.go
- model_application_spec.go
- model_application_spec_security.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_references_api_service_ref.go
- model_asset_references_asset_mapping_ref.go
- model_asset_references_asset_mapping_template_ref.go
- model_asset_references_environment_ref.go
- model_asset_references_stage_ref.go
- model_asset_release_references_api_service_ref.go
- model_asset_release_references_asset_mapping_template_ref.go
- model_asset_release_references_environment_ref.go
- model_asset_release_references_release_tag_ref.go
- model_asset_release_references_stage_ref.go
- model_asset_release_spec.go
- model_asset_release_status.go
- model_asset_release_status_meta.go
- model_asset_release_status_reasons.go
- model_asset_request_approval.go
- model_asset_request_approval_state.go
- model_asset_request_definition_authorization.go
- model_asset_request_definition_spec.go
- model_asset_request_definition_spec_provision.go
- model_asset_request_references.go
- model_asset_request_spec.go
- model_asset_request_status.go
- model_asset_request_status_reasons.go
- model_asset_resource_references.go
- model_asset_resource_spec.go
- model_asset_resource_spec_access_info.go
- model_asset_spec.go
- model_asset_state.go
- model_asset_status.go
- model_asset_status_meta.go
- model_asset_status_reasons.go
- model_authorization_profile_references.go
- model_authorization_profile_spec.go
- model_category_spec.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_spec.go
- model_credential_status.go
- model_credential_status_reasons.go
- model_document_spec.go
- model_document_spec_asset_resource_ref.go
- model_document_spec_resource_ref.go
- model_document_spec_sections.go
- model_document_status.go
- model_document_status_error.go
- model_document_status_success.go
- model_marketplace_spec.go
- model_product_overview_spec.go
- model_product_overview_spec_documents.go
- model_product_plan_references.go
- model_product_plan_references_product.go
- model_product_plan_spec.go
- model_product_plan_spec_billing.go
- model_product_plan_spec_features.go
- model_product_plan_spec_subscription.go
- model_product_plan_spec_subscription_interval.go
- model_product_plan_state.go
- model_product_plan_status.go
- model_product_plan_status_reasons.go
- model_product_plan_unit_spec.go
- model_product_references.go
- model_product_references_assets.go
- model_product_references_release.go
- model_product_release_spec.go
- model_product_release_spec_assets.go
- model_product_release_spec_release.go
- model_product_release_status.go
- model_product_release_status_error.go
- model_product_release_status_pending.go
- model_product_release_status_success.go
- model_product_spec.go
- model_product_spec_assets.go
- model_product_spec_filters.go
- model_product_state.go
- model_product_visibility_spec.go
- model_product_visibility_spec_products.go
- model_product_visibility_spec_subjects.go
- model_published_product_references.go
- model_published_product_references_release.go
- model_published_product_spec.go
- model_published_product_spec_product.go
- model_quota_spec.go
- model_quota_spec_asset_resource_ref.go
- model_quota_spec_fixed_pricing_type.go
- model_quota_spec_limit_type_loose.go
- model_quota_spec_limit_type_loose_overages.go
- model_quota_spec_limit_type_strict.go
- model_quota_spec_unlimited_pricing_type.go
- model_quota_status.go
- model_quota_status_error.go
- model_quota_status_pending.go
- model_quota_status_success.go
- model_release_tag_spec.go
- model_release_tag_status.go
- model_release_tag_status_error.go
- model_release_tag_status_pending.go
- model_release_tag_status_reference.go
- model_release_tag_status_success.go
- model_release_tag_status_success_meta.go
- model_resource_spec.go
- model_resource_spec_binary_data.go
- model_resource_spec_text_data.go
- model_secret_spec.go
- model_stage_spec.go
- model_subscription_approval.go
- model_subscription_marketplace.go
- model_subscription_marketplace_resource.go
- model_subscription_marketplace_resource_metadata.go
- model_subscription_marketplace_resource_owner.go
- model_subscription_marketplace_resource_owner_organization.go
- model_subscription_spec.go
- model_subscription_spec_plan.go
- model_subscription_status.go
- model_subscription_status_reasons.go
- model_webhook_spec.go
- model_webhook_spec_auth.go
- model_webhook_spec_auth_secret.go