management

package
v1.1.33 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: Apache-2.0 Imports: 3 Imported by: 6

Documentation ¶

Index ¶

Constants ¶

View Source
const APIKeyAuthRuleResourceName = "apikeyauthrules"
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 AmplifyConfigResourceName = "ampconfigs"
View Source
const AmplifyJWTAuthRuleResourceName = "amplifyjwtauthrules"
View Source
const AmplifyOAuth2AuthRuleResourceName = "amplifyoauth2authrules"
View Source
const AmplifyRuntimeConfigResourceName = "ampruntimeconfigs"
View Source
const AssetMappingResourceName = "assetmappings"
View Source
const AssetMappingTemplateResourceName = "assetmappingtemplates"
View Source
const ConsumerInstanceResourceName = "consumerinstances"
View Source
const ConsumerSubscriptionDefinitionResourceName = "consumersubscriptiondefs"
View Source
const CorsRuleResourceName = "corsrules"
View Source
const CredentialRequestDefinitionResourceName = "credentialrequestdefinitions"
View Source
const CredentialResourceName = "credentials"
View Source
const DeploymentResourceName = "deployments"
View Source
const DiscoveryAgentResourceName = "discoveryagents"
View Source
const EnvironmentResourceName = "environments"
View Source
const ExternalSecretResourceName = "externalsecrets"
View Source
const GovernanceAgentResourceName = "governanceagents"
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 OAS3DocumentResourceName = "oas3documents"
View Source
const ReleaseTagResourceName = "releasetags"
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 VirtualAPIReleaseResourceName = "virtualapireleases"
View Source
const VirtualAPIResourceName = "virtualapis"
View Source
const VirtualHostResourceName = "virtualhosts"
View Source
const VirtualServiceResourceName = "virtualservices"
View Source
const WatchTopicResourceName = "watchtopics"
View Source
const WebhookResourceName = "webhooks"

Variables ¶

View Source
var (
	APIKeyAuthRuleScopes = []string{"VirtualAPI", "VirtualAPIRelease"}
)
View Source
var (
	APIServiceInstanceScopes = []string{"Environment"}
)
View Source
var (
	APIServiceRevisionScopes = []string{"Environment"}
)
View Source
var (
	APIServiceScopes = []string{"Environment"}
)
View Source
var (
	APISpecScopes = []string{"K8SCluster"}
)
View Source
var (
	AccessControlListScopes = []string{"Environment", "Integration", "K8SCluster", "Mesh", "VirtualAPI", "VirtualAPIRelease", "WatchTopic"}
)
View Source
var (
	AccessRequestDefinitionScopes = []string{"Environment"}
)
View Source
var (
	AccessRequestScopes = []string{"Environment"}
)
View Source
var (
	AmplifyConfigScopes = []string{"Environment"}
)
View Source
var (
	AmplifyJWTAuthRuleScopes = []string{"VirtualAPI", "VirtualAPIRelease"}
)
View Source
var (
	AmplifyOAuth2AuthRuleScopes = []string{"VirtualAPI", "VirtualAPIRelease"}
)
View Source
var (
	AmplifyRuntimeConfigScopes = []string{"Environment"}
)
View Source
var (
	AssetMappingScopes = []string{"Environment"}
)
View Source
var (
	AssetMappingTemplateScopes = []string{"Environment"}
)
View Source
var (
	ConsumerInstanceScopes = []string{"Environment"}
)
View Source
var (
	ConsumerSubscriptionDefinitionScopes = []string{"Environment"}
)
View Source
var (
	CorsRuleScopes = []string{"VirtualAPI", "VirtualAPIRelease"}
)
View Source
var (
	CredentialRequestDefinitionScopes = []string{"Environment"}
)
View Source
var (
	CredentialScopes = []string{"Environment"}
)
View Source
var (
	DeploymentScopes = []string{"Environment"}
)
View Source
var (
	DiscoveryAgentScopes = []string{"Environment"}
)
View Source
var (
	EnvironmentScopes = []string{""}
)
View Source
var (
	ExternalSecretScopes = []string{"Environment", "VirtualAPI", "VirtualAPIRelease"}
)
View Source
var (
	GovernanceAgentScopes = []string{"Environment"}
)
View Source
var (
	IntegrationScopes = []string{""}
)
View Source
var (
	K8SClusterScopes = []string{""}
)
View Source
var (
	K8SResourceScopes = []string{"K8SCluster"}
)
View Source
var (
	ManagedApplicationScopes = []string{"Environment"}
)
View Source
var (
	MeshDiscoveryScopes = []string{"Mesh"}
)
View Source
var (
	MeshScopes = []string{""}
)
View Source
var (
	MeshServiceScopes = []string{"Mesh"}
)
View Source
var (
	MeshWorkloadScopes = []string{"Mesh"}
)
View Source
var (
	OAS3DocumentScopes = []string{"VirtualAPI", "VirtualAPIRelease"}
)
View Source
var (
	ReleaseTagScopes = []string{"VirtualAPI"}
)
View Source
var (
	ResourceDiscoveryScopes = []string{"K8SCluster"}
)
View Source
var (
	ResourceHookScopes = []string{"Integration"}
)
View Source
var (
	SecretScopes = []string{"Environment", "Integration"}
)
View Source
var (
	SpecDiscoveryScopes = []string{"K8SCluster"}
)
View Source
var (
	TraceabilityAgentScopes = []string{"Environment"}
)
View Source
var (
	VirtualAPIReleaseScopes = []string{""}
)
View Source
var (
	VirtualAPIScopes = []string{""}
)
View Source
var (
	VirtualHostScopes = []string{"Environment"}
)
View Source
var (
	VirtualServiceScopes = []string{"VirtualAPI", "VirtualAPIRelease"}
)
View Source
var (
	WatchTopicScopes = []string{""}
)
View Source
var (
	WebhookScopes = []string{"Environment", "Integration"}
)

