management

package
v1.1.51 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: Apache-2.0 Imports: 4 Imported by: 4

Documentation

Index

Constants

View Source
const APIServiceInstanceResourceName = "apiserviceinstances"
View Source
const APIServiceResourceName = "apiservices"
View Source
const APIServiceRevisionResourceName = "apiservicerevisions"
View Source
const APISpecResourceName = "apispecs"
View Source
const AccessControlListResourceName = "accesscontrollists"
View Source
const AccessRequestDefinitionResourceName = "accessrequestdefinitions"
View Source
const AccessRequestResourceName = "accessrequests"
View Source
const AssetMappingResourceName = "assetmappings"
View Source
const AssetMappingTemplateResourceName = "assetmappingtemplates"
View Source
const ConsumerInstanceResourceName = "consumerinstances"
View Source
const ConsumerSubscriptionDefinitionResourceName = "consumersubscriptiondefs"
View Source
const CredentialRequestDefinitionResourceName = "credentialrequestdefinitions"
View Source
const CredentialResourceName = "credentials"
View Source
const DataplaneResourceName = "dataplanes"
View Source
const DataplaneSecretResourceName = "dataplanesecrets"
View Source
const DiscoveryAgentResourceName = "discoveryagents"
View Source
const EnvironmentResourceName = "environments"
View Source
const IntegrationResourceName = "integrations"
View Source
const K8SClusterResourceName = "k8sclusters"
View Source
const K8SResourceResourceName = "k8sresources"
View Source
const ManagedApplicationResourceName = "managedapplications"
View Source
const MeshDiscoveryResourceName = "meshdiscoveries"
View Source
const MeshResourceName = "meshes"
View Source
const MeshServiceResourceName = "meshservices"
View Source
const MeshWorkloadResourceName = "meshworkloads"
View Source
const ResourceDiscoveryResourceName = "resourcediscoveries"
View Source
const ResourceHookResourceName = "resourcehooks"
View Source
const SecretResourceName = "secrets"
View Source
const SpecDiscoveryResourceName = "specdiscoveries"
View Source
const TraceabilityAgentResourceName = "traceabilityagents"
View Source
const WatchTopicResourceName = "watchtopics"
View Source
const WebhookResourceName = "webhooks"

Variables

View Source
var (
	APIServiceCtx log.ContextField = "apiService"

	APIServiceScopes = []string{"Environment"}
)
View Source
var (
	APIServiceInstanceCtx log.ContextField = "apiServiceInstance"

	APIServiceInstanceScopes = []string{"Environment"}
)
View Source
var (
	APIServiceRevisionCtx log.ContextField = "apiServiceRevision"

	APIServiceRevisionScopes = []string{"Environment"}
)
View Source
var (
	APISpecCtx log.ContextField = "apiSpec"

	APISpecScopes = []string{"K8SCluster"}
)
View Source
var (
	AccessControlListCtx log.ContextField = "accessControlList"

	AccessControlListScopes = []string{"Environment", "Integration", "K8SCluster", "Mesh", "WatchTopic"}
)
View Source
var (
	AccessRequestCtx log.ContextField = "accessRequest"

	AccessRequestScopes = []string{"Environment"}
)
View Source
var (
	AccessRequestDefinitionCtx log.ContextField = "accessRequestDefinition"

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

	AssetMappingScopes = []string{"Environment"}
)
View Source
var (
	AssetMappingTemplateCtx log.ContextField = "assetMappingTemplate"

	AssetMappingTemplateScopes = []string{"Environment"}
)
View Source
var (
	ConsumerInstanceCtx log.ContextField = "consumerInstance"

	ConsumerInstanceScopes = []string{"Environment"}
)
View Source
var (
	ConsumerSubscriptionDefinitionCtx log.ContextField = "consumerSubscriptionDefinition"

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

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

	CredentialRequestDefinitionScopes = []string{"Environment"}
)
View Source
var (
	DataplaneCtx log.ContextField = "dataplane"

	DataplaneScopes = []string{"Environment"}
)
View Source
var (
	DataplaneSecretCtx log.ContextField = "dataplaneSecret"

	DataplaneSecretScopes = []string{"Environment"}
)
View Source
var (
	DiscoveryAgentCtx log.ContextField = "discoveryAgent"

	DiscoveryAgentScopes = []string{"Environment"}
)
View Source
var (
	EnvironmentCtx log.ContextField = "environment"

	EnvironmentScopes = []string{""}
)
View Source
var (
	IntegrationCtx log.ContextField = "integration"

	IntegrationScopes = []string{""}
)
View Source
var (
	K8SClusterCtx log.ContextField = "k8SCluster"

	K8SClusterScopes = []string{""}
)
View Source
var (
	K8SResourceCtx log.ContextField = "k8SResource"

	K8SResourceScopes = []string{"K8SCluster"}
)
View Source
var (
	ManagedApplicationCtx log.ContextField = "managedApplication"

	ManagedApplicationScopes = []string{"Environment"}
)
View Source
var (
	MeshCtx log.ContextField = "mesh"

	MeshScopes = []string{""}
)
View Source
var (
	MeshDiscoveryCtx log.ContextField = "meshDiscovery"

	MeshDiscoveryScopes = []string{"Mesh"}
)
View Source
var (
	MeshServiceCtx log.ContextField = "meshService"

	MeshServiceScopes = []string{"Mesh"}
)
View Source
var (
	MeshWorkloadCtx log.ContextField = "meshWorkload"

	MeshWorkloadScopes = []string{"Mesh"}
)
View Source
var (
	ResourceDiscoveryCtx log.ContextField = "resourceDiscovery"

	ResourceDiscoveryScopes = []string{"K8SCluster"}
)
View Source
var (
	ResourceHookCtx log.ContextField = "resourceHook"

	ResourceHookScopes = []string{"Integration"}
)
View Source
var (
	SecretCtx log.ContextField = "secret"

	SecretScopes = []string{"Environment", "Integration"}
)
View Source
var (
	SpecDiscoveryCtx log.ContextField = "specDiscovery"

	SpecDiscoveryScopes = []string{"K8SCluster"}
)
View Source
var (
	TraceabilityAgentCtx log.ContextField = "traceabilityAgent"

	TraceabilityAgentScopes = []string{"Environment"}
)
View Source
var (
	WatchTopicCtx log.ContextField = "watchTopic"

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

	WebhookScopes = []string{"Environment", "Integration"}
)

Functions

func APIServiceGVK

func APIServiceGVK() apiv1.GroupVersionKind

func APIServiceInstanceGVK

func APIServiceInstanceGVK() apiv1.GroupVersionKind

func APIServiceRevisionGVK

func APIServiceRevisionGVK() apiv1.GroupVersionKind

func APISpecGVK

func APISpecGVK() apiv1.GroupVersionKind

func AccessControlListGVK

func AccessControlListGVK() apiv1.GroupVersionKind

func AccessRequestDefinitionGVK

func AccessRequestDefinitionGVK() apiv1.GroupVersionKind

func AccessRequestGVK

func AccessRequestGVK() apiv1.GroupVersionKind

func AssetMappingGVK

func AssetMappingGVK() apiv1.GroupVersionKind

func AssetMappingTemplateGVK

func AssetMappingTemplateGVK() apiv1.GroupVersionKind

func ConsumerInstanceGVK

func ConsumerInstanceGVK() apiv1.GroupVersionKind

func ConsumerSubscriptionDefinitionGVK

func ConsumerSubscriptionDefinitionGVK() apiv1.GroupVersionKind

func CredentialGVK

func CredentialGVK() apiv1.GroupVersionKind

func CredentialRequestDefinitionGVK

func CredentialRequestDefinitionGVK() apiv1.GroupVersionKind

func DataplaneGVK added in v1.1.49

func DataplaneGVK() apiv1.GroupVersionKind

func DataplaneSecretGVK added in v1.1.49

func DataplaneSecretGVK() apiv1.GroupVersionKind

func DiscoveryAgentGVK

func DiscoveryAgentGVK() apiv1.GroupVersionKind

func EnvironmentGVK

func EnvironmentGVK() apiv1.GroupVersionKind

func IntegrationGVK

func IntegrationGVK() apiv1.GroupVersionKind

func K8SClusterGVK

func K8SClusterGVK() apiv1.GroupVersionKind

func K8SResourceGVK

func K8SResourceGVK() apiv1.GroupVersionKind

func ManagedApplicationGVK

func ManagedApplicationGVK() apiv1.GroupVersionKind

func MeshDiscoveryGVK

func MeshDiscoveryGVK() apiv1.GroupVersionKind

func MeshGVK

func MeshGVK() apiv1.GroupVersionKind

func MeshServiceGVK

func MeshServiceGVK() apiv1.GroupVersionKind

func MeshWorkloadGVK

func MeshWorkloadGVK() apiv1.GroupVersionKind

func ResourceDiscoveryGVK

func ResourceDiscoveryGVK() apiv1.GroupVersionKind

func ResourceHookGVK

func ResourceHookGVK() apiv1.GroupVersionKind

func SecretGVK

func SecretGVK() apiv1.GroupVersionKind

func SpecDiscoveryGVK

func SpecDiscoveryGVK() apiv1.GroupVersionKind

func TraceabilityAgentGVK

func TraceabilityAgentGVK() apiv1.GroupVersionKind

func WatchTopicGVK

func WatchTopicGVK() apiv1.GroupVersionKind

func WebhookGVK

func WebhookGVK() apiv1.GroupVersionKind

Types

type APIService

type APIService struct {
	apiv1.ResourceMeta
	Details ApiServiceDetails `json:"details"`
	Owner   *apiv1.Owner      `json:"owner"`
	Spec    ApiServiceSpec    `json:"spec"`
	// Status  ApiServiceStatus  `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

APIService Resource

func APIServiceFromInstanceArray

func APIServiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIService, error)

APIServiceFromInstanceArray converts a []*ResourceInstance to a []*APIService

func NewAPIService

func NewAPIService(name, scopeName string) *APIService

NewAPIService creates an empty *APIService

func (*APIService) AsInstance

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

AsInstance converts a APIService to a ResourceInstance

func (*APIService) FromInstance

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

FromInstance converts a ResourceInstance to a APIService

func (*APIService) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*APIService) PluralName

func (res *APIService) PluralName() string

PluralName returns the plural name of the resource

func (*APIService) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type APIServiceInstance

type APIServiceInstance struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner                 `json:"owner"`
	References ApiServiceInstanceReferences `json:"references"`
	Spec       ApiServiceInstanceSpec       `json:"spec"`
}

APIServiceInstance Resource

func APIServiceInstanceFromInstanceArray

func APIServiceInstanceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIServiceInstance, error)

APIServiceInstanceFromInstanceArray converts a []*ResourceInstance to a []*APIServiceInstance

func NewAPIServiceInstance

func NewAPIServiceInstance(name, scopeName string) *APIServiceInstance

NewAPIServiceInstance creates an empty *APIServiceInstance

func (*APIServiceInstance) AsInstance

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

AsInstance converts a APIServiceInstance to a ResourceInstance

func (*APIServiceInstance) FromInstance

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

