catalog

package
v1.1.61 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2023 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation ¶

Index ¶

Constants ¶

View Source
const (
	ApplicationResourceName               = "applications"
	ApplicationMarketplaceSubResourceName = "marketplace"
	ApplicationStateSubResourceName       = "state"
)
View Source
const (
	AssetResourceName                 = "assets"
	AssetAccessSubResourceName        = "access"
	AssetIconSubResourceName          = "icon"
	AssetLatestreleaseSubResourceName = "latestrelease"
	AssetReferencesSubResourceName    = "references"
	AssetStateSubResourceName         = "state"
	AssetStatusSubResourceName        = "status"
)
View Source
const (
	AssetMappingResourceName          = "assetmappings"
	AssetMappingStatusSubResourceName = "status"
)
View Source
const (
	AssetReleaseResourceName              = "assetreleases"
	AssetReleaseIconSubResourceName       = "icon"
	AssetReleaseReferencesSubResourceName = "references"
	AssetReleaseStatusSubResourceName     = "status"
)
View Source
const (
	AssetRequestResourceName               = "assetrequests"
	AssetRequestApprovalSubResourceName    = "approval"
	AssetRequestDataSubResourceName        = "data"
	AssetRequestMarketplaceSubResourceName = "marketplace"
	AssetRequestReferencesSubResourceName  = "references"
	AssetRequestStatusSubResourceName      = "status"
)
View Source
const (
	AssetRequestDefinitionResourceName                 = "assetrequestdefinitions"
	AssetRequestDefinitionAuthorizationSubResourceName = "authorization"
	AssetRequestDefinitionReferencesSubResourceName    = "references"
	AssetRequestDefinitionWebhooksSubResourceName      = "webhooks"
)
View Source
const (
	AssetResourceResourceName              = "assetresources"
	AssetResourceReferencesSubResourceName = "references"
)
View Source
const (
	AuthorizationProfileResourceName              = "authprofiles"
	AuthorizationProfilePoliciesSubResourceName   = "policies"
	AuthorizationProfileReferencesSubResourceName = "references"
)
View Source
const (
	CategoryResourceName        = "categories"
	CategoryIconSubResourceName = "icon"
)
View Source
const (
	CredentialResourceName               = "credentials"
	CredentialDataSubResourceName        = "data"
	CredentialExpirationSubResourceName  = "expiration"
	CredentialMarketplaceSubResourceName = "marketplace"
	CredentialPoliciesSubResourceName    = "policies"
	CredentialReferencesSubResourceName  = "references"
	CredentialStateSubResourceName       = "state"
	CredentialStatusSubResourceName      = "status"
)
View Source
const (
	CredentialRequestDefinitionResourceName              = "credentialrequestdefinitions"
	CredentialRequestDefinitionReferencesSubResourceName = "references"
	CredentialRequestDefinitionWebhooksSubResourceName   = "webhooks"
)
View Source
const (
	DocumentResourceName          = "documents"
	DocumentIconSubResourceName   = "icon"
	DocumentStatusSubResourceName = "status"
)
View Source
const (
	MarketplaceResourceName           = "marketplaces"
	MarketplaceBillingSubResourceName = "billing"
)
View Source
const (
	ProductResourceName                 = "products"
	ProductIconSubResourceName          = "icon"
	ProductLatestreleaseSubResourceName = "latestrelease"
	ProductReferencesSubResourceName    = "references"
	ProductStateSubResourceName         = "state"
	ProductStatusSubResourceName        = "status"
)
View Source
const (
	ProductPlanResourceName              = "productplans"
	ProductPlanReferencesSubResourceName = "references"
	ProductPlanStateSubResourceName      = "state"
	ProductPlanStatusSubResourceName     = "status"
)
View Source
const (
	ProductPlanJobResourceName          = "productplanjobs"
	ProductPlanJobStatusSubResourceName = "status"
)
View Source
const (
	ProductReleaseResourceName          = "productreleases"
	ProductReleaseIconSubResourceName   = "icon"
	ProductReleaseStatusSubResourceName = "status"
)
View Source
const (
	PublishedProductResourceName              = "publishedproducts"
	PublishedProductReferencesSubResourceName = "references"
)
View Source
const (
	QuotaResourceName          = "quotas"
	QuotaStatusSubResourceName = "status"
)
View Source
const (
	ReleaseTagResourceName          = "releasetags"
	ReleaseTagStateSubResourceName  = "state"
	ReleaseTagStatusSubResourceName = "status"
)
View Source
const (
	StageResourceName        = "stages"
	StageIconSubResourceName = "icon"
)
View Source
const (
	SubscriptionResourceName               = "subscriptions"
	SubscriptionApprovalSubResourceName    = "approval"
	SubscriptionBillingSubResourceName     = "billing"
	SubscriptionMarketplaceSubResourceName = "marketplace"
	SubscriptionReferencesSubResourceName  = "references"
	SubscriptionStateSubResourceName       = "state"
	SubscriptionStatusSubResourceName      = "status"
)
View Source
const (
	SubscriptionInvoiceResourceName               = "subscriptioninvoices"
	SubscriptionInvoiceBillingSubResourceName     = "billing"
	SubscriptionInvoiceMarketplaceSubResourceName = "marketplace"
	SubscriptionInvoiceStateSubResourceName       = "state"
	SubscriptionInvoiceStatusSubResourceName      = "status"
)
View Source
const (
	SubscriptionJobResourceName          = "subscriptionjobs"
	SubscriptionJobStatusSubResourceName = "status"
)
View Source
const (
	AccessControlListResourceName = "accesscontrollists"
)
View Source
const (
	CategoryVisibilityResourceName = "categoryvisibility"
)
View Source
const (
	ConsumerProductVisibilityResourceName = "consumerproductvisibility"
)
View Source
const (
	ProductOverviewResourceName = "productoverviews"
)
View Source
const (
	ProductPlanUnitResourceName = "productplanunits"
)
View Source
const (
	ProductVisibilityResourceName = "productvisibility"
)
View Source
const (
	ResourceResourceName = "resources"
)
View Source
const (
	SecretResourceName = "secrets"
)
View Source
const (
	SupportContactResourceName = "supportcontacts"
)
View Source
const (
	WebhookResourceName = "webhooks"
)

Variables ¶