Functions ¶

func APIKeyAuthRuleGVK ¶

func APIKeyAuthRuleGVK() apiv1.GroupVersionKind

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

func AmplifyConfigGVK() apiv1.GroupVersionKind

func AmplifyJWTAuthRuleGVK ¶

func AmplifyJWTAuthRuleGVK() apiv1.GroupVersionKind

func AmplifyOAuth2AuthRuleGVK ¶

func AmplifyOAuth2AuthRuleGVK() apiv1.GroupVersionKind

func AmplifyRuntimeConfigGVK ¶

func AmplifyRuntimeConfigGVK() 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 CorsRuleGVK ¶

func CorsRuleGVK() apiv1.GroupVersionKind

func CredentialGVK ¶

func CredentialGVK() apiv1.GroupVersionKind

func CredentialRequestDefinitionGVK ¶

func CredentialRequestDefinitionGVK() apiv1.GroupVersionKind

func DeploymentGVK ¶

func DeploymentGVK() apiv1.GroupVersionKind

func DiscoveryAgentGVK ¶

func DiscoveryAgentGVK() apiv1.GroupVersionKind

func EnvironmentGVK ¶

func EnvironmentGVK() apiv1.GroupVersionKind

func ExternalSecretGVK ¶

func ExternalSecretGVK() apiv1.GroupVersionKind

func GovernanceAgentGVK ¶

func GovernanceAgentGVK() 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 OAS3DocumentGVK ¶

func OAS3DocumentGVK() apiv1.GroupVersionKind

func ReleaseTagGVK ¶

func ReleaseTagGVK() 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 VirtualAPIGVK ¶

func VirtualAPIGVK() apiv1.GroupVersionKind

func VirtualAPIReleaseGVK ¶

func VirtualAPIReleaseGVK() apiv1.GroupVersionKind

func VirtualHostGVK ¶

func VirtualHostGVK() apiv1.GroupVersionKind

func VirtualServiceGVK ¶

func VirtualServiceGVK() apiv1.GroupVersionKind

func WatchTopicGVK ¶

func WatchTopicGVK() apiv1.GroupVersionKind

func WebhookGVK ¶

func WebhookGVK() apiv1.GroupVersionKind

Types ¶

type APIKeyAuthRule ¶

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

APIKeyAuthRule Resource

func APIKeyAuthRuleFromInstanceArray ¶

func APIKeyAuthRuleFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*APIKeyAuthRule, error)

APIKeyAuthRuleFromInstanceArray converts a []*ResourceInstance to a []*APIKeyAuthRule

func NewAPIKeyAuthRule ¶

func NewAPIKeyAuthRule(name, scopeKind, scopeName string) (*APIKeyAuthRule, error)

NewAPIKeyAuthRule creates an empty *APIKeyAuthRule

func (*APIKeyAuthRule) AsInstance ¶

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

AsInstance converts a APIKeyAuthRule to a ResourceInstance

func (*APIKeyAuthRule) FromInstance ¶

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

FromInstance converts a ResourceInstance to a APIKeyAuthRule

func (*APIKeyAuthRule) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*APIKeyAuthRule) PluralName ¶

func (res *APIKeyAuthRule) PluralName() string

PluralName returns the plural name of the resource

func (*APIKeyAuthRule) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

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

AccessControlListSpecAccessLevelScope struct for AccessControlListSpecAccessLevelScope

type AccessControlListSpecRules ¶

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

AccessControlListSpecRules (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"`
}