FromInstance converts a ResourceInstance to a APIServiceInstance

func (*APIServiceInstance) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*APIServiceInstance) PluralName

func (res *APIServiceInstance) PluralName() string

PluralName returns the plural name of the resource

func (*APIServiceInstance) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type APIServiceRevision

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

APIServiceRevision Resource

func APIServiceRevisionFromInstanceArray

func APIServiceRevisionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIServiceRevision, error)

APIServiceRevisionFromInstanceArray converts a []*ResourceInstance to a []*APIServiceRevision

func NewAPIServiceRevision

func NewAPIServiceRevision(name, scopeName string) *APIServiceRevision

NewAPIServiceRevision creates an empty *APIServiceRevision

func (*APIServiceRevision) AsInstance

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

AsInstance converts a APIServiceRevision to a ResourceInstance

func (*APIServiceRevision) FromInstance

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

FromInstance converts a ResourceInstance to a APIServiceRevision

func (*APIServiceRevision) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*APIServiceRevision) PluralName

func (res *APIServiceRevision) PluralName() string

PluralName returns the plural name of the resource

func (*APIServiceRevision) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type APISpec

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

APISpec Resource

func APISpecFromInstanceArray

func APISpecFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APISpec, error)

APISpecFromInstanceArray converts a []*ResourceInstance to a []*APISpec

func NewAPISpec

func NewAPISpec(name, scopeName string) *APISpec

NewAPISpec creates an empty *APISpec

func (*APISpec) AsInstance

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

AsInstance converts a APISpec to a ResourceInstance

func (*APISpec) FromInstance

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

FromInstance converts a ResourceInstance to a APISpec

func (*APISpec) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*APISpec) PluralName

func (res *APISpec) PluralName() string

PluralName returns the plural name of the resource

func (*APISpec) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessControlList

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

AccessControlList Resource

func AccessControlListFromInstanceArray

func AccessControlListFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessControlList, error)

AccessControlListFromInstanceArray converts a []*ResourceInstance to a []*AccessControlList

func NewAccessControlList

func NewAccessControlList(name, scopeKind, scopeName string) (*AccessControlList, error)

NewAccessControlList creates an empty *AccessControlList

func (*AccessControlList) AsInstance

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

AsInstance converts a AccessControlList to a ResourceInstance

func (*AccessControlList) FromInstance

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

FromInstance converts a ResourceInstance to a AccessControlList

func (*AccessControlList) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*AccessControlList) PluralName

func (res *AccessControlList) PluralName() string

PluralName returns the plural name of the resource

func (*AccessControlList) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessControlListSpec

type AccessControlListSpec struct {
	Rules    []AccessRules `json:"rules,omitempty"`
	Subjects []apiv1.Owner `json:"subjects,omitempty"`
}

AccessControlListSpec struct for AccessControlListSpec

type AccessControlListSpecAccessLevelScope

type AccessControlListSpecAccessLevelScope struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
	// Set true to allow users to create scoped resources.
	AllowCreateScoped bool `json:"allowCreateScoped,omitempty"`
	// Set true to allow users to delete the unscoped resource.
	AllowDelete bool `json:"allowDelete,omitempty"`
	// Set true to allow users to update the unscoped resource.
	AllowWrite bool `json:"allowWrite,omitempty"`
}

AccessControlListSpecAccessLevelScope struct for AccessControlListSpecAccessLevelScope

type AccessControlListSpecAccessLevelScopedKind added in v1.1.35

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

AccessControlListSpecAccessLevelScopedKind struct for AccessControlListSpecAccessLevelScopedKind

type AccessControlListSpecAccessLevelScopedResource added in v1.1.35

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

AccessControlListSpecAccessLevelScopedResource struct for AccessControlListSpecAccessLevelScopedResource

type AccessControlListSpecRules

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

AccessControlListSpecRules (management.v1alpha1.AccessControlList)

type AccessControlListSpecSubjects

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

AccessControlListSpecSubjects (management.v1alpha1.AccessControlList)

type AccessLevelScope

type AccessLevelScope struct {
	// Resource level at which access is being granted.
	Level string `json:"level,omitempty"`
}

AccessLevelScope struct for AccessLevelScope

type AccessRequest

type AccessRequest struct {
	apiv1.ResourceMeta
	Data  interface{}  `json:"data"`
	Owner *apiv1.Owner `json:"owner"`
	// GENERATE: The following code has been modified after code generation
	//
	//	References interface{}         `json:"references"`
	References []interface{}     `json:"references"`
	Spec       AccessRequestSpec `json:"spec"`
	// Status     AccessRequestStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

AccessRequest Resource

func AccessRequestFromInstanceArray

func AccessRequestFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessRequest, error)

AccessRequestFromInstanceArray converts a []*ResourceInstance to a []*AccessRequest

func NewAccessRequest

func NewAccessRequest(name, scopeName string) *AccessRequest

NewAccessRequest creates an empty *AccessRequest

func (*AccessRequest) AsInstance

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

AsInstance converts a AccessRequest to a ResourceInstance

func (*AccessRequest) FromInstance

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

FromInstance converts a ResourceInstance to a AccessRequest

func (*AccessRequest) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*AccessRequest) PluralName

func (res *AccessRequest) PluralName() string

PluralName returns the plural name of the resource

func (*AccessRequest) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessRequestDefinition

type AccessRequestDefinition struct {
	apiv1.ResourceMeta
	Owner    *apiv1.Owner                `json:"owner"`
	Spec     AccessRequestDefinitionSpec `json:"spec"`
	Webhooks interface{}                 `json:"webhooks"`
}

AccessRequestDefinition Resource

func AccessRequestDefinitionFromInstanceArray

func AccessRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AccessRequestDefinition, error)

AccessRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*AccessRequestDefinition

func NewAccessRequestDefinition

func NewAccessRequestDefinition(name, scopeName string) *AccessRequestDefinition

NewAccessRequestDefinition creates an empty *AccessRequestDefinition

func (*AccessRequestDefinition) AsInstance

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

AsInstance converts a AccessRequestDefinition to a ResourceInstance

func (*AccessRequestDefinition) FromInstance

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

FromInstance converts a ResourceInstance to a AccessRequestDefinition

func (*AccessRequestDefinition) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*AccessRequestDefinition) PluralName

func (res *AccessRequestDefinition) PluralName() string

PluralName returns the plural name of the resource

func (*AccessRequestDefinition) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AccessRequestDefinitionSpec

type AccessRequestDefinitionSpec struct {
	// JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance. (management.v1alpha1.AccessRequestDefinition)
	Schema    map[string]interface{}                `json:"schema"`
	Provision *AccessRequestDefinitionSpecProvision `json:"provision,omitempty"`
}

AccessRequestDefinitionSpec (management.v1alpha1.AccessRequestDefinition)

type AccessRequestDefinitionSpecProvision

type AccessRequestDefinitionSpecProvision struct {
	// JSON Schema draft \\#7 for describing the data to be sent back after access has been provisioned. (management.v1alpha1.AccessRequestDefinition)
	Schema   map[string]interface{}                       `json:"schema,omitempty"`
	Policies AccessRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

AccessRequestDefinitionSpecProvision (management.v1alpha1.AccessRequestDefinition)

type AccessRequestDefinitionSpecProvisionPolicies added in v1.1.49

type AccessRequestDefinitionSpecProvisionPolicies struct {
	// Defines on if AccessRequests using this definition can be moved from their current Subscription to a new one. This update implies that quotas and references are updated depending on the new Subscription's plan.
	Transferable bool `json:"transferable,omitempty"`
}

AccessRequestDefinitionSpecProvisionPolicies Defines the policies applied on the AccessRequests generated using this definition. (management.v1alpha1.AccessRequestDefinition)

type AccessRequestReferencesApplication

type AccessRequestReferencesApplication struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesApplication struct for AccessRequestReferencesApplication

type AccessRequestReferencesAssetRequest

type AccessRequestReferencesAssetRequest struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesAssetRequest struct for AccessRequestReferencesAssetRequest

type AccessRequestReferencesAssetResource

type AccessRequestReferencesAssetResource struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesAssetResource struct for AccessRequestReferencesAssetResource

type AccessRequestReferencesProduct

type AccessRequestReferencesProduct struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesProduct struct for AccessRequestReferencesProduct

type AccessRequestReferencesProductPlan

type AccessRequestReferencesProductPlan struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesProductPlan struct for AccessRequestReferencesProductPlan

type AccessRequestReferencesProductRelease

type AccessRequestReferencesProductRelease struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesProductRelease struct for AccessRequestReferencesProductRelease

type AccessRequestReferencesPublishedProduct

type AccessRequestReferencesPublishedProduct struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesPublishedProduct struct for AccessRequestReferencesPublishedProduct

type AccessRequestReferencesQuota

type AccessRequestReferencesQuota struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesQuota struct for AccessRequestReferencesQuota

type AccessRequestReferencesSubscription

type AccessRequestReferencesSubscription struct {
	Kind string `json:"kind"`
	Name string `json:"name,omitempty"`
}

AccessRequestReferencesSubscription struct for AccessRequestReferencesSubscription

type AccessRequestSpec

type AccessRequestSpec struct {
	// The name of an APIServiceInstance resource that specifies where the API is deployed.
	ApiServiceInstance string `json:"apiServiceInstance"`
	// The name of an ManagedApplication resource that groups set of credentials.
	ManagedApplication string `json:"managedApplication"`
	// The value that matches the AccessRequestDefinition schema linked to the referenced APIServiceInstance. (management.v1alpha1.AccessRequest)
	Data  map[string]interface{}  `json:"data"`
	Quota *AccessRequestSpecQuota `json:"quota,omitempty"`
}

AccessRequestSpec (management.v1alpha1.AccessRequest)

type AccessRequestSpecQuota

type AccessRequestSpecQuota struct {
	// The limit of the allowed quota for the access request.
	Limit    int32  `json:"limit"`
	Interval string `json:"interval"`
}

AccessRequestSpecQuota Quota information for accessing the api. (management.v1alpha1.AccessRequest)

type AccessRequestStatus

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

AccessRequestStatus (management.v1alpha1.AccessRequest)

type AccessRequestStatusReasons

type AccessRequestStatusReasons struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time `json:"timestamp"`
	//  (management.v1alpha1.AccessRequest)
	Meta map[string]map[string]interface{} `json:"meta,omitempty"`
}

AccessRequestStatusReasons (management.v1alpha1.AccessRequest)

type AccessRules

type AccessRules struct {
	// Resource level at which access is being granted.
	Access []AccessLevelScope `json:"access,omitempty"`
}

AccessRules struct for AccessRules

type ApiServiceDetails

type ApiServiceDetails struct {
	// Specification type for the API Service.
	SpecType string `json:"specType,omitempty"`
}

ApiServiceDetails (management.v1alpha1.APIService)

type ApiServiceInstanceReferences added in v1.1.44

type ApiServiceInstanceReferences struct {
	// Reference to Amplify Central APIService
	ApiService string `json:"apiService,omitempty"`
}