View Source
var (
	AccessControlListCtx log.ContextField = "accessControlList"

	AccessControlListScopes = []string{"Application", "Asset", "AssetRelease", "AuthorizationProfile", "Category", "Marketplace", "Product", "ProductPlan", "ProductPlanUnit", "ProductRelease", "Stage", "Subscription", "SupportContact"}
)
View Source
var (
	ApplicationCtx log.ContextField = "application"

	ApplicationScopes = []string{""}
)
View Source
var (
	AssetCtx log.ContextField = "asset"

	AssetScopes = []string{""}
)
View Source
var (
	AssetMappingCtx log.ContextField = "assetMapping"

	AssetMappingScopes = []string{"Asset"}
)
View Source
var (
	AssetReleaseCtx log.ContextField = "assetRelease"

	AssetReleaseScopes = []string{""}
)
View Source
var (
	AssetRequestCtx log.ContextField = "assetRequest"

	AssetRequestScopes = []string{"Application"}
)
View Source
var (
	AssetRequestDefinitionCtx log.ContextField = "assetRequestDefinition"

	AssetRequestDefinitionScopes = []string{"AuthorizationProfile"}
)
View Source
var (
	AssetResourceCtx log.ContextField = "assetResource"

	AssetResourceScopes = []string{"Asset", "AssetRelease"}
)
View Source
var (
	AuthorizationProfileCtx log.ContextField = "authorizationProfile"

	AuthorizationProfileScopes = []string{""}
)
View Source
var (
	CategoryCtx log.ContextField = "category"

	CategoryScopes = []string{""}
)
View Source
var (
	CategoryVisibilityCtx log.ContextField = "categoryVisibility"

	CategoryVisibilityScopes = []string{"Marketplace"}
)
View Source
var (
	ConsumerProductVisibilityCtx log.ContextField = "consumerProductVisibility"

	ConsumerProductVisibilityScopes = []string{"Marketplace"}
)
View Source
var (
	CredentialCtx log.ContextField = "credential"

	CredentialScopes = []string{"Application"}
)
View Source
var (
	CredentialRequestDefinitionCtx log.ContextField = "credentialRequestDefinition"

	CredentialRequestDefinitionScopes = []string{"AuthorizationProfile"}
)
View Source
var (
	DocumentCtx log.ContextField = "document"

	DocumentScopes = []string{"Product", "ProductRelease"}
)
View Source
var (
	MarketplaceCtx log.ContextField = "marketplace"

	MarketplaceScopes = []string{""}
)
View Source
var (
	ProductCtx log.ContextField = "product"

	ProductScopes = []string{""}
)
View Source
var (
	ProductOverviewCtx log.ContextField = "productOverview"

	ProductOverviewScopes = []string{"Product", "ProductRelease"}
)
View Source
var (
	ProductPlanCtx log.ContextField = "productPlan"

	ProductPlanScopes = []string{""}
)
View Source
var (
	ProductPlanJobCtx log.ContextField = "productPlanJob"

	ProductPlanJobScopes = []string{"ProductPlan"}
)
View Source
var (
	ProductPlanUnitCtx log.ContextField = "productPlanUnit"

	ProductPlanUnitScopes = []string{""}
)
View Source
var (
	ProductReleaseCtx log.ContextField = "productRelease"

	ProductReleaseScopes = []string{""}
)
View Source
var (
	ProductVisibilityCtx log.ContextField = "productVisibility"

	ProductVisibilityScopes = []string{"Marketplace"}
)
View Source
var (
	PublishedProductCtx log.ContextField = "publishedProduct"

	PublishedProductScopes = []string{"Marketplace"}
)
View Source
var (
	QuotaCtx log.ContextField = "quota"

	QuotaScopes = []string{"ProductPlan"}
)
View Source
var (
	ReleaseTagCtx log.ContextField = "releaseTag"

	ReleaseTagScopes = []string{"Asset", "Product"}
)
View Source
var (
	ResourceCtx log.ContextField = "resource"

	ResourceScopes = []string{"Product", "ProductRelease"}
)
View Source
var (
	SecretCtx log.ContextField = "secret"

	SecretScopes = []string{"AuthorizationProfile"}
)
View Source
var (
	StageCtx log.ContextField = "stage"

	StageScopes = []string{""}
)
View Source
var (
	SubscriptionCtx log.ContextField = "subscription"

	SubscriptionScopes = []string{""}
)
View Source
var (
	SubscriptionInvoiceCtx log.ContextField = "subscriptionInvoice"

	SubscriptionInvoiceScopes = []string{"Subscription"}
)
View Source
var (
	SubscriptionJobCtx log.ContextField = "subscriptionJob"

	SubscriptionJobScopes = []string{"Subscription"}
)
View Source
var (
	SupportContactCtx log.ContextField = "supportContact"

	SupportContactScopes = []string{""}
)
View Source
var (
	WebhookCtx log.ContextField = "webhook"

	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 CategoryVisibilityGVK ¶ added in v1.1.49

func CategoryVisibilityGVK() apiv1.GroupVersionKind

func ConsumerProductVisibilityGVK ¶ added in v1.1.44

func ConsumerProductVisibilityGVK() 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 ProductPlanJobGVK ¶ added in v1.1.49

func ProductPlanJobGVK() 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 SubscriptionInvoiceGVK ¶ added in v1.1.52

func SubscriptionInvoiceGVK() apiv1.GroupVersionKind

func SubscriptionJobGVK ¶ added in v1.1.49

func SubscriptionJobGVK() apiv1.GroupVersionKind

func SupportContactGVK ¶ added in v1.1.41

func SupportContactGVK() 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"`
	// Set true to allow users to create scoped resources.
	AllowCreateScoped bool `json:"allowCreateScoped,omitempty"`
	// Set true to allow users to delete the unscoped resource.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update the unscoped resource.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScope struct for AccessControlListSpecAccessLevelScope

type AccessControlListSpecAccessLevelScopedKind ¶ added in v1.1.35

type AccessControlListSpecAccessLevelScopedKind struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// The kind of scoped resources to provide access to or \"*\" for all kinds.
	Kind string `json:"kind"`
	// Set true to allow users to create scoped resources of the specified kind.
	AllowCreate bool `json:"allowCreate,omitempty"`
	// Set true to allow users to delete scoped resources of the specified kind.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update scoped resources of the specified kind.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScopedKind struct for AccessControlListSpecAccessLevelScopedKind

type AccessControlListSpecAccessLevelScopedResource ¶ added in v1.1.35

type AccessControlListSpecAccessLevelScopedResource struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// The kind of scoped resources to provide access.
	Kind string `json:"kind"`
	// The name of the scoped resource to provide access to.
	Name string `json:"name"`
	// Set true to allow users to delete the referenced scoped resource.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update the referenced scoped resource.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScopedResource struct for AccessControlListSpecAccessLevelScopedResource

type AccessControlListSpecRules ¶

type AccessControlListSpecRules struct {
	// GENERATE: The following code has been modified after code generation
	Access []interface{} `json:"access,omitempty"`
}

AccessControlListSpecRules (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"`
	State       ApplicationState       `json:"state"`
}

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 marketplace in Application. (catalog.v1alpha1.Application)

type ApplicationMarketplaceResource ¶

type ApplicationMarketplaceResource struct {
	Metadata ApplicationMarketplaceResourceMetadata `json:"metadata"`
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `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 ApplicationState ¶ added in v1.1.52

type ApplicationState string

ApplicationState the model 'ApplicationState'

const (
	// GENERATE: The following code has been modified after code generation
	ApplicationStateARCHIVED ApplicationState = "archived"
	// GENERATE: The following code has been modified after code generation
	ApplicationStateARCHIVING ApplicationState = "archiving"
)

List of ApplicationState

type Asset ¶

type Asset struct {
	apiv1.ResourceMeta
	Access        AssetAccess        `json:"access"`
	Icon          interface{}        `json:"icon"`
	Latestrelease AssetLatestrelease `json:"latestrelease"`
	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 NewAsset ¶

func NewAsset(name string) *Asset

NewAsset creates an empty *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 ¶

func (res *Asset) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Asset) PluralName ¶

func (res *Asset) PluralName() string

PluralName returns the plural name of the resource

func (*Asset) UnmarshalJSON ¶

func (res *Asset) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetAccess ¶ added in v1.1.35

type AssetAccess struct {
	Approval string `json:"approval"`
}

AssetAccess Defines how an asset should handle access requests received from marketplace consumers. (catalog.v1alpha1.Asset)

type AssetLatestrelease ¶ added in v1.1.49

type AssetLatestrelease struct {
	Name    string `json:"name,omitempty"`
	Version string `json:"version,omitempty"`
}

AssetLatestrelease Provides newest non-archived release and version. Will be unassigned if no releases exist. (catalog.v1alpha1.Asset)

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,omitempty"`
	ApiServiceInstance string `json:"apiServiceInstance,omitempty"`
	// name of the stage
	Stage string `json:"stage,omitempty"`
	// list of categories for the asset.
	Categories []string `json:"categories,omitempty"`
	// title for generated asset resource.
	AssetResourceTitle string `json:"assetResourceTitle,omitempty"`
}

AssetMappingSpecInputs The list of the inputs provided to the template. (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"`
	Marketplace AssetRequestMarketplace `json:"marketplace"`
	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,omitempty"`
	Policies AssetRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

AssetRequestDefinitionSpecProvision (catalog.v1alpha1.AssetRequestDefinition)

type AssetRequestDefinitionSpecProvisionPolicies ¶ added in v1.1.49

type AssetRequestDefinitionSpecProvisionPolicies struct {
	// Defines on if AssetRequests using this definition can be moved from their current Subscription to a new one.
	Transferable bool `json:"transferable,omitempty"`
}

AssetRequestDefinitionSpecProvisionPolicies Defines the policies applied on the AccessRequests generated using this definition. (catalog.v1alpha1.AssetRequestDefinition)

type AssetRequestMarketplace ¶ added in v1.1.41

type AssetRequestMarketplace struct {
	// The name of the Marketplace.
	Name     string                          `json:"name"`
	Resource AssetRequestMarketplaceResource `json:"resource"`
}

AssetRequestMarketplace Details about the marketplace Access Request. (catalog.v1alpha1.AssetRequest)

type AssetRequestMarketplaceResource ¶ added in v1.1.41

type AssetRequestMarketplaceResource struct {
	Metadata AssetRequestMarketplaceResourceMetadata `json:"metadata"`
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `json:"owner,omitempty"`
}

AssetRequestMarketplaceResource The Marketplace Access Request resource details. (catalog.v1alpha1.AssetRequest)

type AssetRequestMarketplaceResourceMetadata ¶ added in v1.1.41

type AssetRequestMarketplaceResourceMetadata 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"`
}

AssetRequestMarketplaceResourceMetadata Marketplace Access Request metadata. (catalog.v1alpha1.AssetRequest)

type AssetRequestMarketplaceResourceOwner ¶ added in v1.1.41

type AssetRequestMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                           `json:"id,omitempty"`
	Organization AssetRequestMarketplaceResourceOwnerOrganization `json:"organization"`
}