AccessRequestDefinitionSpecProvision (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.
	// GENERATE: The following code has been modified after code generation
	Limit    float64 `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 AmplifyConfig ¶

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

AmplifyConfig Resource

func AmplifyConfigFromInstanceArray ¶

func AmplifyConfigFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AmplifyConfig, error)

AmplifyConfigFromInstanceArray converts a []*ResourceInstance to a []*AmplifyConfig

func NewAmplifyConfig ¶

func NewAmplifyConfig(name, scopeName string) *AmplifyConfig

NewAmplifyConfig creates an empty *AmplifyConfig

func (*AmplifyConfig) AsInstance ¶

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

AsInstance converts a AmplifyConfig to a ResourceInstance

func (*AmplifyConfig) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AmplifyConfig

func (*AmplifyConfig) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AmplifyConfig) PluralName ¶

func (res *AmplifyConfig) PluralName() string

PluralName returns the plural name of the resource

func (*AmplifyConfig) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AmplifyConfigSpec ¶

type AmplifyConfigSpec struct {
	Address AmplifyConfigSpecAddress `json:"address"`
}

AmplifyConfigSpec (management.v1alpha1.AmplifyConfig)

type AmplifyConfigSpecAddress ¶

type AmplifyConfigSpecAddress struct {
	// The listener interface
	Interface string `json:"interface"`
	// The listener exposed port
	Port int32 `json:"port"`
}

AmplifyConfigSpecAddress The listener address configuration. (management.v1alpha1.AmplifyConfig)

type AmplifyJWTAuthRule ¶

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

AmplifyJWTAuthRule Resource

func AmplifyJWTAuthRuleFromInstanceArray ¶

func AmplifyJWTAuthRuleFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AmplifyJWTAuthRule, error)

AmplifyJWTAuthRuleFromInstanceArray converts a []*ResourceInstance to a []*AmplifyJWTAuthRule

func NewAmplifyJWTAuthRule ¶

func NewAmplifyJWTAuthRule(name, scopeKind, scopeName string) (*AmplifyJWTAuthRule, error)

NewAmplifyJWTAuthRule creates an empty *AmplifyJWTAuthRule

func (*AmplifyJWTAuthRule) AsInstance ¶

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

AsInstance converts a AmplifyJWTAuthRule to a ResourceInstance

func (*AmplifyJWTAuthRule) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AmplifyJWTAuthRule

func (*AmplifyJWTAuthRule) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AmplifyJWTAuthRule) PluralName ¶

func (res *AmplifyJWTAuthRule) PluralName() string

PluralName returns the plural name of the resource

func (*AmplifyJWTAuthRule) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AmplifyJwtAuthRuleSpec ¶

type AmplifyJwtAuthRuleSpec struct {
	// The description of the authentication rule.
	Description string                     `json:"description,omitempty"`
	Jwks        AmplifyJwtAuthRuleSpecJwks `json:"jwks"`
	// The principal that issues the JWT. If specified, it has to match the iss field in JWT.
	Issuer string `json:"issuer,omitempty"`
	// The list of allowed JWT audiences. A JWT containing any of these audiences will be accepted.
	Audiences []string `json:"audiences,omitempty"`
	// The name of the field in the JWT payload representing the client Id. Default: cid
	ClientIdKey string `json:"clientIdKey,omitempty"`
	// The list of loactions from which to read the JWT tokens.
	From []AmplifyJwtAuthRuleSpecFrom `json:"from,omitempty"`
	// The maximum clock skew allowed when verify time constraints (default 60secs).
	ClockSkewSeconds int32 `json:"clockSkewSeconds,omitempty"`
}

AmplifyJwtAuthRuleSpec (management.v1alpha1.AmplifyJWTAuthRule)

type AmplifyJwtAuthRuleSpecFrom ¶

type AmplifyJwtAuthRuleSpecFrom struct {
	// Where to look for the token.
	In   string `json:"in,omitempty"`
	Name string `json:"name"`
	// The token prefix, e.g. \"Bearer \".
	Prefix string `json:"prefix,omitempty"`
}

AmplifyJwtAuthRuleSpecFrom (management.v1alpha1.AmplifyJWTAuthRule)

type AmplifyJwtAuthRuleSpecJwks ¶

type AmplifyJwtAuthRuleSpecJwks struct {
	// The URI from which to fetch the JSON Web Key Set(JWKS).
	Uri string `json:"uri"`
	// Duration after which the cached JWKS will be removed from the cache. Default 300 seconds.
	CacheDurationSecs int32 `json:"cacheDurationSecs,omitempty"`
}

AmplifyJwtAuthRuleSpecJwks (management.v1alpha1.AmplifyJWTAuthRule)

type AmplifyOAuth2AuthRule ¶

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

AmplifyOAuth2AuthRule Resource

func AmplifyOAuth2AuthRuleFromInstanceArray ¶

func AmplifyOAuth2AuthRuleFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AmplifyOAuth2AuthRule, error)

AmplifyOAuth2AuthRuleFromInstanceArray converts a []*ResourceInstance to a []*AmplifyOAuth2AuthRule

func NewAmplifyOAuth2AuthRule ¶

func NewAmplifyOAuth2AuthRule(name, scopeKind, scopeName string) (*AmplifyOAuth2AuthRule, error)

NewAmplifyOAuth2AuthRule creates an empty *AmplifyOAuth2AuthRule

func (*AmplifyOAuth2AuthRule) AsInstance ¶

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

AsInstance converts a AmplifyOAuth2AuthRule to a ResourceInstance

func (*AmplifyOAuth2AuthRule) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AmplifyOAuth2AuthRule

func (*AmplifyOAuth2AuthRule) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AmplifyOAuth2AuthRule) PluralName ¶

func (res *AmplifyOAuth2AuthRule) PluralName() string

PluralName returns the plural name of the resource

func (*AmplifyOAuth2AuthRule) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AmplifyOAuth2AuthRuleSpec ¶

type AmplifyOAuth2AuthRuleSpec struct {
	// The description of the authentication rule.
	Description        string `json:"description,omitempty"`
	Amplifyjwtauthrule string `json:"amplifyjwtauthrule"`
	// GENERATE: The following code has been modified after code generation
	Flows AmplifyOAuth2AuthRuleSpecOAuthFlows `json:"flows"`
}

AmplifyOAuth2AuthRuleSpec (management.v1alpha1.AmplifyOAuth2AuthRule)

type AmplifyOAuth2AuthRuleSpecAuthorizationCodeOAuthFlow ¶

type AmplifyOAuth2AuthRuleSpecAuthorizationCodeOAuthFlow struct {
	AuthorizationUrl string `json:"authorizationUrl"`
	TokenUrl         string `json:"tokenUrl"`
	RefreshUrl       string `json:"refreshUrl,omitempty"`
}

AmplifyOAuth2AuthRuleSpecAuthorizationCodeOAuthFlow struct for AmplifyOAuth2AuthRuleSpecAuthorizationCodeOAuthFlow

type AmplifyOAuth2AuthRuleSpecClientCredentialsFlow ¶

type AmplifyOAuth2AuthRuleSpecClientCredentialsFlow struct {
	TokenUrl   string `json:"tokenUrl"`
	RefreshUrl string `json:"refreshUrl,omitempty"`
}

AmplifyOAuth2AuthRuleSpecClientCredentialsFlow struct for AmplifyOAuth2AuthRuleSpecClientCredentialsFlow

type AmplifyOAuth2AuthRuleSpecImplicitOAuthFlow ¶

type AmplifyOAuth2AuthRuleSpecImplicitOAuthFlow struct {
	AuthorizationUrl string `json:"authorizationUrl"`
	RefreshUrl       string `json:"refreshUrl,omitempty"`
}

AmplifyOAuth2AuthRuleSpecImplicitOAuthFlow struct for AmplifyOAuth2AuthRuleSpecImplicitOAuthFlow

type AmplifyOAuth2AuthRuleSpecOAuthFlows ¶

type AmplifyOAuth2AuthRuleSpecOAuthFlows struct {
	// GENERATE: The following code has been modified after code generation
	Implicit AmplifyOAuth2AuthRuleSpecImplicitOAuthFlow `json:"implicit,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Password AmplifyOAuth2AuthRuleSpecPasswordOAuthFlow `json:"password,omitempty"`
	// GENERATE: The following code has been modified after code generation
	ClientCredentials AmplifyOAuth2AuthRuleSpecClientCredentialsFlow `json:"clientCredentials,omitempty"`
	// GENERATE: The following code has been modified after code generation
	AuthorizationCode AmplifyOAuth2AuthRuleSpecAuthorizationCodeOAuthFlow `json:"authorizationCode,omitempty"`
}