ApiServiceInstanceReferences (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSpec

type ApiServiceInstanceSpec struct {
	ApiServiceRevision           string   `json:"apiServiceRevision"`
	AccessRequestDefinition      string   `json:"accessRequestDefinition,omitempty"`
	CredentialRequestDefinitions []string `json:"credentialRequestDefinitions,omitempty"`
	// A list of locations where the api is deployed.
	Endpoint []ApiServiceInstanceSpecEndpoint `json:"endpoint"`
}

ApiServiceInstanceSpec (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSpecEndpoint

type ApiServiceInstanceSpecEndpoint struct {
	Host     string                        `json:"host"`
	Port     int32                         `json:"port,omitempty"`
	Protocol string                        `json:"protocol"`
	Routing  ApiServiceInstanceSpecRouting `json:"routing,omitempty"`
}

ApiServiceInstanceSpecEndpoint (management.v1alpha1.APIServiceInstance)

type ApiServiceInstanceSpecRouting

type ApiServiceInstanceSpecRouting struct {
	// The base path to the API. Example: '/api'.
	BasePath string `json:"basePath,omitempty"`
	// Specify any additional routing details needed (management.v1alpha1.APIServiceInstance)
	// GENERATE: The following code has been modified after code generation
	Details map[string]interface{} `json:"details,omitempty"`
}

ApiServiceInstanceSpecRouting (management.v1alpha1.APIServiceInstance)

type ApiServiceRevisionSpec

type ApiServiceRevisionSpec struct {
	ApiService string                           `json:"apiService"`
	Definition ApiServiceRevisionSpecDefinition `json:"definition,omitempty"`
}

ApiServiceRevisionSpec (management.v1alpha1.APIServiceRevision)

type ApiServiceRevisionSpecDefinition

type ApiServiceRevisionSpecDefinition struct {
	// The type of the api specification.
	Type string `json:"type,omitempty"`
	// Base64 encoded value of the api specification.
	Value string `json:"value,omitempty"`
	// content-type of the spec.
	ContentType string `json:"contentType,omitempty"`
}

ApiServiceRevisionSpecDefinition The api specification details. (management.v1alpha1.APIServiceRevision)

type ApiServiceSpec

type ApiServiceSpec struct {
	// The description of the api service.
	Description string             `json:"description,omitempty"`
	Categories  []string           `json:"categories,omitempty"`
	Icon        ApiServiceSpecIcon `json:"icon,omitempty"`
}

ApiServiceSpec (management.v1alpha1.APIService)

type ApiServiceSpecIcon

type ApiServiceSpecIcon struct {
	// Content-Type of the image.
	ContentType string `json:"contentType,omitempty"`
	// Base64 encoded image.
	Data string `json:"data,omitempty"`
}

ApiServiceSpecIcon Image for the APIService. (management.v1alpha1.APIService)

type ApiServiceStatus

type ApiServiceStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	// GENERATE: The following code has been modified after code generation
	Reasons []interface{} `json:"reasons,omitempty"`
}

ApiServiceStatus (management.v1alpha1.APIService)

type ApiServiceStatusError

type ApiServiceStatusError struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the change occurred.
	Timestamp time.Time                         `json:"timestamp"`
	Meta      map[string]map[string]interface{} `json:"meta,omitempty"`
}

ApiServiceStatusError struct for ApiServiceStatusError

type ApiSpecSpec

type ApiSpecSpec struct {
	SpecDiscoveryRef string                 `json:"specDiscoveryRef,omitempty"`
	Definition       ApiSpecSpecDefinition  `json:"definition,omitempty"`
	Endpoints        []ApiSpecSpecEndpoints `json:"endpoints,omitempty"`
}

ApiSpecSpec (management.v1alpha1.APISpec)

type ApiSpecSpecDefinition

type ApiSpecSpecDefinition struct {
	// The type of the api specification.
	Type string `json:"type,omitempty"`
	// Base64 encoded value of the api specification.
	Value string `json:"value,omitempty"`
	// Consistent hash of the value.
	Hash string `json:"hash,omitempty"`
}

ApiSpecSpecDefinition (management.v1alpha1.APISpec)

type ApiSpecSpecEndpoints

type ApiSpecSpecEndpoints struct {
	// The type of the endpoint.
	Type string `json:"type,omitempty"`
	// The host of the pod <namespace>.<pod-name>
	Host string `json:"host,omitempty"`
	// The port of the pod on which this spec was discovered.
	Port string `json:"port,omitempty"`
	// The path on which this spec was discovered.
	Path string `json:"path,omitempty"`
	// The labels for the pod this spec was discovered on. (management.v1alpha1.APISpec)
	Labels map[string]string `json:"labels,omitempty"`
}

ApiSpecSpecEndpoints (management.v1alpha1.APISpec)

type AssetMapping

type AssetMapping struct {
	apiv1.ResourceMeta
	Owner  *apiv1.Owner       `json:"owner"`
	Spec   AssetMappingSpec   `json:"spec"`
	Status AssetMappingStatus `json:"status"`
}

AssetMapping Resource

func AssetMappingFromInstanceArray

func AssetMappingFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetMapping, error)

AssetMappingFromInstanceArray converts a []*ResourceInstance to a []*AssetMapping

func NewAssetMapping

func NewAssetMapping(name, scopeName string) *AssetMapping

NewAssetMapping creates an empty *AssetMapping

func (*AssetMapping) AsInstance

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

AsInstance converts a AssetMapping to a ResourceInstance

func (*AssetMapping) FromInstance

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

FromInstance converts a ResourceInstance to a AssetMapping

func (*AssetMapping) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*AssetMapping) PluralName

func (res *AssetMapping) PluralName() string

PluralName returns the plural name of the resource

func (*AssetMapping) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetMappingSpec

type AssetMappingSpec struct {
	// Reference to the executed AssetMappingTemplate.
	AssetMappingTemplate string                 `json:"assetMappingTemplate,omitempty"`
	Inputs               AssetMappingSpecInputs `json:"inputs"`
}

AssetMappingSpec (management.v1alpha1.AssetMapping)

type AssetMappingSpecInputs

type AssetMappingSpecInputs struct {
	ApiService         string `json:"apiService"`
	ApiServiceRevision string `json:"apiServiceRevision,omitempty"`
	ApiServiceInstance string `json:"apiServiceInstance,omitempty"`
	// name of the stage
	Stage string `json:"stage,omitempty"`
	// list of categories for the asset.
	Categories []string `json:"categories,omitempty"`
	// title for generated asset resource.
	AssetResourceTitle string `json:"assetResourceTitle,omitempty"`
}

AssetMappingSpecInputs The list of the inputs provided to the template. (management.v1alpha1.AssetMapping)

type AssetMappingStatus

type AssetMappingStatus struct {
	Level  string                   `json:"level,omitempty"`
	Source AssetMappingStatusSource `json:"source,omitempty"`
	// Generated catalog resources.
	Outputs []AssetMappingStatusOutputs `json:"outputs,omitempty"`
}

AssetMappingStatus (management.v1alpha1.AssetMapping)

type AssetMappingStatusOperationType

type AssetMappingStatusOperationType string

AssetMappingStatusOperationType The type of the operation executed on the resource that triggered the Asset Mapping.

const (
	CREATED AssetMappingStatusOperationType = "created"
	UPDATED AssetMappingStatusOperationType = "updated"
	DELETED AssetMappingStatusOperationType = "deleted"
)

List of AssetMappingStatus.OperationType

type AssetMappingStatusOutputs

type AssetMappingStatusOutputs struct {
	Resource AssetMappingStatusResource `json:"resource,omitempty"`
}

AssetMappingStatusOutputs (management.v1alpha1.AssetMapping)

type AssetMappingStatusResource

type AssetMappingStatusResource struct {
	AssetResource AssetMappingStatusResourceAssetResource `json:"assetResource,omitempty"`
	Stage         AssetMappingStatusResourceStage         `json:"stage,omitempty"`
}

AssetMappingStatusResource The resources that were impacted with the trigger of asset mapping. (management.v1alpha1.AssetMapping)

type AssetMappingStatusResourceAssetResource

type AssetMappingStatusResourceAssetResource struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusResourceAssetResource (management.v1alpha1.AssetMapping)

type AssetMappingStatusResourceStage

type AssetMappingStatusResourceStage struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusResourceStage (management.v1alpha1.AssetMapping)

type AssetMappingStatusSource

type AssetMappingStatusSource struct {
	Resource AssetMappingStatusSourceResource `json:"resource,omitempty"`
}