AssetRequestMarketplaceResourceOwner Owner of the Access Request. (catalog.v1alpha1.AssetRequest)

type AssetRequestMarketplaceResourceOwnerOrganization ¶ added in v1.1.41

type AssetRequestMarketplaceResourceOwnerOrganization struct {
	// Id of the organization.
	Id string `json:"id"`
}

AssetRequestMarketplaceResourceOwnerOrganization Organization details. (catalog.v1alpha1.AssetRequest)

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"`
	CredentialRequestDefinitions []string `json:"credentialRequestDefinitions,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"`
	// The AssetRequest from which this resource is being migrated from. Reference must be in the same Application.
	AssetRequest string `json:"assetRequest,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"`
	// The version of referenced resource.
	Version string `json:"version,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"`
	AutoRelease AssetSpecAutoRelease `json:"autoRelease,omitempty"`
}

AssetSpec (catalog.v1alpha1.Asset)

type AssetSpecAutoRelease ¶ added in v1.1.41

type AssetSpecAutoRelease struct {
	ReleaseType      string                               `json:"releaseType"`
	PreviousReleases AssetSpecAutoReleasePreviousReleases `json:"previousReleases,omitempty"`
}

AssetSpecAutoRelease Defines if an asset should create releases everytime there is an update to the resources. (catalog.v1alpha1.Asset)

type AssetSpecAutoReleasePreviousReleases ¶ added in v1.1.44

type AssetSpecAutoReleasePreviousReleases struct {
	// Updates all prior non-archived releases to the deprecated state.
	UpdateState string `json:"updateState,omitempty"`
}

AssetSpecAutoReleasePreviousReleases (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"`
	Policies   AuthorizationProfilePolicies   `json:"policies"`
	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 AuthorizationProfilePolicies ¶ added in v1.1.52

type AuthorizationProfilePolicies struct {
	Credentials AuthorizationProfilePoliciesCredentials `json:"credentials,omitempty"`
}

AuthorizationProfilePolicies (catalog.v1alpha1.AuthorizationProfile)

type AuthorizationProfilePoliciesCredentials ¶ added in v1.1.52

type AuthorizationProfilePoliciesCredentials struct {
	Expiry AuthorizationProfilePoliciesCredentialsExpiry `json:"expiry,omitempty"`
}

AuthorizationProfilePoliciesCredentials Defines the policies for the AuthorizationProfile's Credentials generated with the profiles CredentialRequestDefinitions. (catalog.v1alpha1.AuthorizationProfile)

type AuthorizationProfilePoliciesCredentialsExpiry ¶ added in v1.1.52

type AuthorizationProfilePoliciesCredentialsExpiry struct {
	Notifications AuthorizationProfilePoliciesCredentialsExpiryNotifications `json:"notifications,omitempty"`
}

AuthorizationProfilePoliciesCredentialsExpiry Expiry properties for Credentials linked to this definition. (catalog.v1alpha1.AuthorizationProfile)

type AuthorizationProfilePoliciesCredentialsExpiryNotifications ¶ added in v1.1.52

type AuthorizationProfilePoliciesCredentialsExpiryNotifications struct {
	// The days interval at which to send notifications before the Credentials are to expire.
	DaysBefore []int32 `json:"daysBefore,omitempty"`
}

AuthorizationProfilePoliciesCredentialsExpiryNotifications Notifications properties for Credentials expiry. (catalog.v1alpha1.AuthorizationProfile)

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
	Icon  interface{}  `json:"icon"`
	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 NewCategory ¶

func NewCategory(name string) *Category

NewCategory creates an empty *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 ¶

func (res *Category) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Category) PluralName ¶

func (res *Category) PluralName() string

PluralName returns the plural name of the resource

func (*Category) UnmarshalJSON ¶

func (res *Category) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type CategorySpec ¶

type CategorySpec struct {
	// Markdown representing the category description.
	Description string `json:"description,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Restriction interface{} `json:"restriction,omitempty"`
}

CategorySpec (catalog.v1alpha1.Category)

type CategorySpecApiServiceRestriction ¶ added in v1.1.35

type CategorySpecApiServiceRestriction struct {
	Type string `json:"type"`
}

CategorySpecApiServiceRestriction struct for CategorySpecApiServiceRestriction

type CategorySpecAssetRestriction ¶ added in v1.1.35

type CategorySpecAssetRestriction struct {
	Type string `json:"type"`
}

CategorySpecAssetRestriction struct for CategorySpecAssetRestriction

type CategorySpecProductRestriction ¶ added in v1.1.35

type CategorySpecProductRestriction struct {
	Type        string                                    `json:"type"`
	Marketplace CategorySpecProductRestrictionMarketplace `json:"marketplace,omitempty"`
}

CategorySpecProductRestriction struct for CategorySpecProductRestriction

type CategorySpecProductRestrictionMarketplace ¶ added in v1.1.35

type CategorySpecProductRestrictionMarketplace struct {
	// Property not used anymore. CategoryVisibility resource to be used to control the featured property of the Category in a specific Marketplace.
	Featured bool `json:"featured,omitempty"`
	// Defines if the Category is visible in the marketplace.
	Visible bool `json:"visible"`
}

CategorySpecProductRestrictionMarketplace Defines properties to be applied to all marketplaces.

type CategoryVisibility ¶ added in v1.1.49

type CategoryVisibility struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner           `json:"owner"`
	Spec  CategoryVisibilitySpec `json:"spec"`
}

CategoryVisibility Resource

func CategoryVisibilityFromInstanceArray ¶ added in v1.1.49

func CategoryVisibilityFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*CategoryVisibility, error)

CategoryVisibilityFromInstanceArray converts a []*ResourceInstance to a []*CategoryVisibility

func NewCategoryVisibility ¶ added in v1.1.49

func NewCategoryVisibility(name, scopeName string) *CategoryVisibility

NewCategoryVisibility creates an empty *CategoryVisibility

func (*CategoryVisibility) AsInstance ¶ added in v1.1.49

func (res *CategoryVisibility) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a CategoryVisibility to a ResourceInstance

func (*CategoryVisibility) FromInstance ¶ added in v1.1.49

func (res *CategoryVisibility) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a CategoryVisibility

func (*CategoryVisibility) MarshalJSON ¶ added in v1.1.49

func (res *CategoryVisibility) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*CategoryVisibility) PluralName ¶ added in v1.1.49

func (res *CategoryVisibility) PluralName() string

PluralName returns the plural name of the resource

func (*CategoryVisibility) UnmarshalJSON ¶ added in v1.1.49

func (res *CategoryVisibility) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type CategoryVisibilitySpec ¶ added in v1.1.49

type CategoryVisibilitySpec struct {
	Category string `json:"category"`
	// Defines if the Category is featured in the marketplace.
	Featured bool `json:"featured"`
}

CategoryVisibilitySpec (catalog.v1alpha1.CategoryVisibility)

type ConsumerProductVisibility ¶ added in v1.1.44

type ConsumerProductVisibility struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner                  `json:"owner"`
	Spec  ConsumerProductVisibilitySpec `json:"spec"`
}

ConsumerProductVisibility Resource

func ConsumerProductVisibilityFromInstanceArray ¶ added in v1.1.44

func ConsumerProductVisibilityFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerProductVisibility, error)

ConsumerProductVisibilityFromInstanceArray converts a []*ResourceInstance to a []*ConsumerProductVisibility

func NewConsumerProductVisibility ¶ added in v1.1.44

func NewConsumerProductVisibility(name, scopeName string) *ConsumerProductVisibility

NewConsumerProductVisibility creates an empty *ConsumerProductVisibility

func (*ConsumerProductVisibility) AsInstance ¶ added in v1.1.44

func (res *ConsumerProductVisibility) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a ConsumerProductVisibility to a ResourceInstance

func (*ConsumerProductVisibility) FromInstance ¶ added in v1.1.44

func (res *ConsumerProductVisibility) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a ConsumerProductVisibility

func (*ConsumerProductVisibility) MarshalJSON ¶ added in v1.1.44

func (res *ConsumerProductVisibility) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*ConsumerProductVisibility) PluralName ¶ added in v1.1.44

func (res *ConsumerProductVisibility) PluralName() string

PluralName returns the plural name of the resource

func (*ConsumerProductVisibility) UnmarshalJSON ¶ added in v1.1.44

func (res *ConsumerProductVisibility) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ConsumerProductVisibilitySpec ¶ added in v1.1.44

type ConsumerProductVisibilitySpec struct {
	// Defines where the visibility settings apply.
	Products []ConsumerProductVisibilitySpecProducts `json:"products"`
	// GENERATE: The following code has been modified after code generation
	Subjects []interface{} `json:"subjects,omitempty"`
}

ConsumerProductVisibilitySpec (catalog.v1alpha1.ConsumerProductVisibility)

type ConsumerProductVisibilitySpecAuthenticatedRef ¶ added in v1.1.52

type ConsumerProductVisibilitySpecAuthenticatedRef struct {
	Type string `json:"type"`
}

ConsumerProductVisibilitySpecAuthenticatedRef struct for ConsumerProductVisibilitySpecAuthenticatedRef

type ConsumerProductVisibilitySpecOrgRef ¶ added in v1.1.44

type ConsumerProductVisibilitySpecOrgRef struct {
	Type string `json:"type"`
	// ID of the consumer organization.
	Id string `json:"id"`
}

ConsumerProductVisibilitySpecOrgRef struct for ConsumerProductVisibilitySpecOrgRef

type ConsumerProductVisibilitySpecProducts ¶ added in v1.1.44

type ConsumerProductVisibilitySpecProducts struct {
	Name string `json:"name"`
}

ConsumerProductVisibilitySpecProducts (catalog.v1alpha1.ConsumerProductVisibility)

type Credential ¶

type Credential struct {
	apiv1.ResourceMeta
	Data        interface{}           `json:"data"`
	Expiration  CredentialExpiration  `json:"expiration"`
	Marketplace CredentialMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner          `json:"owner"`
	Policies    CredentialPolicies    `json:"policies"`
	References  CredentialReferences  `json:"references"`
	Spec        CredentialSpec        `json:"spec"`
	State       CredentialState       `json:"state"`
	// Status      CredentialStatus      `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Credential Resource

func CredentialFromInstanceArray ¶

func CredentialFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Credential, error)