AmplifyOAuth2AuthRuleSpecOAuthFlows struct for AmplifyOAuth2AuthRuleSpecOAuthFlows

type AmplifyOAuth2AuthRuleSpecPasswordOAuthFlow ¶

type AmplifyOAuth2AuthRuleSpecPasswordOAuthFlow struct {
	TokenUrl   string `json:"tokenUrl"`
	RefreshUrl string `json:"refreshUrl,omitempty"`
}

AmplifyOAuth2AuthRuleSpecPasswordOAuthFlow struct for AmplifyOAuth2AuthRuleSpecPasswordOAuthFlow

type AmplifyRuntimeConfig ¶

type AmplifyRuntimeConfig struct {
	apiv1.ResourceMeta
	Owner  *apiv1.Owner               `json:"owner"`
	Spec   AmplifyRuntimeConfigSpec   `json:"spec"`
	Status AmplifyRuntimeConfigStatus `json:"status"`
}

AmplifyRuntimeConfig Resource

func AmplifyRuntimeConfigFromInstanceArray ¶

func AmplifyRuntimeConfigFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*AmplifyRuntimeConfig, error)

AmplifyRuntimeConfigFromInstanceArray converts a []*ResourceInstance to a []*AmplifyRuntimeConfig

func NewAmplifyRuntimeConfig ¶

func NewAmplifyRuntimeConfig(name, scopeName string) *AmplifyRuntimeConfig

NewAmplifyRuntimeConfig creates an empty *AmplifyRuntimeConfig

func (*AmplifyRuntimeConfig) AsInstance ¶

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

AsInstance converts a AmplifyRuntimeConfig to a ResourceInstance

func (*AmplifyRuntimeConfig) FromInstance ¶

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

FromInstance converts a ResourceInstance to a AmplifyRuntimeConfig

func (*AmplifyRuntimeConfig) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*AmplifyRuntimeConfig) PluralName ¶

func (res *AmplifyRuntimeConfig) PluralName() string

PluralName returns the plural name of the resource

func (*AmplifyRuntimeConfig) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type AmplifyRuntimeConfigSpec ¶

type AmplifyRuntimeConfigSpec struct {
	// The runtime config. (management.v1alpha1.AmplifyRuntimeConfig)
	RuntimeConfig   map[string]interface{}   `json:"runtimeConfig"`
	AmplifyConfig   string                   `json:"amplifyConfig"`
	ExternalSecrets []map[string]interface{} `json:"externalSecrets,omitempty"`
	Deployments     []string                 `json:"deployments,omitempty"`
}

AmplifyRuntimeConfigSpec (management.v1alpha1.AmplifyRuntimeConfig)

type AmplifyRuntimeConfigStatus ¶

type AmplifyRuntimeConfigStatus struct {
	Name string `json:"name"`
	// Description of the phase.
	Message string `json:"message,omitempty"`
}

AmplifyRuntimeConfigStatus (management.v1alpha1.AmplifyRuntimeConfig)

type ApiKeyAuthRuleSpec ¶

type ApiKeyAuthRuleSpec struct {
	// The description of the authentication rule.
	Description string `json:"description,omitempty"`
	// Where to look for the API key, defaults to header.
	In string `json:"in,omitempty"`
	// name of the API key field, defaults to x-api-key.
	Name string `json:"name,omitempty"`
}

ApiKeyAuthRuleSpec (management.v1alpha1.APIKeyAuthRule)

type ApiServiceDetails ¶

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

ApiServiceDetails (management.v1alpha1.APIService)

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

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

AssetMappingSpecInputs The list of the inputs provided to the template. (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 unstrucured 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 unstrucured 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 unstructuded 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 CorsRule ¶

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

CorsRule Resource

func CorsRuleFromInstanceArray ¶

func CorsRuleFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*CorsRule, error)

CorsRuleFromInstanceArray converts a []*ResourceInstance to a []*CorsRule

func NewCorsRule ¶

func NewCorsRule(name, scopeKind, scopeName string) (*CorsRule, error)

NewCorsRule creates an empty *CorsRule

func (*CorsRule) AsInstance ¶

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

AsInstance converts a CorsRule to a ResourceInstance

func (*CorsRule) FromInstance ¶

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

FromInstance converts a ResourceInstance to a CorsRule

func (*CorsRule) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*CorsRule) PluralName ¶

func (res *CorsRule) PluralName() string

PluralName returns the plural name of the resource

func (*CorsRule) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type CorsRuleSpec ¶

type CorsRuleSpec struct {
	// CORS configuration rule.
	Description                   string   `json:"description,omitempty"`
	AccessControlAllowOrigin      []string `json:"accessControlAllowOrigin"`
	AccessControlMaxAge           int32    `json:"accessControlMaxAge,omitempty"`
	AccessControlAllowHeaders     []string `json:"accessControlAllowHeaders,omitempty"`
	AccessControlAllowMethods     []string `json:"accessControlAllowMethods,omitempty"`
	AccessControlExposeHeaders    []string `json:"accessControlExposeHeaders,omitempty"`
	AccessControlAllowCredentials bool     `json:"accessControlAllowCredentials,omitempty"`
}