AssetMappingStatusSource (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResource

type AssetMappingStatusSourceResource struct {
	ApiService           AssetMappingStatusSourceResourceApiService           `json:"apiService,omitempty"`
	ApiServiceRevision   AssetMappingStatusSourceResourceApiServiceRevision   `json:"apiServiceRevision,omitempty"`
	ApiServiceInstance   AssetMappingStatusSourceResourceApiServiceInstance   `json:"apiServiceInstance,omitempty"`
	AssetMappingTemplate AssetMappingStatusSourceResourceAssetMappingTemplate `json:"assetMappingTemplate,omitempty"`
}

AssetMappingStatusSourceResource The resource that triggered the Asset Mapping. (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResourceApiService

type AssetMappingStatusSourceResourceApiService struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiService (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResourceApiServiceInstance

type AssetMappingStatusSourceResourceApiServiceInstance struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiServiceInstance (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResourceApiServiceRevision

type AssetMappingStatusSourceResourceApiServiceRevision struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceApiServiceRevision (management.v1alpha1.AssetMapping)

type AssetMappingStatusSourceResourceAssetMappingTemplate

type AssetMappingStatusSourceResourceAssetMappingTemplate struct {
	Ref string `json:"ref,omitempty"`
	// GENERATE: The following code has been modified after code generation
	OperationType AssetMappingStatusOperationType `json:"operationType,omitempty"`
}

AssetMappingStatusSourceResourceAssetMappingTemplate (management.v1alpha1.AssetMapping)

type AssetMappingTemplate

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

AssetMappingTemplate Resource

func AssetMappingTemplateFromInstanceArray

func AssetMappingTemplateFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AssetMappingTemplate, error)

AssetMappingTemplateFromInstanceArray converts a []*ResourceInstance to a []*AssetMappingTemplate

func NewAssetMappingTemplate

func NewAssetMappingTemplate(name, scopeName string) *AssetMappingTemplate

NewAssetMappingTemplate creates an empty *AssetMappingTemplate

func (*AssetMappingTemplate) AsInstance

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

AsInstance converts a AssetMappingTemplate to a ResourceInstance

func (*AssetMappingTemplate) FromInstance

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

FromInstance converts a ResourceInstance to a AssetMappingTemplate

func (*AssetMappingTemplate) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*AssetMappingTemplate) PluralName

func (res *AssetMappingTemplate) PluralName() string

PluralName returns the plural name of the resource

func (*AssetMappingTemplate) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AssetMappingTemplateSpec

type AssetMappingTemplateSpec struct {
	// A list of filters for the API Service resource on which the template applies.
	Filters []AssetMappingTemplateSpecFilters `json:"filters,omitempty"`
}

AssetMappingTemplateSpec (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecApiService

type AssetMappingTemplateSpecApiService struct {
	// The name of the API Service.
	Name string `json:"name,omitempty"`
	// Attributes used to filter the APIServiceRevisions for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate)
	Attributes         map[string]string                          `json:"attributes,omitempty"`
	ApiServiceRevision AssetMappingTemplateSpecApiServiceRevision `json:"apiServiceRevision,omitempty"`
}

AssetMappingTemplateSpecApiService (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecApiServiceRevision

type AssetMappingTemplateSpecApiServiceRevision struct {
	// Attributes used to filter the APIServiceRevisions for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate)
	Attributes         map[string]string                                            `json:"attributes,omitempty"`
	ApiServiceInstance AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance `json:"apiServiceInstance,omitempty"`
}

AssetMappingTemplateSpecApiServiceRevision (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance

type AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance struct {
	// Attributes used to filter the APIServiceInstances for the API Service on which the template applies. (management.v1alpha1.AssetMappingTemplate)
	Attributes map[string]string `json:"attributes,omitempty"`
}

AssetMappingTemplateSpecApiServiceRevisionApiServiceInstance (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecAsset

type AssetMappingTemplateSpecAsset struct {
	// name of the asset or a template for name
	Name string `json:"name,omitempty"`
}

AssetMappingTemplateSpecAsset (management.v1alpha1.AssetMappingTemplate)

type AssetMappingTemplateSpecFilters

type AssetMappingTemplateSpecFilters struct {
	ApiService []AssetMappingTemplateSpecApiService `json:"apiService,omitempty"`
	// name of the stage
	Stage string `json:"stage,omitempty"`
	// list of categories for the asset.
	Categories []string                      `json:"categories,omitempty"`
	Asset      AssetMappingTemplateSpecAsset `json:"asset,omitempty"`
}

AssetMappingTemplateSpecFilters (management.v1alpha1.AssetMappingTemplate)

type ConsumerInstance

type ConsumerInstance struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner               `json:"owner"`
	References ConsumerInstanceReferences `json:"references"`
	Spec       ConsumerInstanceSpec       `json:"spec"`
	Status     ConsumerInstanceStatus     `json:"status"`
}

ConsumerInstance Resource

func ConsumerInstanceFromInstanceArray

func ConsumerInstanceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerInstance, error)

ConsumerInstanceFromInstanceArray converts a []*ResourceInstance to a []*ConsumerInstance

func NewConsumerInstance

func NewConsumerInstance(name, scopeName string) *ConsumerInstance

NewConsumerInstance creates an empty *ConsumerInstance

func (*ConsumerInstance) AsInstance

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

AsInstance converts a ConsumerInstance to a ResourceInstance

func (*ConsumerInstance) FromInstance

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

FromInstance converts a ResourceInstance to a ConsumerInstance

func (*ConsumerInstance) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*ConsumerInstance) PluralName

func (res *ConsumerInstance) PluralName() string

PluralName returns the plural name of the resource

func (*ConsumerInstance) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ConsumerInstanceReferences

type ConsumerInstanceReferences struct {
	// Reference to Amplify Central APIService
	ApiService string `json:"apiService,omitempty"`
	// Reference to Amplify Central APIServiceRevision
	ApiServiceRevision string `json:"apiServiceRevision,omitempty"`
}

ConsumerInstanceReferences (management.v1alpha1.ConsumerInstance)

type ConsumerInstanceSpec

type ConsumerInstanceSpec struct {
	// Maps to the name of the Catalog Item. If not provided, the resource title will be used.
	Name string `json:"name,omitempty"`
	// The name of an APIServiceInstance resource that specifies where the API is deployed.
	ApiServiceInstance string `json:"apiServiceInstance,omitempty"`
	// Name of the team that owns the Catalog Item. If not provided, the Default team will be used.
	OwningTeam string `json:"owningTeam,omitempty"`
	// Maps to the description of the Catalog Item. Defaults to the API service description.
	Description string `json:"description,omitempty"`
	// The visibility of the Catalog Item:  * PUBLIC - If Catalog Item is in PUBLISHED state, it will be visible to the entire organization.  * RESTRICTED - If Catalog Item is in PUBLISHED state, it will be visible to the owning team and teams part of the Catalog Item Access Control List.
	Visibility string `json:"visibility,omitempty"`
	// Version name for the revision.
	Version string `json:"version,omitempty"`
	// Catalog Item state:  * UNPUBLISHED - Only developers in the owning team will be able to access the Catalog Item.  * PUBLISHED - Developers and Consumers in the owning team and any additional team in the ACL will be able to access the Catalog Item.
	State string `json:"state,omitempty"`
	// A way to communicate the status of the service to consumers. Examples: DRAFT, BETA, GA
	Status string `json:"status,omitempty"`
	// List of tags to be set on the Catalog Item. Max allowed tags for the Catalog Item is 80.
	Tags []string `json:"tags,omitempty"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Icon ConsumerInstanceSpecIcon `json:"icon,omitempty"`
	Icon *ConsumerInstanceSpecIcon `json:"icon,omitempty"`
	// Markdown documentation for the Catalog Item documentation.
	Documentation              string                                         `json:"documentation,omitempty"`
	UnstructuredDataProperties ConsumerInstanceSpecUnstructuredDataProperties `json:"unstructuredDataProperties,omitempty"`
	AdditionalDataProperties   ConsumerInstanceSpecAdditionalDataProperties   `json:"additionalDataProperties,omitempty"`
	Subscription               ConsumerInstanceSpecSubscription               `json:"subscription,omitempty"`
	Categories                 []string                                       `json:"categories,omitempty"`
}

ConsumerInstanceSpec (management.v1alpha1.ConsumerInstance)

type ConsumerInstanceSpecAdditionalDataProperties

type ConsumerInstanceSpecAdditionalDataProperties struct {
	// Defines the unstructured data type. Example 'APIBuilderConnector' or 'SDK'.
	Type string `json:"type"`
	// Defines the Content Type of the data.
	ContentType string `json:"contentType"`
	// Short name for the unstructured data.
	Label string `json:"label,omitempty"`
	// File name used to be sent as part of the content disposition header for revision unstructured data download.
	FileName string `json:"fileName,omitempty"`
	// Base64 encoded data for the Catalog Item revision content.
	Data string `json:"data"`
}

ConsumerInstanceSpecAdditionalDataProperties The Catalog Item properties for additional data. (management.v1alpha1.ConsumerInstance)

type ConsumerInstanceSpecIcon

type ConsumerInstanceSpecIcon struct {
	// Content-Type of the image.
	ContentType string `json:"contentType,omitempty"`
	// Base64 encoded image.
	Data string `json:"data,omitempty"`
}

ConsumerInstanceSpecIcon Image for the Catalog Item. If not present, the icon on the APISevice will be used in the Catalog Item. (management.v1alpha1.ConsumerInstance)

type ConsumerInstanceSpecSubscription

type ConsumerInstanceSpecSubscription struct {
	// Defines if subscriptions are allowed on the Catalog Item.
	Enabled bool `json:"enabled,omitempty"`
	// Defines if subscriptions need to be manually approved.
	// GENERATE: The following code has been modified after code generation
	// 	AutoSubscribe bool `json:"autoSubscribe,omitempty"`
	AutoSubscribe bool `json:"autoSubscribe"`
	// The name of a ConsumerSubscriptionDefinition kind that defines the schema and possible webhooks to get invoked.
	SubscriptionDefinition string `json:"subscriptionDefinition,omitempty"`
}

ConsumerInstanceSpecSubscription (management.v1alpha1.ConsumerInstance)

type ConsumerInstanceSpecUnstructuredDataProperties

type ConsumerInstanceSpecUnstructuredDataProperties struct {
	// Defines the unstructured data type. Example 'APIBuilderConnector' or 'SDK'.
	Type string `json:"type"`
	// Defines the Content Type of the data.
	ContentType string `json:"contentType"`
	// Short name for the unstructured data.
	Label string `json:"label,omitempty"`
	// File name used to be sent as part of the content disposition header for revision unstructured data download.
	FileName string `json:"fileName,omitempty"`
	// Base64 encoded data for the Catalog Item revision content.
	Data string `json:"data,omitempty"`
}

ConsumerInstanceSpecUnstructuredDataProperties The Catalog Item properties for unstructured definition subtypes. (management.v1alpha1.ConsumerInstance)

type ConsumerInstanceStatus

type ConsumerInstanceStatus struct {
	Phase ConsumerInstanceStatusPhase `json:"phase"`
}

ConsumerInstanceStatus (management.v1alpha1.ConsumerInstance)

type ConsumerInstanceStatusPhase

type ConsumerInstanceStatusPhase struct {
	Name string `json:"name"`
	// The criticality of the last update
	Level string `json:"level"`
	// Time of the current phase.
	TransitionTime time.Time `json:"transitionTime"`
	// Description of the phase.
	Message string `json:"message,omitempty"`
}

ConsumerInstanceStatusPhase (management.v1alpha1.ConsumerInstance)

type ConsumerSubscriptionDefinition

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

ConsumerSubscriptionDefinition Resource

func ConsumerSubscriptionDefinitionFromInstanceArray

func ConsumerSubscriptionDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ConsumerSubscriptionDefinition, error)

ConsumerSubscriptionDefinitionFromInstanceArray converts a []*ResourceInstance to a []*ConsumerSubscriptionDefinition

func NewConsumerSubscriptionDefinition

func NewConsumerSubscriptionDefinition(name, scopeName string) *ConsumerSubscriptionDefinition

NewConsumerSubscriptionDefinition creates an empty *ConsumerSubscriptionDefinition

func (*ConsumerSubscriptionDefinition) AsInstance

AsInstance converts a ConsumerSubscriptionDefinition to a ResourceInstance

func (*ConsumerSubscriptionDefinition) FromInstance

FromInstance converts a ResourceInstance to a ConsumerSubscriptionDefinition

func (*ConsumerSubscriptionDefinition) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*ConsumerSubscriptionDefinition) PluralName

func (res *ConsumerSubscriptionDefinition) PluralName() string

PluralName returns the plural name of the resource

func (*ConsumerSubscriptionDefinition) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ConsumerSubscriptionDefinitionSpec

type ConsumerSubscriptionDefinitionSpec struct {
	// List of Webhook kind resource names that dictates what webhooks will be invoked on subscription changes.
	Webhooks []string                                 `json:"webhooks,omitempty"`
	Schema   ConsumerSubscriptionDefinitionSpecSchema `json:"schema,omitempty"`
}

ConsumerSubscriptionDefinitionSpec (management.v1alpha1.ConsumerSubscriptionDefinition)

type ConsumerSubscriptionDefinitionSpecSchema

type ConsumerSubscriptionDefinitionSpecSchema struct {
	// Defines the subscription schema properties as key/value pairs.
	Properties []ConsumerSubscriptionDefinitionSpecSchemaProperties `json:"properties,omitempty"`
}

ConsumerSubscriptionDefinitionSpecSchema Subscription definition properties to be used by the consumers. (management.v1alpha1.ConsumerSubscriptionDefinition)

type ConsumerSubscriptionDefinitionSpecSchemaProperties

type ConsumerSubscriptionDefinitionSpecSchemaProperties struct {
	// The Catalog Item subscription spec key. For API type subscriptions, the key needs to be 'profile'.
	Key string `json:"key"`
	// JSON schema to specify data needed from consumers when subscriptions are created. (management.v1alpha1.ConsumerSubscriptionDefinition)
	Value map[string]interface{} `json:"value"`
}

ConsumerSubscriptionDefinitionSpecSchemaProperties (management.v1alpha1.ConsumerSubscriptionDefinition)

type Credential

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

Credential Resource

func CredentialFromInstanceArray

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

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

func NewCredential

func NewCredential(name, scopeName string) *Credential

NewCredential creates an empty *Credential

func (*Credential) AsInstance

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

AsInstance converts a Credential to a ResourceInstance

func (*Credential) FromInstance

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

FromInstance converts a ResourceInstance to a Credential

func (*Credential) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*Credential) PluralName

func (res *Credential) PluralName() string

PluralName returns the plural name of the resource

func (*Credential) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type CredentialPolicies added in v1.1.35

type CredentialPolicies struct {
	// Defines on if Credential can be renewed.
	Expiry *CredentialPoliciesExpiry `json:"expiry,omitempty"`
}

CredentialPolicies (management.v1alpha1.Credential)

type CredentialPoliciesExpiry added in v1.1.35

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

CredentialPoliciesExpiry (management.v1alpha1.Credential)

type CredentialReferences

type CredentialReferences struct {
	// Name of the catalog Application for which the initial Credential was generated
	Application string `json:"application,omitempty"`
}

CredentialReferences (management.v1alpha1.Credential)

type CredentialRequestDefinition

type CredentialRequestDefinition struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner                          `json:"owner"`
	References CredentialRequestDefinitionReferences `json:"references"`
	Spec       CredentialRequestDefinitionSpec       `json:"spec"`
	Webhooks   interface{}                           `json:"webhooks"`
}

CredentialRequestDefinition Resource

func CredentialRequestDefinitionFromInstanceArray

func CredentialRequestDefinitionFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*CredentialRequestDefinition, error)

CredentialRequestDefinitionFromInstanceArray converts a []*ResourceInstance to a []*CredentialRequestDefinition

func NewCredentialRequestDefinition

func NewCredentialRequestDefinition(name, scopeName string) *CredentialRequestDefinition

NewCredentialRequestDefinition creates an empty *CredentialRequestDefinition

func (*CredentialRequestDefinition) AsInstance

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 (management.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpec

type CredentialRequestDefinitionSpec struct {
	// JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance.
	Schema    map[string]interface{}                    `json:"schema"`
	Provision *CredentialRequestDefinitionSpecProvision `json:"provision,omitempty"`
	Webhooks  []CredentialRequestDefinitionSpecWebhook  `json:"webhooks,omitempty"`
}

CredentialRequestDefinitionSpec struct for CredentialRequestDefinitionSpec

type CredentialRequestDefinitionSpecProvision

type CredentialRequestDefinitionSpecProvision struct {
	// JSON Schema draft \\#7 for defining the AccessRequest properties needed to get access to an APIServiceInstance.
	Schema   map[string]interface{}                           `json:"schema"`
	Policies CredentialRequestDefinitionSpecProvisionPolicies `json:"policies,omitempty"`
}

CredentialRequestDefinitionSpecProvision struct for CredentialRequestDefinitionSpecProvision

type CredentialRequestDefinitionSpecProvisionPolicies added in v1.1.35

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

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

type CredentialRequestDefinitionSpecProvisionPoliciesExpiry added in v1.1.35

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

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

type CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions added in v1.1.35

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

CredentialRequestDefinitionSpecProvisionPoliciesExpiryActions (management.v1alpha1.CredentialRequestDefinition)

type CredentialRequestDefinitionSpecWebhook

type CredentialRequestDefinitionSpecWebhook struct {
	Kind string `json:"kind"`
	Name string `json:"name"`
}

CredentialRequestDefinitionSpecWebhook struct for CredentialRequestDefinitionSpecWebhook

type CredentialSpec

type CredentialSpec struct {
	// Reference to Credential Request Definition resource
	CredentialRequestDefinition string `json:"credentialRequestDefinition"`
	// Reference to the ManagedApplication for which the Credential belongs to
	ManagedApplication string `json:"managedApplication"`
	// data matching the credential request definition schema. (management.v1alpha1.Credential)
	Data  map[string]interface{} `json:"data"`
	State CredentialSpecState    `json:"state,omitempty"`
}

CredentialSpec (management.v1alpha1.Credential)

type CredentialSpecState added in v1.1.35

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

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

type CredentialState added in v1.1.35

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

CredentialState Current state of the Credential. (management.v1alpha1.Credential)

type CredentialStatus

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

CredentialStatus (management.v1alpha1.Credential)

type CredentialStatusReasons

type CredentialStatusReasons struct {
	Type string `json:"type"`
	// Details of the error.
	Detail string `json:"detail"`
	// Time when the update occurred.
	Timestamp time.Time `json:"timestamp"`
	//  (management.v1alpha1.Credential)
	Meta map[string]map[string]interface{} `json:"meta,omitempty"`
}

CredentialStatusReasons (management.v1alpha1.Credential)

type Dataplane added in v1.1.49

type Dataplane struct {
	apiv1.ResourceMeta
	Owner        *apiv1.Owner      `json:"owner"`
	Secretschema interface{}       `json:"secretschema"`
	Security     DataplaneSecurity `json:"security"`
	Spec         DataplaneSpec     `json:"spec"`
}

Dataplane Resource

func DataplaneFromInstanceArray added in v1.1.49

func DataplaneFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Dataplane, error)

DataplaneFromInstanceArray converts a []*ResourceInstance to a []*Dataplane

func NewDataplane added in v1.1.49

func NewDataplane(name, scopeName string) *Dataplane

NewDataplane creates an empty *Dataplane

func (*Dataplane) AsInstance added in v1.1.49

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

AsInstance converts a Dataplane to a ResourceInstance

func (*Dataplane) FromInstance added in v1.1.49

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

FromInstance converts a ResourceInstance to a Dataplane

func (*Dataplane) MarshalJSON added in v1.1.49

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

MarshalJSON custom marshaller to handle sub resources

func (*Dataplane) PluralName added in v1.1.49

func (res *Dataplane) PluralName() string

PluralName returns the plural name of the resource

func (*Dataplane) UnmarshalJSON added in v1.1.49

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

UnmarshalJSON custom unmarshaller to handle sub resources

type DataplaneSecret added in v1.1.49

type DataplaneSecret struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner         `json:"owner"`
	Spec  DataplaneSecretSpec  `json:"spec"`
	State DataplaneSecretState `json:"state"`
	// Status DataplaneSecretStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

DataplaneSecret Resource

func DataplaneSecretFromInstanceArray added in v1.1.49

func DataplaneSecretFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*DataplaneSecret, error)

DataplaneSecretFromInstanceArray converts a []*ResourceInstance to a []*DataplaneSecret

func NewDataplaneSecret added in v1.1.49

func NewDataplaneSecret(name, scopeName string) *DataplaneSecret

NewDataplaneSecret creates an empty *DataplaneSecret

func (*DataplaneSecret) AsInstance added in v1.1.49

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

AsInstance converts a DataplaneSecret to a ResourceInstance

func (*DataplaneSecret) FromInstance added in v1.1.49

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

FromInstance converts a ResourceInstance to a DataplaneSecret

func (*DataplaneSecret) MarshalJSON added in v1.1.49

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

MarshalJSON custom marshaller to handle sub resources

func (*DataplaneSecret) PluralName added in v1.1.49

func (res *DataplaneSecret) PluralName() string

PluralName returns the plural name of the resource

func (*DataplaneSecret) UnmarshalJSON added in v1.1.49

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

UnmarshalJSON custom unmarshaller to handle sub resources

type DataplaneSecretSpec added in v1.1.49

type DataplaneSecretSpec struct {
	Dataplane string `json:"dataplane"`
	// Key value pairs for accessing the dataplane. The value will be stored encrypted.
	Data string `json:"data"`
}

DataplaneSecretSpec (management.v1alpha1.DataplaneSecret)

type DataplaneSecretState added in v1.1.49

type DataplaneSecretState string

DataplaneSecretState the model 'DataplaneSecretState'

const (
	// GENERATE: The following code has been modified after code generation
	DataplaneSecretStateACTIVE DataplaneSecretState = "active"
	// GENERATE: The following code has been modified after code generation
	DataplaneSecretStateDEPRECATED DataplaneSecretState = "deprecated"
	// GENERATE: The following code has been modified after code generation
	DataplaneSecretStateARCHIVED DataplaneSecretState = "archived"
)

List of DataplaneSecretState

type DataplaneSecretStatus added in v1.1.49

type DataplaneSecretStatus struct {
	// The current status level, indicating progress towards consistency.
	Level string `json:"level"`
	// Reasons for the generated status.
	// GENERATE: The following code has been modified after code generation
	Reasons []interface{} `json:"reasons,omitempty"`
}

DataplaneSecretStatus (management.v1alpha1.DataplaneSecret)

type DataplaneSecretStatusError added in v1.1.49

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

DataplaneSecretStatusError struct for DataplaneSecretStatusError

type DataplaneSecretStatusSuccess added in v1.1.49

type DataplaneSecretStatusSuccess struct {
	Type string `json:"type"`
	// Time when the change occured.
	Timestamp time.Time `json:"timestamp"`
	// message of the result
	Detail string                 `json:"detail"`
	Meta   map[string]interface{} `json:"meta,omitempty"`
}

DataplaneSecretStatusSuccess struct for DataplaneSecretStatusSuccess

type DataplaneSecurity added in v1.1.49

type DataplaneSecurity struct {
	// public key to be used to encrypt the access data linked to this dataplane.
	EncryptionKey       string `json:"encryptionKey"`
	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
	EncryptionHash      string `json:"encryptionHash,omitempty"`
}

DataplaneSecurity (management.v1alpha1.Dataplane)

type DataplaneSpec added in v1.1.49

type DataplaneSpec struct {
	// The dataplane type that this agent connects to
	Type string `json:"type"`
}

DataplaneSpec (management.v1alpha1.Dataplane)

type DiscoveryAgent

type DiscoveryAgent struct {
	apiv1.ResourceMeta
	Dataplane DiscoveryAgentDataplane `json:"dataplane"`
	Owner     *apiv1.Owner            `json:"owner"`
	Spec      DiscoveryAgentSpec      `json:"spec"`
	Status    DiscoveryAgentStatus    `json:"status"`
}

DiscoveryAgent Resource

func DiscoveryAgentFromInstanceArray

func DiscoveryAgentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*DiscoveryAgent, error)

DiscoveryAgentFromInstanceArray converts a []*ResourceInstance to a []*DiscoveryAgent

func NewDiscoveryAgent

func NewDiscoveryAgent(name, scopeName string) *DiscoveryAgent

NewDiscoveryAgent creates an empty *DiscoveryAgent

func (*DiscoveryAgent) AsInstance

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

AsInstance converts a DiscoveryAgent to a ResourceInstance

func (*DiscoveryAgent) FromInstance

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

FromInstance converts a ResourceInstance to a DiscoveryAgent

func (*DiscoveryAgent) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*DiscoveryAgent) PluralName

func (res *DiscoveryAgent) PluralName() string

PluralName returns the plural name of the resource

func (*DiscoveryAgent) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type DiscoveryAgentDataplane added in v1.1.49

type DiscoveryAgentDataplane struct {
	Name string `json:"name,omitempty"`
	// Defines the interval that the dataplane will be accessed (30m = 30 minutes, 5h 5m = 5 hours and 5 mins, 2d = 2 days). 30m minimum
	Frequency string `json:"frequency,omitempty"`
	// Configures queued discovery. Defaults to false
	QueueDiscovery bool `json:"queueDiscovery,omitempty"`
}

DiscoveryAgentDataplane (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentSpec

type DiscoveryAgentSpec struct {
	// The dataplane type that this agent connects to
	DataplaneType string                    `json:"dataplaneType"`
	Config        DiscoveryAgentSpecConfig  `json:"config"`
	Logging       DiscoveryAgentSpecLogging `json:"logging,omitempty"`
}

DiscoveryAgentSpec (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentSpecConfig

type DiscoveryAgentSpecConfig struct {
	// Defines the tag based filter expression to be evaluated for discovering the API from the API Gateway. The filter value is a conditional expression that can use logical operators to compare two value. The conditional expression must have \"tag\" as the prefix/selector in the symbol name. For e.g. “` tag.SOME_TAG == \"somevalue\" “` The expression can be a simple condition as shown above or compound condition in which more than one simple conditions are evaluated using logical operator. For e.g. “` tag.SOME_TAG == \"somevalue\" || tag.ANOTHER_TAG != \"some_other_value\" “` In addition to logical expression, the filter can hold call based expressions. Below are the list of supported call expressions #### Exists Exists call can be made to evaluate if the tag name exists in the list of tags on API. This call expression can be used as unary expression For e.g. “` tag.SOME_TAG.Exists() “` #### Any Any call can be made in a simple expression to evaluate if the tag with any name has specified value or not in the list of tags on the API. For e.g. “` tag.Any() == \"Tag with some value\" || tag.Any() != \"Tag with other value\" “` #### Contains Contains call can be made in a simple expression to evaluate if the the specified tag contains specified argument as value. This call expression requires string argument that will be used to perform lookup in tag value For e.g. “` tag.Contains(\"somevalue\") “` #### MatchRegEx MatchRegEx call can be used for evaluating the specified tag value to match specified regular expression. This call expression requires a regular expression as the argument. For e.g. “` tag.MatchRegEx(\"(some){1}\") “`
	Filter string `json:"filter,omitempty"`
	// The list of tags to be added to the API service resource that the agent publishes to Amplify Central
	AdditionalTags []string `json:"additionalTags,omitempty"`
	// The list of tags to exclude from the API service resource that the agent publishes to Amplify Central
	IgnoreTags []string `json:"ignoreTags,omitempty"`
	// Name of the team that owns the catalog item created by agent. If not provided, the default team will be used.
	OwningTeam string `json:"owningTeam,omitempty"`
}

DiscoveryAgentSpecConfig Represents the discovery agent config (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentSpecLogging

type DiscoveryAgentSpecLogging struct {
	// Defines the log level.
	Level string `json:"level,omitempty"`
}

DiscoveryAgentSpecLogging Logging config (management.v1alpha1.DiscoveryAgent)

type DiscoveryAgentStatus

type DiscoveryAgentStatus struct {
	// Version name for the agent revision.
	Version string `json:"version,omitempty"`
	// Latest available version for the agent revision.
	LatestAvailableVersion string `json:"latestAvailableVersion,omitempty"`
	// Agent status:  * running - Passed all health checks.  Up and running  * stopped - Agent is not running  * failed - Failed health checks  * unhealthy - Agent is running with health check failure
	State         string `json:"state,omitempty"`
	PreviousState string `json:"previousState,omitempty"`
	// A way to communicate details about the current status by the agent
	Message string `json:"message,omitempty"`
	// The last updated event timestamp provided by the agent
	LastActivityTime time.Time `json:"lastActivityTime,omitempty"`
	// Version name for the SDK revision.
	SdkVersion string `json:"sdkVersion,omitempty"`
}

DiscoveryAgentStatus (management.v1alpha1.DiscoveryAgent)

type Environment

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

Environment Resource

func EnvironmentFromInstanceArray

func EnvironmentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Environment, error)

EnvironmentFromInstanceArray converts a []*ResourceInstance to a []*Environment

func NewEnvironment

func NewEnvironment(name string) *Environment

NewEnvironment creates an empty *Environment

func (*Environment) AsInstance

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

AsInstance converts a Environment to a ResourceInstance

func (*Environment) FromInstance

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

FromInstance converts a ResourceInstance to a Environment

func (*Environment) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*Environment) PluralName

func (res *Environment) PluralName() string

PluralName returns the plural name of the resource

func (*Environment) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type EnvironmentSpec

type EnvironmentSpec struct {
	Description string `json:"description,omitempty"`
	//  (management.v1alpha1.Environment)
	Variables map[string]string `json:"variables,omitempty"`
	// Production environment will be used to perform production processing or connect to a non-Axway gateway. This usage will count against your entitled quota.
	Production bool `json:"production,omitempty"`
	// Axway Managed environment is hosted in the Axway Managed Cloud.
	AxwayManaged bool                `json:"axwayManaged,omitempty"`
	Icon         EnvironmentSpecIcon `json:"icon,omitempty"`
}

EnvironmentSpec (management.v1alpha1.Environment)

type EnvironmentSpecIcon

type EnvironmentSpecIcon struct {
	// Content-Type of the image.
	ContentType string `json:"contentType,omitempty"`
	// Base64 encoded image.
	Data string `json:"data,omitempty"`
}

EnvironmentSpecIcon Image for the Environment. (management.v1alpha1.Environment)

type Integration

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

Integration Resource

func IntegrationFromInstanceArray

func IntegrationFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Integration, error)

IntegrationFromInstanceArray converts a []*ResourceInstance to a []*Integration

func NewIntegration

func NewIntegration(name string) *Integration

NewIntegration creates an empty *Integration

func (*Integration) AsInstance

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

AsInstance converts a Integration to a ResourceInstance

func (*Integration) FromInstance

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

FromInstance converts a ResourceInstance to a Integration

func (*Integration) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*Integration) PluralName