CredentialFromInstanceArray converts a []*ResourceInstance to a []*Credential

func NewCredential ¶

func NewCredential(name, scopeName string) *Credential

NewCredential creates an empty *Credential

func (*Credential) AsInstance ¶

func (res *Credential) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a Credential to a ResourceInstance

func (*Credential) FromInstance ¶

func (res *Credential) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a Credential

func (*Credential) MarshalJSON ¶

func (res *Credential) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Credential) PluralName ¶

func (res *Credential) PluralName() string

PluralName returns the plural name of the resource

func (*Credential) UnmarshalJSON ¶

func (res *Credential) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type CredentialExpiration ¶ added in v1.1.49

type CredentialExpiration struct {
	Notification CredentialExpirationNotification `json:"notification,omitempty"`
}

CredentialExpiration Credential expiration properties. (catalog.v1alpha1.Credential)

type CredentialExpirationNotification ¶ added in v1.1.49

type CredentialExpirationNotification struct {
	// Latest scheduled command id for sending notifications.
	CommandId string `json:"commandId"`
}

CredentialExpirationNotification Details about the scheduled notification job. (catalog.v1alpha1.Credential)

type CredentialMarketplace ¶ added in v1.1.35

type CredentialMarketplace struct {
	// The name of the Marketplace.
	Name     string                        `json:"name"`
	Resource CredentialMarketplaceResource `json:"resource"`
}

CredentialMarketplace Details about the marketplace Application. (catalog.v1alpha1.Credential)

type CredentialMarketplaceResource ¶ added in v1.1.35

type CredentialMarketplaceResource struct {
	Metadata CredentialMarketplaceResourceMetadata `json:"metadata"`
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `json:"owner,omitempty"`
}

CredentialMarketplaceResource The Marketplace Credential resource details. (catalog.v1alpha1.Credential)

type CredentialMarketplaceResourceMetadata ¶ added in v1.1.35

type CredentialMarketplaceResourceMetadata 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"`
}

CredentialMarketplaceResourceMetadata Marketplace Application metadata. (catalog.v1alpha1.Credential)

type CredentialMarketplaceResourceOwner ¶ added in v1.1.35

type CredentialMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                         `json:"id,omitempty"`
	Organization CredentialMarketplaceResourceOwnerOrganization `json:"organization"`
}

CredentialMarketplaceResourceOwner Owner of the Credential. (catalog.v1alpha1.Credential)

type CredentialMarketplaceResourceOwnerOrganization ¶ added in v1.1.35

type CredentialMarketplaceResourceOwnerOrganization struct {
	// Id of the organization.
	Id string `json:"id"`
}

CredentialMarketplaceResourceOwnerOrganization Organization details. (catalog.v1alpha1.Credential)

type CredentialPolicies ¶ added in v1.1.35

type CredentialPolicies struct {
	Expiry CredentialPoliciesExpiry `json:"expiry,omitempty"`
}

CredentialPolicies (catalog.v1alpha1.Credential)

type CredentialPoliciesExpiry ¶ added in v1.1.35

type CredentialPoliciesExpiry struct {
	// Time when the Credential is set to be expired.
	Timestamp time.Time `json:"timestamp"`
}

CredentialPoliciesExpiry (catalog.v1alpha1.Credential)

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 ¶

AsInstance converts a CredentialRequestDefinition to a ResourceInstance

func (*CredentialRequestDefinition) FromInstance ¶

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"`
	Policies CredentialRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

CredentialRequestDefinitionSpecProvision (catalog.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpecProvisionPolicies ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPolicies struct {
	// Defines on if Credentials using this definitions can be renewed.
	Renewable bool `json:"renewable,omitempty"`
	// Defines on if Credentials can be suspended.
	Suspendable bool                                                   `json:"suspendable,omitempty"`
	Expiry      CredentialRequestDefinitionSpecProvisionPoliciesExpiry `json:"expiry,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPolicies Defines the policies applied on the Credentials generated using this definition. (catalog.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpecProvisionPoliciesExpiry ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPoliciesExpiry struct {
	// The number of days after the Credentials are considered to be expired.
	Period int32 `json:"period"`
	// The actions taken when the Credentials expire.
	Actions []CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions `json:"actions,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPoliciesExpiry Expiry properties for Credentials linked to this definition. (catalog.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions ¶ added in v1.1.35

type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions struct {
	// The type of the action taken when the Credential using this definition expires.
	Type string `json:"type,omitempty"`
}

CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions (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"`
	State CredentialSpecState    `json:"state,omitempty"`
}

CredentialSpec (catalog.v1alpha1.Credential)

type CredentialSpecState ¶ added in v1.1.35

type CredentialSpecState struct {
	Name string `json:"name"`
	// Additional info on the state.
	Reason string `json:"reason,omitempty"`
	// Defines if credential needs to be rotated.
	Rotate bool `json:"rotate,omitempty"`
}

CredentialSpecState Desired state of the Credential. (catalog.v1alpha1.Credential)

type CredentialState ¶ added in v1.1.35

type CredentialState struct {
	Name string `json:"name"`
	// Additional info on the state.
	Reason string `json:"reason,omitempty"`
}

CredentialState Current state of the Credential. (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 ¶

func NewDocument(name, scopeKind, scopeName string) (*Document, error)

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 ¶

func (res *Document) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Document) PluralName ¶

func (res *Document) PluralName() string

PluralName returns the plural name of the resource

func (*Document) UnmarshalJSON ¶

func (res *Document) UnmarshalJSON(data []byte) error

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 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
	Billing MarketplaceBilling `json:"billing"`
	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 MarketplaceBilling ¶ added in v1.1.52

type MarketplaceBilling struct {
	Payment MarketplaceBillingPayment `json:"payment,omitempty"`
}

MarketplaceBilling Billing options for the Marketplace. (catalog.v1alpha1.Marketplace)

type MarketplaceBillingPayment ¶ added in v1.1.52

type MarketplaceBillingPayment struct {
	// The billing system type used for this Marketplace.
	Type string `json:"type"`
}

MarketplaceBillingPayment Supported payment properties. (catalog.v1alpha1.Marketplace)

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"`
	Latestrelease ProductLatestrelease `json:"latestrelease"`
	Owner         *apiv1.Owner         `json:"owner"`
	References    ProductReferences    `json:"references"`
	Spec          ProductSpec          `json:"spec"`
	State         ProductState         `json:"state"`
	// Status        ProductStatus        `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Product Resource

func NewProduct ¶

func NewProduct(name string) *Product

NewProduct creates an empty *Product

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 ¶

func (res *Product) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Product) PluralName ¶

func (res *Product) PluralName() string

PluralName returns the plural name of the resource

func (*Product) UnmarshalJSON ¶

func (res *Product) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductLatestrelease ¶ added in v1.1.52

type ProductLatestrelease struct {
	Name    string `json:"name,omitempty"`
	TagName string `json:"tagName,omitempty"`
	Version string `json:"version,omitempty"`
}

ProductLatestrelease Provides newest non-archived release and version. Will be unassigned if no releases exist. (catalog.v1alpha1.Product)

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 ProductPlanJob ¶ added in v1.1.49

type ProductPlanJob struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner       `json:"owner"`
	Spec  ProductPlanJobSpec `json:"spec"`
	// Status ProductPlanJobStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

ProductPlanJob Resource

func NewProductPlanJob ¶ added in v1.1.49

func NewProductPlanJob(name, scopeName string) *ProductPlanJob

NewProductPlanJob creates an empty *ProductPlanJob

func ProductPlanJobFromInstanceArray ¶ added in v1.1.49

func ProductPlanJobFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ProductPlanJob, error)