CorsRuleSpec (management.v1alpha1.CorsRule)

type Credential ¶

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

Credential Resource

func CredentialFromInstanceArray ¶

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

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

func NewCredential ¶

func NewCredential(name, scopeName string) *Credential

NewCredential creates an empty *Credential

func (*Credential) AsInstance ¶

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

AsInstance converts a Credential to a ResourceInstance

func (*Credential) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Credential

func (*Credential) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Credential) PluralName ¶

func (res *Credential) PluralName() string

PluralName returns the plural name of the resource

func (*Credential) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type CredentialReferences ¶

type CredentialReferences struct {
	// 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"`
}

CredentialRequestDefinitionSpecProvision struct for CredentialRequestDefinitionSpecProvision

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

CredentialSpec (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 Deployment ¶

type Deployment struct {
	apiv1.ResourceMeta
	Owner      *apiv1.Owner         `json:"owner"`
	References DeploymentReferences `json:"references"`
	Spec       DeploymentSpec       `json:"spec"`
	// 	Status     DeploymentStatus     `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

Deployment Resource

func DeploymentFromInstanceArray ¶

func DeploymentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*Deployment, error)

DeploymentFromInstanceArray converts a []*ResourceInstance to a []*Deployment

func NewDeployment ¶

func NewDeployment(name, scopeName string) *Deployment

NewDeployment creates an empty *Deployment

func (*Deployment) AsInstance ¶

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

AsInstance converts a Deployment to a ResourceInstance

func (*Deployment) FromInstance ¶

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

FromInstance converts a ResourceInstance to a Deployment

func (*Deployment) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*Deployment) PluralName ¶

func (res *Deployment) PluralName() string

PluralName returns the plural name of the resource

func (*Deployment) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type DeploymentReferences ¶

type DeploymentReferences struct {
	// Reference to the API Service that got created from this deployment.
	ApiService string `json:"apiService,omitempty"`
	// Reference to the Virtual API Service that is bound to this deployment.
	VirtualAPI string `json:"virtualAPI,omitempty"`
}

DeploymentReferences (management.v1alpha1.Deployment)

type DeploymentSpec ¶

type DeploymentSpec struct {
	// The name of an APIServiceInstance resource that specifies where the API is deployed.
	VirtualAPIRelease string `json:"virtualAPIRelease"`
	// The VirtualHost instance used for this deployment.
	VirtualHost string `json:"virtualHost"`
}

DeploymentSpec (management.v1alpha1.Deployment)

type DeploymentStatus ¶

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

DeploymentStatus (management.v1alpha1.Deployment)

type DeploymentStatusError ¶

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

DeploymentStatusError struct for DeploymentStatusError

type DeploymentStatusPending ¶

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

DeploymentStatusPending struct for DeploymentStatusPending

type DeploymentStatusSuccess ¶

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

DeploymentStatusSuccess struct for DeploymentStatusSuccess

type DiscoveryAgent ¶

type DiscoveryAgent struct {
	apiv1.ResourceMeta
	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 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 ExternalSecret ¶

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

ExternalSecret Resource

func ExternalSecretFromInstanceArray ¶

func ExternalSecretFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ExternalSecret, error)

ExternalSecretFromInstanceArray converts a []*ResourceInstance to a []*ExternalSecret

func NewExternalSecret ¶

func NewExternalSecret(name, scopeKind, scopeName string) (*ExternalSecret, error)

NewExternalSecret creates an empty *ExternalSecret

func (*ExternalSecret) AsInstance ¶

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

AsInstance converts a ExternalSecret to a ResourceInstance

func (*ExternalSecret) FromInstance ¶

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

FromInstance converts a ResourceInstance to a ExternalSecret

func (*ExternalSecret) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ExternalSecret) PluralName ¶

func (res *ExternalSecret) PluralName() string

PluralName returns the plural name of the resource

func (*ExternalSecret) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ExternalSecretSpec ¶

type ExternalSecretSpec struct {
	// GENERATE: The following code has been modified after code generation
	Config interface{} `json:"config"`
	// GENERATE: The following code has been modified after code generation
	Data interface{} `json:"data"`
}

ExternalSecretSpec (management.v1alpha1.ExternalSecret)

type ExternalSecretSpecApiKeyData ¶

type ExternalSecretSpecApiKeyData struct {
	Kind string `json:"kind"`
	// Alias for the API Key in the secret.
	Alias string `json:"alias"`
}

ExternalSecretSpecApiKeyData Data for API Key.

type ExternalSecretSpecBasicAuthData ¶

type ExternalSecretSpecBasicAuthData struct {
	Kind string `json:"kind"`
	// Alias for the Basic Auth username in the secret.
	UsernameAlias string `json:"usernameAlias"`
	// Alias for the Basic Auth password in the secret.
	PasswordAlias string `json:"passwordAlias"`
}

ExternalSecretSpecBasicAuthData Data for Basic Auth.

type ExternalSecretSpecBearerTokenData ¶

type ExternalSecretSpecBearerTokenData struct {
	Kind string `json:"kind"`
	// Alias for the Bearer Token in the secret.
	Alias string `json:"alias"`
}

ExternalSecretSpecBearerTokenData Data for Bearer Token Auth.

type ExternalSecretSpecKubernetes ¶

type ExternalSecretSpecKubernetes struct {
	Provider string `json:"provider"`
	// Name of K8s Secret.
	Name string `json:"name"`
	// Namespace which contains the K8s Secret.
	Namespace string `json:"namespace"`
}

ExternalSecretSpecKubernetes K8s Secret Information.

type ExternalSecretSpecTlsData ¶

type ExternalSecretSpecTlsData struct {
	Kind string `json:"kind"`
	// Alias for the private key in the secret.
	PrivateKeyAlias string `json:"privateKeyAlias"`
	// Alias for the certificate in the secret.
	CertificateAlias string `json:"certificateAlias"`
}