func (res *Integration) PluralName() string

PluralName returns the plural name of the resource

func (*Integration) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type IntegrationSpec

type IntegrationSpec struct {
	Description string `json:"description,omitempty"`
}

IntegrationSpec (management.v1alpha1.Integration)

type K8SCluster

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

K8SCluster Resource

func K8SClusterFromInstanceArray

func K8SClusterFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*K8SCluster, error)

K8SClusterFromInstanceArray converts a []*ResourceInstance to a []*K8SCluster

func NewK8SCluster

func NewK8SCluster(name string) *K8SCluster

NewK8SCluster creates an empty *K8SCluster

func (*K8SCluster) AsInstance

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

AsInstance converts a K8SCluster to a ResourceInstance

func (*K8SCluster) FromInstance

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

FromInstance converts a ResourceInstance to a K8SCluster

func (*K8SCluster) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*K8SCluster) PluralName

func (res *K8SCluster) PluralName() string

PluralName returns the plural name of the resource

func (*K8SCluster) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type K8SClusterSpec

type K8SClusterSpec struct {
	Mesh string `json:"mesh,omitempty"`
}

K8SClusterSpec (management.v1alpha1.K8SCluster)

type K8SResource

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

K8SResource Resource

func K8SResourceFromInstanceArray

func K8SResourceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*K8SResource, error)