ProductPlanJobFromInstanceArray converts a []*ResourceInstance to a []*ProductPlanJob

func (*ProductPlanJob) AsInstance ¶ added in v1.1.49

func (res *ProductPlanJob) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a ProductPlanJob to a ResourceInstance

func (*ProductPlanJob) FromInstance ¶ added in v1.1.49

func (res *ProductPlanJob) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a ProductPlanJob

func (*ProductPlanJob) MarshalJSON ¶ added in v1.1.49

func (res *ProductPlanJob) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*ProductPlanJob) PluralName ¶ added in v1.1.49

func (res *ProductPlanJob) PluralName() string

PluralName returns the plural name of the resource

func (*ProductPlanJob) UnmarshalJSON ¶ added in v1.1.49

func (res *ProductPlanJob) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type ProductPlanJobSpec ¶ added in v1.1.49

type ProductPlanJobSpec struct {
	// GENERATE: The following code has been modified after code generation
	Action interface{}            `json:"action"`
	When   ProductPlanJobSpecWhen `json:"when,omitempty"`
}

ProductPlanJobSpec (catalog.v1alpha1.ProductPlanJob)

type ProductPlanJobSpecSubscriptionsArchive ¶ added in v1.1.49

type ProductPlanJobSpecSubscriptionsArchive struct {
	Type string `json:"type"`
	// Description on why the subscriptions are being archived.
	Reason string `json:"reason,omitempty"`
}

ProductPlanJobSpecSubscriptionsArchive struct for ProductPlanJobSpecSubscriptionsArchive

type ProductPlanJobSpecSubscriptionsMigration ¶ added in v1.1.49

type ProductPlanJobSpecSubscriptionsMigration struct {
	Type string `json:"type"`
	// The Product Plan to which to migrate the existing Product Subscriptions.
	ProductPlan string `json:"productPlan"`
	// Description on why the subscriptions was migrated.
	Reason string `json:"reason,omitempty"`
	// Filter the subscriptions that are wanted to be migrated.
	Filters []ProductPlanJobSpecSubscriptionsMigrationFilters `json:"filters,omitempty"`
}

ProductPlanJobSpecSubscriptionsMigration struct for ProductPlanJobSpecSubscriptionsMigration

type ProductPlanJobSpecSubscriptionsMigrationFilters ¶ added in v1.1.57

type ProductPlanJobSpecSubscriptionsMigrationFilters struct {
	// Reference to the Subscription wanted to be migrated.
	Subscription string `json:"subscription,omitempty"`
}

ProductPlanJobSpecSubscriptionsMigrationFilters struct for ProductPlanJobSpecSubscriptionsMigrationFilters

type ProductPlanJobSpecWhen ¶ added in v1.1.49

type ProductPlanJobSpecWhen struct {
	// Time when the migration should execute.
	Timestamp time.Time `json:"timestamp,omitempty"`
}

ProductPlanJobSpecWhen Describes when to execute the action. (catalog.v1alpha1.ProductPlanJob)

type ProductPlanJobStatus ¶ added in v1.1.49

type ProductPlanJobStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	Reasons []ProductPlanJobStatusReasons `json:"reasons,omitempty"`
}

ProductPlanJobStatus (catalog.v1alpha1.ProductPlanJob)

type ProductPlanJobStatusReasons ¶ added in v1.1.49

type ProductPlanJobStatusReasons 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.ProductPlanJob)
	Meta map[string]map[string]interface{} `json:"meta,omitempty"`
}

ProductPlanJobStatusReasons (catalog.v1alpha1.ProductPlanJob)

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.
	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 interval 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"`
	// The marketplaces this product has been published to.
	Marketplaces []ProductReferencesMarketplaces `json:"marketplaces,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 ProductReferencesMarketplaces ¶ added in v1.1.49

type ProductReferencesMarketplaces struct {
	// The Marketplace reference.
	Name string `json:"name,omitempty"`
	// The PublishedProduct reference.
	PublishedProduct string `json:"publishedProduct,omitempty"`
}

ProductReferencesMarketplaces (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"`
	// APIService references belonging to referenced AssetReleases.
	ApiServices []string `json:"apiServices,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      ProductReleaseStatusPendingMeta `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   ProductReleaseStatusPendingMeta `json:"meta,omitempty"`
}

ProductReleaseStatusPending struct for ProductReleaseStatusPending

type ProductReleaseStatusPendingMeta ¶ added in v1.1.35

type ProductReleaseStatusPendingMeta struct {
	Asset        string `json:"asset,omitempty"`
	AssetRelease string `json:"assetRelease,omitempty"`
}

ProductReleaseStatusPendingMeta struct for ProductReleaseStatusPendingMeta

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   ProductReleaseStatusPendingMeta `json:"meta,omitempty"`
}

ProductReleaseStatusSuccess struct for ProductReleaseStatusSuccess

type ProductSpec ¶

type ProductSpec struct {
	// description of the Product.
	Description    string   `json:"description,omitempty"`
	SupportContact string   `json:"supportContact,omitempty"`
	Categories     []string `json:"categories,omitempty"`
	// Defines all the Assets that the Product will be built from.
	Assets      []ProductSpecAssets    `json:"assets,omitempty"`
	AutoRelease ProductSpecAutoRelease `json:"autoRelease,omitempty"`
}

ProductSpec (catalog.v1alpha1.Product)

type ProductSpecAssets ¶

type ProductSpecAssets struct {
	Name    string             `json:"name"`
	Filters ProductSpecFilters `json:"filters,omitempty"`
}

ProductSpecAssets (catalog.v1alpha1.Product)

type ProductSpecAutoRelease ¶ added in v1.1.41

type ProductSpecAutoRelease struct {
	ReleaseType      string                                 `json:"releaseType"`
	PreviousReleases ProductSpecAutoReleasePreviousReleases `json:"previousReleases,omitempty"`
}

ProductSpecAutoRelease Defines if a product should create releases everytime there is an update to the product references. (catalog.v1alpha1.Product)

type ProductSpecAutoReleasePreviousReleases ¶ added in v1.1.44

type ProductSpecAutoReleasePreviousReleases struct {
	// Updates all prior non-archived releases to the deprecated state.
	UpdateState string `json:"updateState,omitempty"`
}

ProductSpecAutoReleasePreviousReleases (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 ProductStatus ¶ added in v1.1.35

type ProductStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	Reasons []ProductStatusReasons `json:"reasons,omitempty"`
}

ProductStatus (catalog.v1alpha1.Product)

type ProductStatusMeta ¶ added in v1.1.35

type ProductStatusMeta struct {
	Asset        string `json:"asset,omitempty"`
	AssetRelease string `json:"assetRelease,omitempty"`
}

ProductStatusMeta (catalog.v1alpha1.Product)

type ProductStatusReasons ¶ added in v1.1.35

type ProductStatusReasons struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time         `json:"timestamp"`
	Meta      ProductStatusMeta `json:"meta,omitempty"`
}

ProductStatusReasons (catalog.v1alpha1.Product)

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"`
	// Determines if the list of subjects should be excluded from the product visibility.
	Exclude bool `json:"exclude,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Subjects []interface{} `json:"subjects,omitempty"`
}

ProductVisibilitySpec (catalog.v1alpha1.ProductVisibility)

type ProductVisibilitySpecAuthenticatedRef ¶ added in v1.1.52

type ProductVisibilitySpecAuthenticatedRef struct {
	Type string `json:"type"`
}

ProductVisibilitySpecAuthenticatedRef struct for ProductVisibilitySpecAuthenticatedRef

type ProductVisibilitySpecProducts ¶

type ProductVisibilitySpecProducts struct {
	Name string `json:"name"`
}

ProductVisibilitySpecProducts (catalog.v1alpha1.ProductVisibility)

type ProductVisibilitySpecTagRef ¶ added in v1.1.35

type ProductVisibilitySpecTagRef struct {
	Type string `json:"type"`
	// Value of a platform team tag.
	Value string `json:"value"`
}

ProductVisibilitySpecTagRef struct for ProductVisibilitySpecTagRef

type ProductVisibilitySpecTeamRef ¶ added in v1.1.35

type ProductVisibilitySpecTeamRef struct {
	Type string `json:"type"`
	// ID of the subject
	Id string `json:"id"`
}

ProductVisibilitySpecTeamRef struct for ProductVisibilitySpecTeamRef

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"`
	Resources PublishedProductSpecResources `json:"resources,omitempty"`
}