ExternalSecretSpecTlsData Data for TLS.

type GovernanceAgent ¶

type GovernanceAgent struct {
	apiv1.ResourceMeta
	Agentconfigstatus GovernanceAgentAgentconfigstatus `json:"agentconfigstatus"`
	Owner             *apiv1.Owner                     `json:"owner"`
	Spec              GovernanceAgentSpec              `json:"spec"`
	Status            GovernanceAgentStatus            `json:"status"`
}

GovernanceAgent Resource

func GovernanceAgentFromInstanceArray ¶

func GovernanceAgentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*GovernanceAgent, error)

GovernanceAgentFromInstanceArray converts a []*ResourceInstance to a []*GovernanceAgent

func NewGovernanceAgent ¶

func NewGovernanceAgent(name, scopeName string) *GovernanceAgent

NewGovernanceAgent creates an empty *GovernanceAgent

func (*GovernanceAgent) AsInstance ¶

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

AsInstance converts a GovernanceAgent to a ResourceInstance

func (*GovernanceAgent) FromInstance ¶

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

FromInstance converts a ResourceInstance to a GovernanceAgent

func (*GovernanceAgent) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*GovernanceAgent) PluralName ¶

func (res *GovernanceAgent) PluralName() string

PluralName returns the plural name of the resource

func (*GovernanceAgent) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type GovernanceAgentAgentconfigstatus ¶

type GovernanceAgentAgentconfigstatus struct {
	// Version of the config.
	ResourceVersion string `json:"resourceVersion,omitempty"`
	// Error message if failure.
	ErrorMessage string `json:"errorMessage,omitempty"`
	// Agent configuration state:   * success - Configuration applied successfully   * fail - Configuration failed to be applied
	ConfigState string `json:"configState,omitempty"`
}

GovernanceAgentAgentconfigstatus (management.v1alpha1.GovernanceAgent)

type GovernanceAgentSpec ¶

type GovernanceAgentSpec struct {
	// The dataplane type that this agent connects to
	DataplaneType string `json:"dataplaneType"`
	// Represents the governance agent config (management.v1alpha1.GovernanceAgent)
	Config map[string]interface{} `json:"config,omitempty"`
}

GovernanceAgentSpec (management.v1alpha1.GovernanceAgent)

type GovernanceAgentStatus ¶

type GovernanceAgentStatus struct {
	// Version name for the agent revision.
	Version string `json:"version,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"`
}

GovernanceAgentStatus (management.v1alpha1.GovernanceAgent)

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

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

OAS3Document Resource

func NewOAS3Document ¶

func NewOAS3Document(name, scopeKind, scopeName string) (*OAS3Document, error)

NewOAS3Document creates an empty *OAS3Document

func OAS3DocumentFromInstanceArray ¶

func OAS3DocumentFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*OAS3Document, error)

OAS3DocumentFromInstanceArray converts a []*ResourceInstance to a []*OAS3Document

func (*OAS3Document) AsInstance ¶

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

AsInstance converts a OAS3Document to a ResourceInstance

func (*OAS3Document) FromInstance ¶

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

FromInstance converts a ResourceInstance to a OAS3Document

func (*OAS3Document) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*OAS3Document) PluralName ¶

func (res *OAS3Document) PluralName() string

PluralName returns the plural name of the resource

func (*OAS3Document) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type Oas3DocumentSpec ¶

type Oas3DocumentSpec struct {
	VirtualService string `json:"virtualService"`
	//  (management.v1alpha1.OAS3Document)
	Oas map[string]interface{} `json:"oas"`
}

Oas3DocumentSpec (management.v1alpha1.OAS3Document)

type ReleaseTag ¶

type ReleaseTag struct {
	apiv1.ResourceMeta
	Owner *apiv1.Owner   `json:"owner"`
	Spec  ReleaseTagSpec `json:"spec"`
	State interface{}    `json:"state"`
	// 	Status ReleaseTagStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

ReleaseTag Resource

func NewReleaseTag ¶

func NewReleaseTag(name, scopeName string) *ReleaseTag

NewReleaseTag creates an empty *ReleaseTag

func ReleaseTagFromInstanceArray ¶

func ReleaseTagFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*ReleaseTag, error)

ReleaseTagFromInstanceArray converts a []*ResourceInstance to a []*ReleaseTag

func (*ReleaseTag) AsInstance ¶

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

AsInstance converts a ReleaseTag to a ResourceInstance

func (*ReleaseTag) FromInstance ¶

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

FromInstance converts a ResourceInstance to a ReleaseTag

func (*ReleaseTag) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*ReleaseTag) PluralName ¶

func (res *ReleaseTag) PluralName() string

PluralName returns the plural name of the resource

func (*ReleaseTag) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type ReleaseTagSpec ¶

type ReleaseTagSpec struct {
	// Description of the Release Tag.
	Description string `json:"description,omitempty"`
	ReleaseType string `json:"releaseType"`
}

ReleaseTagSpec (management.v1alpha1.ReleaseTag)

type ReleaseTagStatus ¶

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

ReleaseTagStatus (management.v1alpha1.ReleaseTag)

type ReleaseTagStatusError ¶

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

ReleaseTagStatusError struct for ReleaseTagStatusError

type ReleaseTagStatusPending ¶

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

ReleaseTagStatusPending struct for ReleaseTagStatusPending

type ReleaseTagStatusReference ¶

type ReleaseTagStatusReference struct {
	// message of the status of the reference
	Message string `json:"message,omitempty"`
	Kind    string `json:"kind,omitempty"`
	// The name of the resource that got created.
	Name      string `json:"name,omitempty"`
	ScopeKind string `json:"scopeKind,omitempty"`
	ScopeName string `json:"scopeName,omitempty"`
}