K8SResourceFromInstanceArray converts a []*ResourceInstance to a []*K8SResource

func NewK8SResource

func NewK8SResource(name, scopeName string) *K8SResource

NewK8SResource creates an empty *K8SResource

func (*K8SResource) AsInstance

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

AsInstance converts a K8SResource to a ResourceInstance

func (*K8SResource) FromInstance

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

FromInstance converts a ResourceInstance to a K8SResource

func (*K8SResource) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*K8SResource) PluralName

func (res *K8SResource) PluralName() string

PluralName returns the plural name of the resource

func (*K8SResource) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type K8SResourceSpec

type K8SResourceSpec struct {
	ResourceDiscovery string                           `json:"resourceDiscovery,omitempty"`
	ResourceVersion   string                           `json:"resourceVersion,omitempty"`
	Uid               string                           `json:"uid,omitempty"`
	OwnerReferences   []K8SResourceSpecOwnerReferences `json:"ownerReferences,omitempty"`
	//  (management.v1alpha1.K8SResource)
	ResourceSpec map[string]interface{} `json:"resourceSpec,omitempty"`
	//  (management.v1alpha1.K8SResource)
	ResourceStatus map[string]interface{} `json:"resourceStatus,omitempty"`
}

K8SResourceSpec (management.v1alpha1.K8SResource)

type K8SResourceSpecOwnerReferences

type K8SResourceSpecOwnerReferences struct {
	Kind string `json:"kind,omitempty"`
	Name string `json:"name,omitempty"`
}

K8SResourceSpecOwnerReferences (management.v1alpha1.K8SResource)

type ManagedApplication

type ManagedApplication struct {
	apiv1.ResourceMeta
	Marketplace ManagedApplicationMarketplace `json:"marketplace"`
	Owner       *apiv1.Owner                  `json:"owner"`
	References  ManagedApplicationReferences  `json:"references"`
	Spec        ManagedApplicationSpec        `json:"spec"`
	// Status      ManagedApplicationStatus      `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

ManagedApplication Resource

func ManagedApplicationFromInstanceArray

func ManagedApplicationFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ManagedApplication, error)

ManagedApplicationFromInstanceArray converts a []*ResourceInstance to a []*ManagedApplication

func NewManagedApplication

func NewManagedApplication(name, scopeName string) *ManagedApplication

NewManagedApplication creates an empty *ManagedApplication

func (*ManagedApplication) AsInstance

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

AsInstance converts a ManagedApplication to a ResourceInstance

func (*ManagedApplication) FromInstance

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

FromInstance converts a ResourceInstance to a ManagedApplication

func (*ManagedApplication) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*ManagedApplication) PluralName

func (res *ManagedApplication) PluralName() string

PluralName returns the plural name of the resource

func (*ManagedApplication) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ManagedApplicationMarketplace

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

ManagedApplicationMarketplace Details about the marketplace Application. (management.v1alpha1.ManagedApplication)

type ManagedApplicationMarketplaceResource

type ManagedApplicationMarketplaceResource struct {
	Metadata ManagedApplicationMarketplaceResourceMetadata `json:"metadata"`
	Owner    ManagedApplicationMarketplaceResourceOwner    `json:"owner,omitempty"`
}