PublishedProductSpec (catalog.v1alpha1.PublishedProduct)

type PublishedProductSpecGroupByAssetTitle ¶ added in v1.1.57

type PublishedProductSpecGroupByAssetTitle struct {
	Type string `json:"type"`
}

PublishedProductSpecGroupByAssetTitle struct for PublishedProductSpecGroupByAssetTitle

type PublishedProductSpecProduct ¶

type PublishedProductSpecProduct struct {
	Name string `json:"name,omitempty"`
}

PublishedProductSpecProduct (catalog.v1alpha1.PublishedProduct)

type PublishedProductSpecResources ¶ added in v1.1.57

type PublishedProductSpecResources struct {
	// GENERATE: The following code has been modified after code generation
	GroupBy interface{} `json:"groupBy,omitempty"`
}

PublishedProductSpecResources (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 NewQuota ¶

func NewQuota(name, scopeName string) *Quota

NewQuota creates an empty *Quota

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 ¶

func (res *Quota) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Quota) PluralName ¶

func (res *Quota) PluralName() string

PluralName returns the plural name of the resource

func (*Quota) UnmarshalJSON ¶

func (res *Quota) UnmarshalJSON(data []byte) error

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 QuotaSpecGraduatedPricingType ¶ added in v1.1.35

type QuotaSpecGraduatedPricingType struct {
	Type string `json:"type"`
	// The tiered limits to set.
	// GENERATE: The following code has been modified after code generation
	Limit interface{} `json:"limit"`
}

QuotaSpecGraduatedPricingType struct for QuotaSpecGraduatedPricingType

type QuotaSpecLimitTypeLoose ¶

type QuotaSpecLimitTypeLoose struct {
	Type string `json:"type"`
	// The limit of the unit that is provided.
	Value    int32                           `json:"value"`
	Overages QuotaSpecLimitTypeLooseOverages `json:"overages"`
}

QuotaSpecLimitTypeLoose struct for QuotaSpecLimitTypeLoose

type QuotaSpecLimitTypeLooseOverages ¶

type QuotaSpecLimitTypeLooseOverages struct {
	// The overage price per unit.
	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.
	Value int32 `json:"value"`
}

QuotaSpecLimitTypeStrict struct for QuotaSpecLimitTypeStrict

type QuotaSpecLimitTypeTiered ¶ added in v1.1.35

type QuotaSpecLimitTypeTiered struct {
	Type  string                          `json:"type"`
	Tiers []QuotaSpecLimitTypeTieredTiers `json:"tiers"`
}

QuotaSpecLimitTypeTiered struct for QuotaSpecLimitTypeTiered

type QuotaSpecLimitTypeTieredTiers ¶ added in v1.1.35

type QuotaSpecLimitTypeTieredTiers struct {
	// The limit start of the tier provided.
	From int32 `json:"from"`
	// The limit end of the tier provided.
	To int32 `json:"to"`
	// The tier price.
	Cost float64 `json:"cost"`
	// The flat fee for the tier.
	FlatFee float64 `json:"flatFee"`
}

QuotaSpecLimitTypeTieredTiers struct for QuotaSpecLimitTypeTieredTiers

type QuotaSpecPerUnitPricingType ¶ added in v1.1.44

type QuotaSpecPerUnitPricingType struct {
	Type string `json:"type"`
	// The cost per unit of usage.
	Cost float64 `json:"cost"`
}

QuotaSpecPerUnitPricingType struct for QuotaSpecPerUnitPricingType

type QuotaSpecUnlimitedPricingType ¶

type QuotaSpecUnlimitedPricingType struct {
	Type string `json:"type"`
}

QuotaSpecUnlimitedPricingType struct for QuotaSpecUnlimitedPricingType

type QuotaSpecVolumePricingType ¶ added in v1.1.35

type QuotaSpecVolumePricingType struct {
	Type string `json:"type"`
	// The tiered limits set.
	// GENERATE: The following code has been modified after code generation
	Limit interface{} `json:"limit"`
}

QuotaSpecVolumePricingType struct for QuotaSpecVolumePricingType

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"`
	PreviousReleases ReleaseTagSpecPreviousReleases `json:"previousReleases,omitempty"`
}

ReleaseTagSpec (catalog.v1alpha1.ReleaseTag)

type ReleaseTagSpecPreviousReleases ¶ added in v1.1.44

type ReleaseTagSpecPreviousReleases struct {
	// Updates all prior non-archived releases to the deprecated state.
	UpdateState string `json:"updateState,omitempty"`
}

ReleaseTagSpecPreviousReleases (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 occurred.
	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 occurred.
	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 ¶

func NewResource(name, scopeKind, scopeName string) (*Resource, error)

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 ¶

func (res *Resource) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Resource) PluralName ¶

func (res *Resource) PluralName() string

PluralName returns the plural name of the resource

func (*Resource) UnmarshalJSON ¶

func (res *Resource) UnmarshalJSON(data []byte) error

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 NewSecret ¶

func NewSecret(name, scopeName string) *Secret

NewSecret creates an empty *Secret

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 ¶

func (res *Secret) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Secret) PluralName ¶

func (res *Secret) PluralName() string

PluralName returns the plural name of the resource

func (*Secret) UnmarshalJSON ¶

func (res *Secret) UnmarshalJSON(data []byte) error

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 NewStage ¶

func NewStage(name string) *Stage

NewStage creates an empty *Stage

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 ¶

func (res *Stage) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Stage) PluralName ¶

func (res *Stage) PluralName() string

PluralName returns the plural name of the resource

func (*Stage) UnmarshalJSON ¶

func (res *Stage) UnmarshalJSON(data []byte) error

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"`
	Billing     SubscriptionBilling     `json:"billing"`
	Marketplace SubscriptionMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner            `json:"owner"`
	References  SubscriptionReferences  `json:"references"`
	Spec        SubscriptionSpec        `json:"spec"`
	State       SubscriptionState       `json:"state"`
	// 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 SubscriptionBilling ¶ added in v1.1.52

type SubscriptionBilling struct {
	// GENERATE: The following code has been modified after code generation
	Payment interface{} `json:"payment,omitempty"`
}

SubscriptionBilling Details about the Subscription billing. (catalog.v1alpha1.Subscription)

type SubscriptionBillingPaymentTypeStripe ¶ added in v1.1.52

type SubscriptionBillingPaymentTypeStripe struct {
	Type string `json:"type,omitempty"`
}

SubscriptionBillingPaymentTypeStripe struct for SubscriptionBillingPaymentTypeStripe

type SubscriptionInvoice ¶ added in v1.1.52

type SubscriptionInvoice struct {
	apiv1.ResourceMeta
	Billing     SubscriptionInvoiceBilling     `json:"billing"`
	Marketplace SubscriptionInvoiceMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner                   `json:"owner"`
	Spec        SubscriptionInvoiceSpec        `json:"spec"`
	State       SubscriptionInvoiceState       `json:"state"`
	// Status      SubscriptionInvoiceStatus      `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

SubscriptionInvoice Resource

func NewSubscriptionInvoice ¶ added in v1.1.52

func NewSubscriptionInvoice(name, scopeName string) *SubscriptionInvoice

NewSubscriptionInvoice creates an empty *SubscriptionInvoice

func SubscriptionInvoiceFromInstanceArray ¶ added in v1.1.52

func SubscriptionInvoiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SubscriptionInvoice, error)

SubscriptionInvoiceFromInstanceArray converts a []*ResourceInstance to a []*SubscriptionInvoice

func (*SubscriptionInvoice) AsInstance ¶ added in v1.1.52

func (res *SubscriptionInvoice) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a SubscriptionInvoice to a ResourceInstance

func (*SubscriptionInvoice) FromInstance ¶ added in v1.1.52

func (res *SubscriptionInvoice) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a SubscriptionInvoice

func (*SubscriptionInvoice) MarshalJSON ¶ added in v1.1.52

func (res *SubscriptionInvoice) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*SubscriptionInvoice) PluralName ¶ added in v1.1.52

func (res *SubscriptionInvoice) PluralName() string

PluralName returns the plural name of the resource