ReleaseTagStatusReference The resource reference that was created/updated.

type ReleaseTagStatusSuccess ¶

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

ReleaseTagStatusSuccess struct for ReleaseTagStatusSuccess

type ReleaseTagStatusSuccessMeta ¶

type ReleaseTagStatusSuccessMeta struct {
	// GENERATE: The following code has been modified after code generation
	Reference []ReleaseTagStatusReference `json:"reference,omitempty"`
}

ReleaseTagStatusSuccessMeta struct for ReleaseTagStatusSuccessMeta

type 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 VirtualAPI ¶

type VirtualAPI struct {
	apiv1.ResourceMeta
	Icon  interface{}    `json:"icon"`
	Owner *apiv1.Owner   `json:"owner"`
	Spec  VirtualApiSpec `json:"spec"`
	State interface{}    `json:"state"`
	// 	Status VirtualApiStatus `json:"status"`
	Status *apiv1.ResourceStatus `json:"status"`
}

VirtualAPI Resource

func NewVirtualAPI ¶

func NewVirtualAPI(name string) *VirtualAPI

NewVirtualAPI creates an empty *VirtualAPI

func VirtualAPIFromInstanceArray ¶

func VirtualAPIFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*VirtualAPI, error)

VirtualAPIFromInstanceArray converts a []*ResourceInstance to a []*VirtualAPI

func (*VirtualAPI) AsInstance ¶

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

AsInstance converts a VirtualAPI to a ResourceInstance

func (*VirtualAPI) FromInstance ¶

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

FromInstance converts a ResourceInstance to a VirtualAPI

func (*VirtualAPI) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*VirtualAPI) PluralName ¶

func (res *VirtualAPI) PluralName() string

PluralName returns the plural name of the resource

func (*VirtualAPI) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type VirtualAPIRelease ¶

type VirtualAPIRelease struct {
	apiv1.ResourceMeta
	Icon  interface{}           `json:"icon"`
	Owner *apiv1.Owner          `json:"owner"`
	Spec  VirtualApiReleaseSpec `json:"spec"`
	State interface{}           `json:"state"`
}

VirtualAPIRelease Resource

func NewVirtualAPIRelease ¶

func NewVirtualAPIRelease(name string) *VirtualAPIRelease

NewVirtualAPIRelease creates an empty *VirtualAPIRelease

func VirtualAPIReleaseFromInstanceArray ¶

func VirtualAPIReleaseFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*VirtualAPIRelease, error)

VirtualAPIReleaseFromInstanceArray converts a []*ResourceInstance to a []*VirtualAPIRelease

func (*VirtualAPIRelease) AsInstance ¶

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

AsInstance converts a VirtualAPIRelease to a ResourceInstance

func (*VirtualAPIRelease) FromInstance ¶

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

FromInstance converts a ResourceInstance to a VirtualAPIRelease

func (*VirtualAPIRelease) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*VirtualAPIRelease) PluralName ¶

func (res *VirtualAPIRelease) PluralName() string

PluralName returns the plural name of the resource

func (*VirtualAPIRelease) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type VirtualApiReleaseSpec ¶

type VirtualApiReleaseSpec struct {
	// description of the asset.
	Description string `json:"description,omitempty"`
	Type        string `json:"type"`
	// version of the virtual API release.
	Version    string `json:"version"`
	Virtualapi string `json:"virtualapi"`
	ReleaseTag string `json:"releaseTag,omitempty"`
}

VirtualApiReleaseSpec (management.v1alpha1.VirtualAPIRelease)

type VirtualApiSpec ¶