ManagedApplicationMarketplaceResource The Marketplace Application resource details. (management.v1alpha1.ManagedApplication)

type ManagedApplicationMarketplaceResourceMetadata

type ManagedApplicationMarketplaceResourceMetadata struct {
	// Id of the user that created the entity.
	CreateUserId string `json:"createUserId,omitempty"`
	// Id of the user that created the entity.
	ModifyUserId string `json:"modifyUserId,omitempty"`
}

ManagedApplicationMarketplaceResourceMetadata Marketplace Application metadata. (management.v1alpha1.ManagedApplication)

type ManagedApplicationMarketplaceResourceOwner

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

ManagedApplicationMarketplaceResourceOwner Owner of the Application. (management.v1alpha1.ManagedApplication)

type ManagedApplicationMarketplaceResourceOwnerOrganization

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

ManagedApplicationMarketplaceResourceOwnerOrganization Organization details. (management.v1alpha1.ManagedApplication)

type ManagedApplicationReferences

type ManagedApplicationReferences struct {
	// Reference to Application resource
	Application string `json:"application,omitempty"`
}

ManagedApplicationReferences (management.v1alpha1.ManagedApplication)

type ManagedApplicationSpec

type ManagedApplicationSpec struct {
	Security ManagedApplicationSpecSecurity `json:"security,omitempty"`
}

ManagedApplicationSpec (management.v1alpha1.ManagedApplication)

type ManagedApplicationSpecSecurity

type ManagedApplicationSpecSecurity struct {
	// public key to be used to encrypt the credentials linked to this Managed Application.
	EncryptionKey       string `json:"encryptionKey"`
	EncryptionAlgorithm string `json:"encryptionAlgorithm,omitempty"`
	EncryptionHash      string `json:"encryptionHash,omitempty"`
}

ManagedApplicationSpecSecurity (management.v1alpha1.ManagedApplication)

type ManagedApplicationStatus

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

ManagedApplicationStatus (management.v1alpha1.ManagedApplication)

type Mesh

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

Mesh Resource

func MeshFromInstanceArray

func MeshFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Mesh, error)

MeshFromInstanceArray converts a []*ResourceInstance to a []*Mesh

func NewMesh

func NewMesh(name string) *Mesh

NewMesh creates an empty *Mesh

func (*Mesh) AsInstance

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

AsInstance converts a Mesh to a ResourceInstance

func (*Mesh) FromInstance

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

FromInstance converts a ResourceInstance to a Mesh

func (*Mesh) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*Mesh) PluralName

func (res *Mesh) PluralName() string

PluralName returns the plural name of the resource

func (*Mesh) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type MeshDiscovery

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

MeshDiscovery Resource

func MeshDiscoveryFromInstanceArray

func MeshDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshDiscovery, error)

MeshDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*MeshDiscovery

func NewMeshDiscovery

func NewMeshDiscovery(name, scopeName string) *MeshDiscovery

NewMeshDiscovery creates an empty *MeshDiscovery

func (*MeshDiscovery) AsInstance

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

AsInstance converts a MeshDiscovery to a ResourceInstance

func (*MeshDiscovery) FromInstance

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

FromInstance converts a ResourceInstance to a MeshDiscovery

func (*MeshDiscovery) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*MeshDiscovery) PluralName

func (res *MeshDiscovery) PluralName() string

PluralName returns the plural name of the resource

func (*MeshDiscovery) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type MeshDiscoverySpec

type MeshDiscoverySpec struct {
	// Target environment.
	EnvironmentRef string `json:"environmentRef"`
}

MeshDiscoverySpec (management.v1alpha1.MeshDiscovery)

type MeshService

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

MeshService Resource

func MeshServiceFromInstanceArray

func MeshServiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshService, error)

MeshServiceFromInstanceArray converts a []*ResourceInstance to a []*MeshService

func NewMeshService

func NewMeshService(name, scopeName string) *MeshService

NewMeshService creates an empty *MeshService

func (*MeshService) AsInstance

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

AsInstance converts a MeshService to a ResourceInstance

func (*MeshService) FromInstance

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

FromInstance converts a ResourceInstance to a MeshService

func (*MeshService) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*MeshService) PluralName

func (res *MeshService) PluralName() string

PluralName returns the plural name of the resource

func (*MeshService) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type MeshServiceSpec

type MeshServiceSpec struct {
	// The labels used by the service to match workloads it exposes. (management.v1alpha1.MeshService)
	Selector map[string]string `json:"selector,omitempty"`
	// Reference to the K8SResource derived from the Kubernetes Service.
	Resource string `json:"resource,omitempty"`
	// References to workloads exposed by the service.
	Workloads []string `json:"workloads,omitempty"`
	// Details per port.
	Ports []MeshServiceSpecPorts `json:"ports,omitempty"`
}

MeshServiceSpec (management.v1alpha1.MeshService)

type MeshServiceSpecEndpoints

type MeshServiceSpecEndpoints struct {
	Workloads []string `json:"workloads,omitempty"`
	// A subset is the set of labels one or more workloads has outside the labels in the service selector. (management.v1alpha1.MeshService)
	Subset map[string]string `json:"subset,omitempty"`
	// Array of references to apispecs discovered by the discovery agent.
	Specs []string `json:"specs,omitempty"`
}

MeshServiceSpecEndpoints (management.v1alpha1.MeshService)

type MeshServiceSpecPorts

type MeshServiceSpecPorts struct {
	Name      string                     `json:"name,omitempty"`
	Port      int32                      `json:"port,omitempty"`
	Endpoints []MeshServiceSpecEndpoints `json:"endpoints,omitempty"`
}

MeshServiceSpecPorts (management.v1alpha1.MeshService)

type MeshWorkload

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

MeshWorkload Resource

func MeshWorkloadFromInstanceArray

func MeshWorkloadFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*MeshWorkload, error)

MeshWorkloadFromInstanceArray converts a []*ResourceInstance to a []*MeshWorkload

func NewMeshWorkload

func NewMeshWorkload(name, scopeName string) *MeshWorkload

NewMeshWorkload creates an empty *MeshWorkload

func (*MeshWorkload) AsInstance

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

AsInstance converts a MeshWorkload to a ResourceInstance

func (*MeshWorkload) FromInstance

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

FromInstance converts a ResourceInstance to a MeshWorkload

func (*MeshWorkload) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*MeshWorkload) PluralName

func (res *MeshWorkload) PluralName() string

PluralName returns the plural name of the resource

func (*MeshWorkload) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type MeshWorkloadSpec

type MeshWorkloadSpec struct {
	// References to k8sresources making up the workload.
	Resources []string `json:"resources,omitempty"`
	// Labels from the k8sresources making up the workload. (management.v1alpha1.MeshWorkload)
	Labels map[string]string `json:"labels,omitempty"`
	// Discovered ports on the workload.
	Ports []MeshWorkloadSpecPorts `json:"ports,omitempty"`
}

MeshWorkloadSpec (management.v1alpha1.MeshWorkload)

type MeshWorkloadSpecPorts

type MeshWorkloadSpecPorts struct {
	// The name of the port.
	Name string `json:"name,omitempty"`
	// Port number.
	Port  int32                 `json:"port,omitempty"`
	Specs MeshWorkloadSpecSpecs `json:"specs,omitempty"`
}

MeshWorkloadSpecPorts (management.v1alpha1.MeshWorkload)

type MeshWorkloadSpecSpecs

type MeshWorkloadSpecSpecs struct {
	// Array of references to apispecs discovered by the discovery agent.
	DiscoveredSpecs []string `json:"discoveredSpecs,omitempty"`
}

MeshWorkloadSpecSpecs API specs exposed by this workload on this port. (management.v1alpha1.MeshWorkload)

type ResourceDiscovery

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

ResourceDiscovery Resource

func NewResourceDiscovery

func NewResourceDiscovery(name, scopeName string) *ResourceDiscovery

NewResourceDiscovery creates an empty *ResourceDiscovery

func ResourceDiscoveryFromInstanceArray

func ResourceDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ResourceDiscovery, error)

ResourceDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*ResourceDiscovery

func (*ResourceDiscovery) AsInstance

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

AsInstance converts a ResourceDiscovery to a ResourceInstance

func (*ResourceDiscovery) FromInstance

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

FromInstance converts a ResourceInstance to a ResourceDiscovery

func (*ResourceDiscovery) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*ResourceDiscovery) PluralName

func (res *ResourceDiscovery) PluralName() string

PluralName returns the plural name of the resource

func (*ResourceDiscovery) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ResourceDiscoverySpec

type ResourceDiscoverySpec struct {
	Version          string                               `json:"version,omitempty"`
	Kind             string                               `json:"kind,omitempty"`
	Group            string                               `json:"group,omitempty"`
	NamespaceFilter  ResourceDiscoverySpecNamespaceFilter `json:"namespaceFilter,omitempty"`
	ResourceFilter   ResourceDiscoverySpecResourceFilter  `json:"resourceFilter,omitempty"`
	KeepSpecFields   []string                             `json:"keepSpecFields,omitempty"`
	KeepStatusFields []string                             `json:"keepStatusFields,omitempty"`
	IgnoreLabels     []string                             `json:"ignoreLabels,omitempty"`
	Tags             []string                             `json:"tags,omitempty"`
	//  (management.v1alpha1.ResourceDiscovery)
	ExtraAttributes map[string]string `json:"extraAttributes,omitempty"`
}

ResourceDiscoverySpec (management.v1alpha1.ResourceDiscovery)

type ResourceDiscoverySpecNamespaceFilter

type ResourceDiscoverySpecNamespaceFilter struct {
	Names []string `json:"names,omitempty"`
}

ResourceDiscoverySpecNamespaceFilter Namespace filter. (management.v1alpha1.ResourceDiscovery)

type ResourceDiscoverySpecResourceFilter

type ResourceDiscoverySpecResourceFilter struct {
	Names []string `json:"names,omitempty"`
	//  (management.v1alpha1.ResourceDiscovery)
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

ResourceDiscoverySpecResourceFilter Resource filter. (management.v1alpha1.ResourceDiscovery)

type ResourceHook

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

ResourceHook Resource

func NewResourceHook

func NewResourceHook(name, scopeName string) *ResourceHook

NewResourceHook creates an empty *ResourceHook

func ResourceHookFromInstanceArray

func ResourceHookFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ResourceHook, error)

ResourceHookFromInstanceArray converts a []*ResourceInstance to a []*ResourceHook

func (*ResourceHook) AsInstance

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

AsInstance converts a ResourceHook to a ResourceInstance

func (*ResourceHook) FromInstance

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

FromInstance converts a ResourceInstance to a ResourceHook

func (*ResourceHook) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*ResourceHook) PluralName

func (res *ResourceHook) PluralName() string

PluralName returns the plural name of the resource

func (*ResourceHook) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ResourceHookSpec

type ResourceHookSpec struct {
	Triggers []ResourceHookSpecTriggers `json:"triggers"`
	// List of Webhook kind resource names that dictates what webhooks will be invoked on matching triggers.
	Webhooks []string `json:"webhooks"`
}

