Documentation ¶
Overview ¶
+kubebuilder:object:generate=true +groupName=dapr.io
Index ¶
- Variables
- func Kind(kind string) schema.GroupKind
- func Resource(resource string) schema.GroupResource
- type APIAccessRule
- type APISpec
- type AccessControlSpec
- type AppOperationAction
- type AppPolicySpec
- type Configuration
- type ConfigurationList
- type ConfigurationSpec
- type DynamicValue
- type FeatureSpec
- type HandlerSpec
- type MTLSSpec
- type MetricSpec
- type NameResolutionSpec
- type PipelineSpec
- type SecretsScope
- type SecretsSpec
- type SelectorField
- type SelectorSpec
- type TracingSpec
- type ZipkinSpec
Constants ¶
This section is empty.
Variables ¶
var ( SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes) AddToScheme = SchemeBuilder.AddToScheme )
var SchemeGroupVersion = schema.GroupVersion{Group: configuration.GroupName, Version: "v1alpha1"}
SchemeGroupVersion is group version used to register these objects.
Functions ¶
func Resource ¶
func Resource(resource string) schema.GroupResource
Resource takes an unqualified resource and returns a Group qualified GroupResource.
Types ¶
type APIAccessRule ¶ added in v1.2.0
type APIAccessRule struct { Name string `json:"name"` Version string `json:"version"` Protocol string `json:"protocol"` }
APIAccessRule describes an access rule for allowing a Dapr API to be enabled and accessible by an app.
func (*APIAccessRule) DeepCopy ¶ added in v1.2.0
func (in *APIAccessRule) DeepCopy() *APIAccessRule
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APIAccessRule.
func (*APIAccessRule) DeepCopyInto ¶ added in v1.2.0
func (in *APIAccessRule) DeepCopyInto(out *APIAccessRule)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type APISpec ¶ added in v1.2.0
type APISpec struct {
Allowed []APIAccessRule `json:"allowed,omitempty"`
}
APISpec describes the configuration for Dapr APIs.
func (*APISpec) DeepCopy ¶ added in v1.2.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APISpec.
func (*APISpec) DeepCopyInto ¶ added in v1.2.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AccessControlSpec ¶ added in v0.11.0
type AccessControlSpec struct { // +optional DefaultAction string `json:"defaultAction" yaml:"defaultAction"` // +optional TrustDomain string `json:"trustDomain" yaml:"trustDomain"` // +optional AppPolicies []AppPolicySpec `json:"policies" yaml:"policies"` }
AccessControlSpec is the spec object in ConfigurationSpec.
func (*AccessControlSpec) DeepCopy ¶ added in v0.11.0
func (in *AccessControlSpec) DeepCopy() *AccessControlSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AccessControlSpec.
func (*AccessControlSpec) DeepCopyInto ¶ added in v0.11.0
func (in *AccessControlSpec) DeepCopyInto(out *AccessControlSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppOperationAction ¶ added in v0.11.0
type AppOperationAction struct { Operation string `json:"name" yaml:"name"` // +optional HTTPVerb []string `json:"httpVerb" yaml:"httpVerb"` Action string `json:"action" yaml:"action"` }
AppOperationAction defines the data structure for each app operation.
func (*AppOperationAction) DeepCopy ¶ added in v0.11.0
func (in *AppOperationAction) DeepCopy() *AppOperationAction
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppOperationAction.
func (*AppOperationAction) DeepCopyInto ¶ added in v0.11.0
func (in *AppOperationAction) DeepCopyInto(out *AppOperationAction)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type AppPolicySpec ¶ added in v0.11.0
type AppPolicySpec struct { AppName string `json:"appId" yaml:"appId"` // +optional DefaultAction string `json:"defaultAction" yaml:"defaultAction"` // +optional TrustDomain string `json:"trustDomain" yaml:"trustDomain"` // +optional Namespace string `json:"namespace" yaml:"namespace"` // +optional AppOperationActions []AppOperationAction `json:"operations" yaml:"operations"` }
AppPolicySpec defines the policy data structure for each app.
func (*AppPolicySpec) DeepCopy ¶ added in v0.11.0
func (in *AppPolicySpec) DeepCopy() *AppPolicySpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AppPolicySpec.
func (*AppPolicySpec) DeepCopyInto ¶ added in v0.11.0
func (in *AppPolicySpec) DeepCopyInto(out *AppPolicySpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Configuration ¶
type Configuration struct { metav1.TypeMeta `json:",inline"` // +optional metav1.ObjectMeta `json:"metadata,omitempty"` // +optional Spec ConfigurationSpec `json:"spec,omitempty"` }
Configuration describes an Dapr configuration setting.
func (*Configuration) DeepCopy ¶
func (in *Configuration) DeepCopy() *Configuration
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Configuration.
func (*Configuration) DeepCopyInto ¶
func (in *Configuration) DeepCopyInto(out *Configuration)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Configuration) DeepCopyObject ¶
func (in *Configuration) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigurationList ¶
type ConfigurationList struct { metav1.TypeMeta `json:",inline"` metav1.ListMeta `json:"metadata"` Items []Configuration `json:"items"` }
ConfigurationList is a list of Dapr event sources.
func (*ConfigurationList) DeepCopy ¶
func (in *ConfigurationList) DeepCopy() *ConfigurationList
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationList.
func (*ConfigurationList) DeepCopyInto ¶
func (in *ConfigurationList) DeepCopyInto(out *ConfigurationList)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*ConfigurationList) DeepCopyObject ¶
func (in *ConfigurationList) DeepCopyObject() runtime.Object
DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.
type ConfigurationSpec ¶
type ConfigurationSpec struct { // +optional HTTPPipelineSpec PipelineSpec `json:"httpPipeline,omitempty"` // +optional TracingSpec TracingSpec `json:"tracing,omitempty"` // +kubebuilder:default={enabled:true} MetricSpec MetricSpec `json:"metric,omitempty"` // +optional MTLSSpec MTLSSpec `json:"mtls,omitempty"` // +optional Secrets SecretsSpec `json:"secrets,omitempty"` // +optional AccessControlSpec AccessControlSpec `json:"accessControl,omitempty"` // +optional NameResolutionSpec NameResolutionSpec `json:"nameResolution,omitempty"` // +optional Features []FeatureSpec `json:"features,omitempty"` // +optional APISpec APISpec `json:"api,omitempty"` }
ConfigurationSpec is the spec for an configuration.
func (*ConfigurationSpec) DeepCopy ¶
func (in *ConfigurationSpec) DeepCopy() *ConfigurationSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ConfigurationSpec.
func (*ConfigurationSpec) DeepCopyInto ¶
func (in *ConfigurationSpec) DeepCopyInto(out *ConfigurationSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type DynamicValue ¶ added in v1.2.0
DynamicValue is a dynamic value struct for the component.metadata pair value.
func (*DynamicValue) DeepCopy ¶ added in v1.2.0
func (in *DynamicValue) DeepCopy() *DynamicValue
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new DynamicValue.
func (*DynamicValue) DeepCopyInto ¶ added in v1.2.0
func (in *DynamicValue) DeepCopyInto(out *DynamicValue)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*DynamicValue) String ¶ added in v1.2.0
func (d *DynamicValue) String() string
String returns the string representation of the raw value. If the value is a string, it will be unquoted as the string is guaranteed to be a JSON serialized string.
type FeatureSpec ¶ added in v1.2.0
type FeatureSpec struct { Name string `json:"name" yaml:"name"` Enabled bool `json:"enabled" yaml:"enabled"` }
FeatureSpec defines the features that are enabled/disabled.
func (*FeatureSpec) DeepCopy ¶ added in v1.2.0
func (in *FeatureSpec) DeepCopy() *FeatureSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new FeatureSpec.
func (*FeatureSpec) DeepCopyInto ¶ added in v1.2.0
func (in *FeatureSpec) DeepCopyInto(out *FeatureSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type HandlerSpec ¶ added in v0.4.0
type HandlerSpec struct { Name string `json:"name"` Type string `json:"type"` SelectorSpec SelectorSpec `json:"selector,omitempty"` }
HandlerSpec defines a request handlers.
func (*HandlerSpec) DeepCopy ¶ added in v0.4.0
func (in *HandlerSpec) DeepCopy() *HandlerSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new HandlerSpec.
func (*HandlerSpec) DeepCopyInto ¶ added in v0.4.0
func (in *HandlerSpec) DeepCopyInto(out *HandlerSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MTLSSpec ¶ added in v0.4.0
type MTLSSpec struct { Enabled bool `json:"enabled"` // +optional WorkloadCertTTL string `json:"workloadCertTTL"` // +optional AllowedClockSkew string `json:"allowedClockSkew"` }
MTLSSpec defines mTLS configuration.
func (*MTLSSpec) DeepCopy ¶ added in v0.4.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MTLSSpec.
func (*MTLSSpec) DeepCopyInto ¶ added in v0.4.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type MetricSpec ¶ added in v1.0.0
type MetricSpec struct {
Enabled bool `json:"enabled"`
}
MetricSpec defines metrics configuration.
func (*MetricSpec) DeepCopy ¶ added in v1.0.0
func (in *MetricSpec) DeepCopy() *MetricSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricSpec.
func (*MetricSpec) DeepCopyInto ¶ added in v1.0.0
func (in *MetricSpec) DeepCopyInto(out *MetricSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type NameResolutionSpec ¶ added in v1.2.0
type NameResolutionSpec struct { Component string `json:"component"` Version string `json:"version"` Configuration DynamicValue `json:"configuration"` }
NameResolutionSpec is the spec for name resolution configuration.
func (*NameResolutionSpec) DeepCopy ¶ added in v1.2.0
func (in *NameResolutionSpec) DeepCopy() *NameResolutionSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new NameResolutionSpec.
func (*NameResolutionSpec) DeepCopyInto ¶ added in v1.2.0
func (in *NameResolutionSpec) DeepCopyInto(out *NameResolutionSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type PipelineSpec ¶ added in v0.4.0
type PipelineSpec struct {
Handlers []HandlerSpec `json:"handlers"`
}
PipelineSpec defines the middleware pipeline.
func (*PipelineSpec) DeepCopy ¶ added in v0.4.0
func (in *PipelineSpec) DeepCopy() *PipelineSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new PipelineSpec.
func (*PipelineSpec) DeepCopyInto ¶ added in v0.4.0
func (in *PipelineSpec) DeepCopyInto(out *PipelineSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretsScope ¶ added in v0.11.0
type SecretsScope struct { // +optional DefaultAccess string `json:"defaultAccess,omitempty"` StoreName string `json:"storeName"` // +optional AllowedSecrets []string `json:"allowedSecrets,omitempty"` // +optional DeniedSecrets []string `json:"deniedSecrets,omitempty"` }
SecretsScope defines the scope for secrets.
func (*SecretsScope) DeepCopy ¶ added in v0.11.0
func (in *SecretsScope) DeepCopy() *SecretsScope
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretsScope.
func (*SecretsScope) DeepCopyInto ¶ added in v0.11.0
func (in *SecretsScope) DeepCopyInto(out *SecretsScope)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SecretsSpec ¶ added in v0.11.0
type SecretsSpec struct {
Scopes []SecretsScope `json:"scopes"`
}
SecretsSpec is the spec for secrets configuration.
func (*SecretsSpec) DeepCopy ¶ added in v0.11.0
func (in *SecretsSpec) DeepCopy() *SecretsSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SecretsSpec.
func (*SecretsSpec) DeepCopyInto ¶ added in v0.11.0
func (in *SecretsSpec) DeepCopyInto(out *SecretsSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SelectorField ¶ added in v0.4.0
SelectorField defines a selector fields.
func (*SelectorField) DeepCopy ¶ added in v0.4.0
func (in *SelectorField) DeepCopy() *SelectorField
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectorField.
func (*SelectorField) DeepCopyInto ¶ added in v0.4.0
func (in *SelectorField) DeepCopyInto(out *SelectorField)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type SelectorSpec ¶ added in v0.4.0
type SelectorSpec struct {
Fields []SelectorField `json:"fields"`
}
SelectorSpec selects target services to which the handler is to be applied.
func (*SelectorSpec) DeepCopy ¶ added in v0.4.0
func (in *SelectorSpec) DeepCopy() *SelectorSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new SelectorSpec.
func (*SelectorSpec) DeepCopyInto ¶ added in v0.4.0
func (in *SelectorSpec) DeepCopyInto(out *SelectorSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type TracingSpec ¶
type TracingSpec struct { SamplingRate string `json:"samplingRate"` Zipkin ZipkinSpec `json:"zipkin"` }
TracingSpec defines distributed tracing configuration.
func (*TracingSpec) DeepCopy ¶
func (in *TracingSpec) DeepCopy() *TracingSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new TracingSpec.
func (*TracingSpec) DeepCopyInto ¶
func (in *TracingSpec) DeepCopyInto(out *TracingSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type ZipkinSpec ¶ added in v1.0.0
type ZipkinSpec struct {
EndpointAddresss string `json:"endpointAddress"`
}
ZipkinSpec defines Zipkin trace configurations.
func (*ZipkinSpec) DeepCopy ¶ added in v1.0.0
func (in *ZipkinSpec) DeepCopy() *ZipkinSpec
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ZipkinSpec.
func (*ZipkinSpec) DeepCopyInto ¶ added in v1.0.0
func (in *ZipkinSpec) DeepCopyInto(out *ZipkinSpec)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.