type VirtualApiSpec struct {
	// description of the asset.
	Description string `json:"description,omitempty"`
	Type        string `json:"type,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Api VirtualApiSpecOas `json:"api,omitempty"`
}

VirtualApiSpec (management.v1alpha1.VirtualAPI)

type VirtualApiSpecOas ¶

type VirtualApiSpecOas struct {
	Oas map[string]interface{} `json:"oas"`
}

VirtualApiSpecOas The OAS specification.

type VirtualApiStatus ¶

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

VirtualApiStatus (management.v1alpha1.VirtualAPI)

type VirtualApiStatusError ¶

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

VirtualApiStatusError struct for VirtualApiStatusError

type VirtualApiStatusPending ¶

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

VirtualApiStatusPending struct for VirtualApiStatusPending

type VirtualApiStatusSuccess ¶

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

VirtualApiStatusSuccess struct for VirtualApiStatusSuccess

type VirtualHost ¶

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

VirtualHost Resource

func NewVirtualHost ¶

func NewVirtualHost(name, scopeName string) *VirtualHost

NewVirtualHost creates an empty *VirtualHost

func VirtualHostFromInstanceArray ¶

func VirtualHostFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*VirtualHost, error)

VirtualHostFromInstanceArray converts a []*ResourceInstance to a []*VirtualHost

func (*VirtualHost) AsInstance ¶

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

AsInstance converts a VirtualHost to a ResourceInstance

func (*VirtualHost) FromInstance ¶

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

FromInstance converts a ResourceInstance to a VirtualHost

func (*VirtualHost) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*VirtualHost) PluralName ¶

func (res *VirtualHost) PluralName() string

PluralName returns the plural name of the resource

func (*VirtualHost) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type VirtualHostSpec ¶

type VirtualHostSpec struct {
	// The fully qualifield domain name as described in RFC 1035
	Domain string `json:"domain"`
	// GENERATE: The following code has been modified after code generation
	Secret interface{} `json:"secret"`
}

VirtualHostSpec (management.v1alpha1.VirtualHost)

type VirtualHostSpecExternalSecretRef ¶

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

VirtualHostSpecExternalSecretRef struct for VirtualHostSpecExternalSecretRef

type VirtualHostSpecSecretRef ¶

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

VirtualHostSpecSecretRef struct for VirtualHostSpecSecretRef

type VirtualService ¶

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

VirtualService Resource

func NewVirtualService ¶

func NewVirtualService(name, scopeKind, scopeName string) (*VirtualService, error)

NewVirtualService creates an empty *VirtualService

func VirtualServiceFromInstanceArray ¶

func VirtualServiceFromInstanceArray(fromArray []*apiv1.ResourceInstance) ([]*VirtualService, error)

VirtualServiceFromInstanceArray converts a []*ResourceInstance to a []*VirtualService

func (*VirtualService) AsInstance ¶

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

AsInstance converts a VirtualService to a ResourceInstance

func (*VirtualService) FromInstance ¶

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

FromInstance converts a ResourceInstance to a VirtualService

func (*VirtualService) MarshalJSON ¶

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

MarshalJSON custom marshaller to handle sub resources

func (*VirtualService) PluralName ¶

func (res *VirtualService) PluralName() string

PluralName returns the plural name of the resource

func (*VirtualService) UnmarshalJSON ¶

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

UnmarshalJSON custom unmarshaller to handle sub resources

type VirtualServiceSpec ¶

type VirtualServiceSpec struct {
	// The path prefix to match. Example /api/v1
	Prefix string `json:"prefix"`
	// The list of headers and values to match. These are ANDed together. (management.v1alpha1.VirtualService)
	HeaderMatch map[string]string `json:"headerMatch,omitempty"`
	// The hosts that the VirtualService will match.
	VirtualHosts []string `json:"virtualHosts,omitempty"`
	Cors         string   `json:"cors,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Auth    interface{} `json:"auth"`
	Lambdas []string    `json:"lambdas,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Route []VirtualServiceSpecServiceRouting `json:"route"`
}

VirtualServiceSpec (management.v1alpha1.VirtualService)

type VirtualServiceSpecAmplifyjwtauthrule ¶

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

VirtualServiceSpecAmplifyjwtauthrule Amplify Gateway JWT authentication.

type VirtualServiceSpecAmplifyoauth2authrule ¶

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

VirtualServiceSpecAmplifyoauth2authrule Amplify Gateway OAuth2 authentication.

type VirtualServiceSpecApikeyauthrule ¶

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

VirtualServiceSpecApikeyauthrule API key authentication.

type VirtualServiceSpecApikeycredential ¶

type VirtualServiceSpecApikeycredential struct {
	Kind string `json:"kind"`
	// The name of the external secret containing the api key.
	SecretName string                               `json:"secretName"`
	In         VirtualServiceSpecApikeycredentialIn `json:"in"`
}

VirtualServiceSpecApikeycredential The API Key credential.

type VirtualServiceSpecApikeycredentialIn ¶

type VirtualServiceSpecApikeycredentialIn struct {
	// The name of the api key header/query parameter.
	Name     string `json:"name"`
	Location string `json:"location"`
}

VirtualServiceSpecApikeycredentialIn The object containing the api key name and location in the request.

type VirtualServiceSpecBasiccredential ¶

type VirtualServiceSpecBasiccredential struct {
	Kind string `json:"kind"`
	// The name of the external secret containing the http basic credential.
	SecretName string `json:"secretName"`
}

VirtualServiceSpecBasiccredential The HTTP Basic credential.

type VirtualServiceSpecOperation ¶

type VirtualServiceSpecOperation struct {
	Id     string                           `json:"id"`
	Method string                           `json:"method"`
	Path   string                           `json:"path"`
	Rules  VirtualServiceSpecOperationRules `json:"rules,omitempty"`
}

VirtualServiceSpecOperation Configuration for operations on a route.

type VirtualServiceSpecOperationRules ¶

type VirtualServiceSpecOperationRules struct {
	Cors string `json:"cors,omitempty"`
	// GENERATE: The following code has been modified after code generation
	Auth    interface{} `json:"auth,omitempty"`
	Lambdas []string    `json:"lambdas,omitempty"`
}

VirtualServiceSpecOperationRules struct for VirtualServiceSpecOperationRules

type VirtualServiceSpecPassthroughauthrule ¶

type VirtualServiceSpecPassthroughauthrule struct {
	Kind string `json:"kind"`
}

VirtualServiceSpecPassthroughauthrule Passthrough auth rule.

type VirtualServiceSpecServiceRouting ¶

type VirtualServiceSpecServiceRouting struct {
	Service VirtualServiceSpecServiceRoutingService `json:"service"`
	// GENERATE: The following code has been modified after code generation
	Operations []VirtualServiceSpecOperation `json:"operations"`
}

VirtualServiceSpecServiceRouting Per backend service routes.

type VirtualServiceSpecServiceRoutingService ¶

type VirtualServiceSpecServiceRoutingService struct {
	// The path prefix to match. Example /api/v1
	Prefix    string                                             `json:"prefix"`
	Protocol  string                                             `json:"protocol,omitempty"`
	Endpoints []VirtualServiceSpecServiceRoutingServiceEndpoints `json:"endpoints"`
	Codec     string                                             `json:"codec"`
	// Timeout in seconds.
	ConnectTimeout int32 `json:"connectTimeout,omitempty"`
	// The backend credentials.
	// GENERATE: The following code has been modified after code generation
	Credentials []interface{} `json:"credentials,omitempty"`
}

VirtualServiceSpecServiceRoutingService struct for VirtualServiceSpecServiceRoutingService

type VirtualServiceSpecServiceRoutingServiceEndpoints ¶

type VirtualServiceSpecServiceRoutingServiceEndpoints struct {
	Host string `json:"host"`
	Port int32  `json:"port"`
}

VirtualServiceSpecServiceRoutingServiceEndpoints struct for VirtualServiceSpecServiceRoutingServiceEndpoints

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