ResourceHookSpec (management.v1alpha1.ResourceHook)

type ResourceHookSpecScope

type ResourceHookSpecScope struct {
	// Value for the Kind of the scope of the resource. Use \"*\" for any.
	Kind string `json:"kind"`
	// Name of the scope of the resource. Use \"*\" for any.
	Name string `json:"name"`
}

ResourceHookSpecScope Resource scope trigger details. (management.v1alpha1.ResourceHook)

type ResourceHookSpecTriggers

type ResourceHookSpecTriggers struct {
	// Value for the group of the resource. Use \"*\" for any.
	Group string                `json:"group"`
	Scope ResourceHookSpecScope `json:"scope,omitempty"`
	// Value for the Kind of the resource. Use \"*\" for any.
	Kind string `json:"kind"`
	// Name of the resource. Use \"*\" for any.
	Name string   `json:"name"`
	Type []string `json:"type"`
}

ResourceHookSpecTriggers (management.v1alpha1.ResourceHook)

type Secret

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

Secret Resource

func NewSecret

func NewSecret(name, scopeKind, scopeName string) (*Secret, error)

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. (management.v1alpha1.Secret)
	Data map[string]string `json:"data,omitempty"`
}

SecretSpec (management.v1alpha1.Secret)

type SpecDiscovery

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

SpecDiscovery Resource

func NewSpecDiscovery

func NewSpecDiscovery(name, scopeName string) *SpecDiscovery

NewSpecDiscovery creates an empty *SpecDiscovery

func SpecDiscoveryFromInstanceArray

func SpecDiscoveryFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*SpecDiscovery, error)

SpecDiscoveryFromInstanceArray converts a []*ResourceInstance to a []*SpecDiscovery

func (*SpecDiscovery) AsInstance

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

AsInstance converts a SpecDiscovery to a ResourceInstance

func (*SpecDiscovery) FromInstance

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

FromInstance converts a ResourceInstance to a SpecDiscovery

func (*SpecDiscovery) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*SpecDiscovery) PluralName

func (res *SpecDiscovery) PluralName() string

PluralName returns the plural name of the resource

func (*SpecDiscovery) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type SpecDiscoverySpec

type SpecDiscoverySpec struct {
	NamespaceFilter SpecDiscoverySpecNamespaceFilter `json:"namespaceFilter,omitempty"`
	ResourceFilter  SpecDiscoverySpecResourceFilter  `json:"resourceFilter,omitempty"`
	Targets         SpecDiscoverySpecTargets         `json:"targets,omitempty"`
}

SpecDiscoverySpec (management.v1alpha1.SpecDiscovery)

type SpecDiscoverySpecNamespaceFilter

type SpecDiscoverySpecNamespaceFilter struct {
	Names []string `json:"names,omitempty"`
}

SpecDiscoverySpecNamespaceFilter a list of namespace names to follow. If not set, follows all namespaces. (management.v1alpha1.SpecDiscovery)

type SpecDiscoverySpecResourceFilter

type SpecDiscoverySpecResourceFilter struct {
	Names []string `json:"names,omitempty"`
	//  (management.v1alpha1.SpecDiscovery)
	MatchLabels map[string]string `json:"matchLabels,omitempty"`
}

SpecDiscoverySpecResourceFilter Filter pod resources by name or labels. (management.v1alpha1.SpecDiscovery)

type SpecDiscoverySpecTargets

type SpecDiscoverySpecTargets struct {
	ExactPaths     []SpecDiscoverySpecTargetsExactPaths     `json:"exactPaths,omitempty"`
	FromAnnotation []SpecDiscoverySpecTargetsFromAnnotation `json:"fromAnnotation,omitempty"`
}

SpecDiscoverySpecTargets (management.v1alpha1.SpecDiscovery)

type SpecDiscoverySpecTargetsExactPaths

type SpecDiscoverySpecTargetsExactPaths struct {
	// path to api definition
	Path string `json:"path,omitempty"`
	// headers to add to the query (management.v1alpha1.SpecDiscovery)
	Headers map[string]string `json:"headers,omitempty"`
}

SpecDiscoverySpecTargetsExactPaths (management.v1alpha1.SpecDiscovery)

type SpecDiscoverySpecTargetsFromAnnotation

type SpecDiscoverySpecTargetsFromAnnotation struct {
	// annotation template. golang template that's fed the following object for each declared port of the pod: {\"name\", \"number\"}
	Template string `json:"template,omitempty"`
}

SpecDiscoverySpecTargetsFromAnnotation (management.v1alpha1.SpecDiscovery)

type TraceabilityAgent

type TraceabilityAgent struct {
	apiv1.ResourceMeta
	Owner  *apiv1.Owner            `json:"owner"`
	Spec   TraceabilityAgentSpec   `json:"spec"`
	Status TraceabilityAgentStatus `json:"status"`
}

TraceabilityAgent Resource

func NewTraceabilityAgent

func NewTraceabilityAgent(name, scopeName string) *TraceabilityAgent

NewTraceabilityAgent creates an empty *TraceabilityAgent

func TraceabilityAgentFromInstanceArray

func TraceabilityAgentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*TraceabilityAgent, error)

TraceabilityAgentFromInstanceArray converts a []*ResourceInstance to a []*TraceabilityAgent

func (*TraceabilityAgent) AsInstance

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

AsInstance converts a TraceabilityAgent to a ResourceInstance

func (*TraceabilityAgent) FromInstance

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

FromInstance converts a ResourceInstance to a TraceabilityAgent

func (*TraceabilityAgent) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*TraceabilityAgent) PluralName

func (res *TraceabilityAgent) PluralName() string

PluralName returns the plural name of the resource

func (*TraceabilityAgent) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type TraceabilityAgentSpec

type TraceabilityAgentSpec struct {
	// The dataplane type that this agent connects to
	DataplaneType string                       `json:"dataplaneType"`
	Config        TraceabilityAgentSpecConfig  `json:"config"`
	Logging       TraceabilityAgentSpecLogging `json:"logging,omitempty"`
}

TraceabilityAgentSpec (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecConfig

type TraceabilityAgentSpecConfig struct {
	// Name of the team that owns the catalog item created by agent. If not provided, the default team will be used.
	OwningTeam string `json:"owningTeam,omitempty"`
	// Configures the agent to include request and response headers in captured traffic. Defaults to true
	ProcessHeaders bool `json:"processHeaders,omitempty"`
	// List of header names that will not be included in the captured traffic by the agent
	ExcludeHeaders []string `json:"excludeHeaders,omitempty"`
}

TraceabilityAgentSpecConfig Represents the traceability agent config (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentSpecLogging

type TraceabilityAgentSpecLogging struct {
	// Defines the log level.
	Level string `json:"level,omitempty"`
}

TraceabilityAgentSpecLogging Logging config (management.v1alpha1.TraceabilityAgent)

type TraceabilityAgentStatus

type TraceabilityAgentStatus struct {
	// Version name for the agent revision.
	Version string `json:"version,omitempty"`
	// Latest available version for the agent revision.
	LatestAvailableVersion string `json:"latestAvailableVersion,omitempty"`
	// Agent status:  * running - Passed all health checks.  Up and running  * stopped - Agent is not running  * failed - Failed health checks  * unhealthy - Agent is running with health check failure
	State         string `json:"state,omitempty"`
	PreviousState string `json:"previousState,omitempty"`
	// A way to communicate details about the current status by the agent
	Message string `json:"message,omitempty"`
	// The last updated event timestamp provided by the agent
	LastActivityTime time.Time `json:"lastActivityTime,omitempty"`
	// Version name for the SDK revision.
	SdkVersion string `json:"sdkVersion,omitempty"`
}

TraceabilityAgentStatus (management.v1alpha1.TraceabilityAgent)

type WatchTopic

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

WatchTopic Resource

func NewWatchTopic

func NewWatchTopic(name string) *WatchTopic

NewWatchTopic creates an empty *WatchTopic

func WatchTopicFromInstanceArray

func WatchTopicFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*WatchTopic, error)

WatchTopicFromInstanceArray converts a []*ResourceInstance to a []*WatchTopic

func (*WatchTopic) AsInstance

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

AsInstance converts a WatchTopic to a ResourceInstance

func (*WatchTopic) FromInstance

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

FromInstance converts a ResourceInstance to a WatchTopic

func (*WatchTopic) MarshalJSON

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

MarshalJSON custom marshaller to handle sub resources

func (*WatchTopic) PluralName

func (res *WatchTopic) PluralName() string

PluralName returns the plural name of the resource

func (*WatchTopic) UnmarshalJSON

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

UnmarshalJSON custom unmarshaller to handle sub resources

type WatchTopicSpec

type WatchTopicSpec struct {
	// Description of the WatchTopic
	Description string                  `json:"description,omitempty"`
	Filters     []WatchTopicSpecFilters `json:"filters"`
}

WatchTopicSpec (management.v1alpha1.WatchTopic)

type WatchTopicSpecFilters

type WatchTopicSpecFilters struct {
	// Value for the group of the resource. Use \"*\" for any.
	Group string `json:"group"`
	// GENERATE: The following code has been modified after code generation
	//
	//	Scope WatchTopicSpecScope `json:"scope,omitempty"`
	Scope *WatchTopicSpecScope `json:"scope,omitempty"`
	// Value for the Kind of the resource. Use \"*\" for any.
	Kind string `json:"kind"`
	// Name of the resource. Use \"*\" for any.
	Name string   `json:"name"`
	Type []string `json:"type"`
}

WatchTopicSpecFilters (management.v1alpha1.WatchTopic)

type WatchTopicSpecScope

type WatchTopicSpecScope struct {
	// Value for the Kind of the scope of the resource. Use \"*\" for any.
	Kind string `json:"kind"`
	// Name of the scope of the resource. Use \"*\" for any.
	Name string `json:"name"`
}

WatchTopicSpecScope Resource scope filter details. (management.v1alpha1.WatchTopic)

type Webhook

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

Webhook Resource

func NewWebhook

func NewWebhook(name, scopeKind, scopeName string) (*Webhook, error)

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. (management.v1alpha1.Webhook)
	Headers map[string]string `json:"headers,omitempty"`
}

WebhookSpec (management.v1alpha1.Webhook)

type WebhookSpecAuth

type WebhookSpecAuth struct {
	Secret WebhookSpecAuthSecret `json:"secret,omitempty"`
}

WebhookSpecAuth Defines the authentication used to invoke the webhook. When invoking the webhook, the value from the secret/key will be sent in the Authorization header. (management.v1alpha1.Webhook)

type WebhookSpecAuthSecret

type WebhookSpecAuthSecret struct {
	// Secret name to be used as a reference. If the secret is removed, the reference gets removed and the webhook invocation will be done with no Authorization header.
	Name string `json:"name,omitempty"`
	// Key to be used from the referenced secret.
	Key string `json:"key,omitempty"`
}

WebhookSpecAuthSecret (management.v1alpha1.Webhook)

Source Files

Jump to

Keyboard shortcuts

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