func (*SubscriptionInvoice) UnmarshalJSON ¶ added in v1.1.52

func (res *SubscriptionInvoice) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type SubscriptionInvoiceBilling ¶ added in v1.1.52

type SubscriptionInvoiceBilling struct {
	// GENERATE: The following code has been modified after code generation
	Payment interface{} `json:"payment,omitempty"`
}

SubscriptionInvoiceBilling (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceBillingPaymentTypeStripe ¶ added in v1.1.52

type SubscriptionInvoiceBillingPaymentTypeStripe struct {
	Type string `json:"type"`
	// Stripe Invoice id.
	Id string `json:"id,omitempty"`
	// Stripe Invoice number.
	Number string `json:"number,omitempty"`
	// Due date of the invoice.
	DueDate time.Time `json:"dueDate,omitempty"`
	// Issue date of the invoice.
	IssueDate time.Time                                         `json:"issueDate,omitempty"`
	Amount    SubscriptionInvoiceBillingPaymentTypeStripeAmount `json:"amount,omitempty"`
	// Link where the payment can be done.
	Link string `json:"link,omitempty"`
	// Link from where the invoice can be downloaded.
	DocumentLink string                                              `json:"documentLink,omitempty"`
	Customer     SubscriptionInvoiceBillingPaymentTypeStripeCustomer `json:"customer,omitempty"`
}

SubscriptionInvoiceBillingPaymentTypeStripe Defines Stripe type invoice payment details.

type SubscriptionInvoiceBillingPaymentTypeStripeAmount ¶ added in v1.1.52

type SubscriptionInvoiceBillingPaymentTypeStripeAmount struct {
	// Currency for the billed amount.
	Currency string `json:"currency"`
	// Total amount after discounts and taxes.
	Total float64 `json:"total"`
	// Final amount due at this time for this invoice.
	Due float64 `json:"due"`
}

SubscriptionInvoiceBillingPaymentTypeStripeAmount struct for SubscriptionInvoiceBillingPaymentTypeStripeAmount

type SubscriptionInvoiceBillingPaymentTypeStripeCustomer ¶ added in v1.1.52

type SubscriptionInvoiceBillingPaymentTypeStripeCustomer struct {
	Id string `json:"id"`
}

SubscriptionInvoiceBillingPaymentTypeStripeCustomer struct for SubscriptionInvoiceBillingPaymentTypeStripeCustomer

type SubscriptionInvoiceMarketplace ¶ added in v1.1.52

type SubscriptionInvoiceMarketplace struct {
	// The name of the Marketplace.
	Name     string                                 `json:"name"`
	Resource SubscriptionInvoiceMarketplaceResource `json:"resource"`
}

SubscriptionInvoiceMarketplace Details about the marketplace Subscription invoice. (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceMarketplaceResource ¶ added in v1.1.52

type SubscriptionInvoiceMarketplaceResource struct {
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `json:"owner,omitempty"`
}

SubscriptionInvoiceMarketplaceResource The Marketplace Subscription Invoice resource details. (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceMarketplaceResourceOwner ¶ added in v1.1.52

type SubscriptionInvoiceMarketplaceResourceOwner struct {
	// The type of the owner.
	Type string `json:"type,omitempty"`
	// Id of the owner of the resource.
	Id           string                                                  `json:"id,omitempty"`
	Organization SubscriptionInvoiceMarketplaceResourceOwnerOrganization `json:"organization"`
}

SubscriptionInvoiceMarketplaceResourceOwner Owner of the Subscription Invoice. (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceMarketplaceResourceOwnerOrganization ¶ added in v1.1.52

type SubscriptionInvoiceMarketplaceResourceOwnerOrganization struct {
	// Id of the organization.
	Id string `json:"id"`
}

SubscriptionInvoiceMarketplaceResourceOwnerOrganization Organization details. (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceSpec ¶ added in v1.1.52

type SubscriptionInvoiceSpec struct {
	Period SubscriptionInvoiceSpecPeriod   `json:"period,omitempty"`
	Quotas []SubscriptionInvoiceSpecQuotas `json:"quotas,omitempty"`
}

SubscriptionInvoiceSpec (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceSpecIntervals ¶ added in v1.1.57

type SubscriptionInvoiceSpecIntervals struct {
	// The start of the interval.
	From time.Time `json:"from"`
	// Number of consumed units in the interval.
	Units int32 `json:"units"`
	// In case the item is from a prior invoice for the same quota. Prior invoice items are included if the first item is not for the complete quota interval.
	PreviousInvoiceItem bool `json:"previousInvoiceItem,omitempty"`
}

SubscriptionInvoiceSpecIntervals (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceSpecPeriod ¶ added in v1.1.52

type SubscriptionInvoiceSpecPeriod struct {
	// Start time of the invoice.
	From time.Time `json:"from"`
	// End time of the invoice.
	To time.Time `json:"to"`
}

SubscriptionInvoiceSpecPeriod Describes the period for which the invoice was created. (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceSpecQuotas ¶ added in v1.1.52

type SubscriptionInvoiceSpecQuotas struct {
	Name string `json:"name,omitempty"`
	// Number of consumed units.
	Units int32 `json:"units,omitempty"`
	// Defined for quotas with overages per specific time period.
	Intervals []SubscriptionInvoiceSpecIntervals `json:"intervals,omitempty"`
}

SubscriptionInvoiceSpecQuotas (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceState ¶ added in v1.1.52

type SubscriptionInvoiceState struct {
	Name string `json:"name,omitempty"`
	// Additional info on the state.
	Reason string `json:"reason,omitempty"`
}

SubscriptionInvoiceState (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceStatus ¶ added in v1.1.52

type SubscriptionInvoiceStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	Reasons []SubscriptionInvoiceStatusReasons `json:"reasons,omitempty"`
}

SubscriptionInvoiceStatus (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionInvoiceStatusReasons ¶ added in v1.1.52

type SubscriptionInvoiceStatusReasons 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.SubscriptionInvoice)
	Meta map[string]map[string]interface{} `json:"meta,omitempty"`
}

SubscriptionInvoiceStatusReasons (catalog.v1alpha1.SubscriptionInvoice)

type SubscriptionJob ¶ added in v1.1.49

type SubscriptionJob struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner        `json:"owner"`
	Spec  SubscriptionJobSpec `json:"spec"`
	// Status SubscriptionJobStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

SubscriptionJob Resource

func NewSubscriptionJob ¶ added in v1.1.49

func NewSubscriptionJob(name, scopeName string) *SubscriptionJob

NewSubscriptionJob creates an empty *SubscriptionJob

func SubscriptionJobFromInstanceArray ¶ added in v1.1.49

func SubscriptionJobFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SubscriptionJob, error)

SubscriptionJobFromInstanceArray converts a []*ResourceInstance to a []*SubscriptionJob

func (*SubscriptionJob) AsInstance ¶ added in v1.1.49

func (res *SubscriptionJob) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a SubscriptionJob to a ResourceInstance

func (*SubscriptionJob) FromInstance ¶ added in v1.1.49

func (res *SubscriptionJob) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a SubscriptionJob

func (*SubscriptionJob) MarshalJSON ¶ added in v1.1.49

func (res *SubscriptionJob) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*SubscriptionJob) PluralName ¶ added in v1.1.49

func (res *SubscriptionJob) PluralName() string

PluralName returns the plural name of the resource

func (*SubscriptionJob) UnmarshalJSON ¶ added in v1.1.49

func (res *SubscriptionJob) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type SubscriptionJobSpec ¶ added in v1.1.49

type SubscriptionJobSpec struct {
	// GENERATE: The following code has been modified after code generation
	Action      interface{}                    `json:"action"`
	When        SubscriptionJobSpecWhen        `json:"when,omitempty"`
	PostExecute SubscriptionJobSpecPostExecute `json:"postExecute,omitempty"`
}

SubscriptionJobSpec (catalog.v1alpha1.SubscriptionJob)

type SubscriptionJobSpecApprovalStateChange ¶ added in v1.1.49

type SubscriptionJobSpecApprovalStateChange struct {
	Type string `json:"type"`
	// Used to override the migrated Subscription approval state.
	State string `json:"state"`
}

SubscriptionJobSpecApprovalStateChange struct for SubscriptionJobSpecApprovalStateChange

type SubscriptionJobSpecArchive ¶ added in v1.1.49

type SubscriptionJobSpecArchive struct {
	Type string `json:"type"`
	// Description on why the subscription was archived.
	Reason string `json:"reason,omitempty"`
	// The Product Plan Job which triggered the archival.
	ProductPlanJob string `json:"productPlanJob,omitempty"`
}

SubscriptionJobSpecArchive struct for SubscriptionJobSpecArchive

type SubscriptionJobSpecMigrateAssetRequests ¶ added in v1.1.49

type SubscriptionJobSpecMigrateAssetRequests struct {
	Type string `json:"type"`
}

SubscriptionJobSpecMigrateAssetRequests struct for SubscriptionJobSpecMigrateAssetRequests

type SubscriptionJobSpecPlanMigration ¶ added in v1.1.49

type SubscriptionJobSpecPlanMigration struct {
	Type string `json:"type"`
	// The Product Plan to which to migrate the Subscription.
	ProductPlan string `json:"productPlan"`
	// Description on why the subscription was migrated.
	Reason string `json:"reason,omitempty"`
	// The Product Plan Job which triggered the migration.
	ProductPlanJob string `json:"productPlanJob,omitempty"`
}

SubscriptionJobSpecPlanMigration struct for SubscriptionJobSpecPlanMigration

type SubscriptionJobSpecPostExecute ¶ added in v1.1.49

type SubscriptionJobSpecPostExecute struct {
	// Actions to be executed after the new Subscription was created.
	OnSuccess []map[string]interface{} `json:"onSuccess,omitempty"`
}

SubscriptionJobSpecPostExecute (catalog.v1alpha1.SubscriptionJob)

type SubscriptionJobSpecWhen ¶ added in v1.1.49

type SubscriptionJobSpecWhen struct {
	// Time when the migration should execute.
	Timestamp time.Time `json:"timestamp,omitempty"`
}

SubscriptionJobSpecWhen Describes when to execute the action. (catalog.v1alpha1.SubscriptionJob)

type SubscriptionJobStatus ¶ added in v1.1.49

type SubscriptionJobStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	Reasons []SubscriptionJobStatusReasons `json:"reasons,omitempty"`
}

SubscriptionJobStatus (catalog.v1alpha1.SubscriptionJob)

type SubscriptionJobStatusReasons ¶ added in v1.1.49

type SubscriptionJobStatusReasons 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.SubscriptionJob)
	Meta map[string]map[string]interface{} `json:"meta,omitempty"`
}

SubscriptionJobStatusReasons (catalog.v1alpha1.SubscriptionJob)

type SubscriptionMarketplace ¶

type SubscriptionMarketplace struct {
	// The name of the Marketplace.
	Name     string                          `json:"name"`
	Resource SubscriptionMarketplaceResource `json:"resource"`
}

SubscriptionMarketplace Details about the marketplace Subscription. (catalog.v1alpha1.Subscription)

type SubscriptionMarketplaceResource ¶

type SubscriptionMarketplaceResource struct {
	Metadata SubscriptionMarketplaceResourceMetadata `json:"metadata"`
	// GENERATE: The following code has been modified after code generation
	Owner *apiv1.Owner `json:"owner,omitempty"`
}

SubscriptionMarketplaceResource The Marketplace Subscription 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 Subscription 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 Subscription. (catalog.v1alpha1.Subscription)

type SubscriptionMarketplaceResourceOwnerOrganization ¶

type SubscriptionMarketplaceResourceOwnerOrganization struct {
	// Id of the organization.
	Id string `json:"id"`
}

SubscriptionMarketplaceResourceOwnerOrganization Organization details. (catalog.v1alpha1.Subscription)

type SubscriptionReferences ¶ added in v1.1.49

type SubscriptionReferences struct {
	// Reference a source Subscription if the Subscription was generated from a Subscription migration to a new Product Plan.
	Subscription string `json:"subscription,omitempty"`
}

SubscriptionReferences (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 SubscriptionState ¶ added in v1.1.49

type SubscriptionState struct {
	Name string `json:"name"`
	// Additional info on the state.
	Reason string `json:"reason,omitempty"`
}

SubscriptionState (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 SupportContact ¶ added in v1.1.41

type SupportContact struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner       `json:"owner"`
	Spec  SupportContactSpec `json:"spec"`
}

SupportContact Resource

func NewSupportContact ¶ added in v1.1.41

func NewSupportContact(name string) *SupportContact

NewSupportContact creates an empty *SupportContact

func SupportContactFromInstanceArray ¶ added in v1.1.41

func SupportContactFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SupportContact, error)

SupportContactFromInstanceArray converts a []*ResourceInstance to a []*SupportContact

func (*SupportContact) AsInstance ¶ added in v1.1.41

func (res *SupportContact) AsInstance() (*apiv1.ResourceInstance, error)

AsInstance converts a SupportContact to a ResourceInstance

func (*SupportContact) FromInstance ¶ added in v1.1.41

func (res *SupportContact) FromInstance(ri *apiv1.ResourceInstance) error

FromInstance converts a ResourceInstance to a SupportContact

func (*SupportContact) MarshalJSON ¶ added in v1.1.41

func (res *SupportContact) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*SupportContact) PluralName ¶ added in v1.1.41

func (res *SupportContact) PluralName() string

PluralName returns the plural name of the resource

func (*SupportContact) UnmarshalJSON ¶ added in v1.1.41

func (res *SupportContact) UnmarshalJSON(data []byte) error

UnmarshalJSON custom unmarshaller to handle sub resources

type SupportContactSpec ¶ added in v1.1.41

type SupportContactSpec struct {
	// Email address of the Support Contact.
	Email string `json:"email"`
	// String of the E.164 format of the phone number, e.g. +11234567899
	PhoneNumber         string                                `json:"phoneNumber,omitempty"`
	OfficeHours         SupportContactSpecOfficeHours         `json:"officeHours,omitempty"`
	AlternativeContacts SupportContactSpecAlternativeContacts `json:"alternativeContacts,omitempty"`
}

SupportContactSpec (catalog.v1alpha1.SupportContact)

type SupportContactSpecAlternativeContacts ¶ added in v1.1.44

type SupportContactSpecAlternativeContacts struct {
	// Alternative contact URLs.
	Urls []SupportContactSpecAlternativeContactsUrls `json:"urls,omitempty"`
}

SupportContactSpecAlternativeContacts (catalog.v1alpha1.SupportContact)

type SupportContactSpecAlternativeContactsUrls ¶ added in v1.1.44

type SupportContactSpecAlternativeContactsUrls struct {
	// URL hosting service name. Examples: msteams, slack
	Type string `json:"type,omitempty"`
	// Title for the provided URL.
	Title string `json:"title"`
	// URL value.
	Value string `json:"value"`
}

SupportContactSpecAlternativeContactsUrls (catalog.v1alpha1.SupportContact)

type SupportContactSpecOfficeHours ¶ added in v1.1.44

type SupportContactSpecOfficeHours struct {
	// Long IANA Time Zone format. Examples: 'America/New_York' or 'Europe/Paris'
	Timezone string                                 `json:"timezone"`
	Periods  []SupportContactSpecOfficeHoursPeriods `json:"periods"`
}

SupportContactSpecOfficeHours (catalog.v1alpha1.SupportContact)

type SupportContactSpecOfficeHoursPeriods ¶ added in v1.1.44

type SupportContactSpecOfficeHoursPeriods struct {
	// Time in 24hr ISO 8601 extended format (hh:mm). Valid values are 00:00-24:00.
	OpenTime string `json:"openTime"`
	OpenDay  string `json:"openDay"`
	// Time in 24hr ISO 8601 extended format (hh:mm). Valid values are 00:00-24:00.
	CloseTime string `json:"closeTime"`
	CloseDay  string `json:"closeDay"`
}

SupportContactSpecOfficeHoursPeriods (catalog.v1alpha1.SupportContact)

type SupportContactSpecUrlAlternativeContact ¶ added in v1.1.44

type SupportContactSpecUrlAlternativeContact struct {
	Type string `json:"type,omitempty"`
	// Name of the provider. Example: msteams, slack
	Provider string `json:"provider,omitempty"`
	// Title for the provided URL.
	Title string `json:"title"`
	// URL value.
	Value string `json:"value"`
}

SupportContactSpecUrlAlternativeContact struct for SupportContactSpecUrlAlternativeContact

type Webhook ¶

type Webhook struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner `json:"owner"`
	Spec  WebhookSpec  `json:"spec"`
}

Webhook Resource

func NewWebhook ¶

func NewWebhook(name, scopeName string) *Webhook

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 ¶

func (res *Webhook) MarshalJSON() ([]byte, error)

MarshalJSON custom marshaller to handle sub resources

func (*Webhook) PluralName ¶

func (res *Webhook) PluralName() string

PluralName returns the plural name of the resource

func (*Webhook) UnmarshalJSON ¶

func (res *Webhook) UnmarshalJSON(data []byte) error

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 ¶

Jump to

Keyboard shortcuts

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