v1alpha1

package
v1.11.5-rc.1 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 2

Documentation

Overview

+kubebuilder:object:generate=true +groupName=dapr.io

Index

Constants

This section is empty.

Variables

View Source
var (
	SchemeBuilder = runtime.NewSchemeBuilder(addKnownTypes)
	AddToScheme   = SchemeBuilder.AddToScheme
)
View Source
var SchemeGroupVersion = schema.GroupVersion{Group: configuration.GroupName, Version: "v1alpha1"}

SchemeGroupVersion is group version used to register these objects.

Functions

func Kind

func Kind(kind string) schema.GroupKind

Kind takes an unqualified kind and returns back a Group qualified GroupKind.

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"`
	// +optional
	Protocol string `json:"protocol"`
}

APIAccessRule describes an access rule for allowing or denying a Dapr API.

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 APILoggingSpec added in v1.10.0

type APILoggingSpec struct {
	// Default value for enabling API logging. Sidecars can always override this by setting `--enable-api-logging` to true or false explicitly.
	// The default value is false.
	// +optional
	Enabled bool `json:"enabled" yaml:"enabled"`
	// When enabled, obfuscates the values of URLs in HTTP API logs, logging the route name rather than the full path being invoked, which could contain PII.
	// Default: false.
	// This option has no effect if API logging is disabled.
	// +optional
	ObfuscateURLs bool `json:"obfuscateURLs" yaml:"obfuscateURLs"`
	// If true, health checks are not reported in API logs. Default: false.
	// This option has no effect if API logging is disabled.
	// +optional
	OmitHealthChecks bool `json:"omitHealthChecks" yaml:"omitHealthChecks"`
}

APILoggingSpec defines the configuration for API logging.

func (*APILoggingSpec) DeepCopy added in v1.10.0

func (in *APILoggingSpec) DeepCopy() *APILoggingSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APILoggingSpec.

func (*APILoggingSpec) DeepCopyInto added in v1.10.0

func (in *APILoggingSpec) DeepCopyInto(out *APILoggingSpec)

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 {
	// List of allowed APIs. Can be used in conjunction with denied.
	// +optional
	Allowed []APIAccessRule `json:"allowed,omitempty"`
	// List of denied APIs. Can be used in conjunction with allowed.
	// +optional
	Denied []APIAccessRule `json:"denied,omitempty"`
}

APISpec describes the configuration for Dapr APIs.

func (*APISpec) DeepCopy added in v1.2.0

func (in *APISpec) DeepCopy() *APISpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new APISpec.

func (*APISpec) DeepCopyInto added in v1.2.0

func (in *APISpec) DeepCopyInto(out *APISpec)

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 ComponentsSpec added in v1.9.0

type ComponentsSpec struct {
	// Denylist of component types that cannot be instantiated
	// +optional
	Deny []string `json:"deny,omitempty" yaml:"deny,omitempty"`
}

ComponentsSpec describes the configuration for Dapr components

func (*ComponentsSpec) DeepCopy added in v1.9.0

func (in *ComponentsSpec) DeepCopy() *ComponentsSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ComponentsSpec.

func (*ComponentsSpec) DeepCopyInto added in v1.9.0

func (in *ComponentsSpec) DeepCopyInto(out *ComponentsSpec)

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
	AppHTTPPipelineSpec PipelineSpec `json:"appHttpPipeline,omitempty"`
	// +optional
	HTTPPipelineSpec PipelineSpec `json:"httpPipeline,omitempty"`
	// +optional
	TracingSpec TracingSpec `json:"tracing,omitempty"`
	// +kubebuilder:default={enabled:true}
	MetricSpec MetricSpec `json:"metric,omitempty"`
	// +kubebuilder:default={enabled:true}
	MetricsSpec MetricSpec `json:"metrics,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"`
	// +optional
	ComponentsSpec ComponentsSpec `json:"components,omitempty"`
	// +optional
	LoggingSpec LoggingSpec `json:"logging,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

type DynamicValue struct {
	v1.JSON `json:",inline"`
}

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 LoggingSpec added in v1.10.0

type LoggingSpec struct {
	// Configure API logging.
	// +optional
	APILogging APILoggingSpec `json:"apiLogging" yaml:"apiLogging"`
}

LoggingSpec defines the configuration for logging.

func (*LoggingSpec) DeepCopy added in v1.10.0

func (in *LoggingSpec) DeepCopy() *LoggingSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new LoggingSpec.

func (*LoggingSpec) DeepCopyInto added in v1.10.0

func (in *LoggingSpec) DeepCopyInto(out *LoggingSpec)

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

func (in *MTLSSpec) DeepCopy() *MTLSSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MTLSSpec.

func (*MTLSSpec) DeepCopyInto added in v0.4.0

func (in *MTLSSpec) DeepCopyInto(out *MTLSSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type MetricLabel added in v1.10.0

type MetricLabel struct {
	Name  string            `json:"name"`
	Regex map[string]string `json:"regex"`
}

MetricsLabel defines an object that allows to set regex expressions for a label.

func (*MetricLabel) DeepCopy added in v1.10.0

func (in *MetricLabel) DeepCopy() *MetricLabel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricLabel.

func (*MetricLabel) DeepCopyInto added in v1.10.0

func (in *MetricLabel) DeepCopyInto(out *MetricLabel)

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"`
	// +optional
	Rules []MetricsRule `json:"rules"`
}

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 MetricsRule added in v1.10.0

type MetricsRule struct {
	Name   string        `json:"name"`
	Labels []MetricLabel `json:"labels"`
}

MetricsRule defines configuration options for a metric.

func (*MetricsRule) DeepCopy added in v1.10.0

func (in *MetricsRule) DeepCopy() *MetricsRule

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new MetricsRule.

func (*MetricsRule) DeepCopyInto added in v1.10.0

func (in *MetricsRule) DeepCopyInto(out *MetricsRule)

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 OtelSpec added in v1.9.0

type OtelSpec struct {
	Protocol        string `json:"protocol" yaml:"protocol"`
	EndpointAddress string `json:"endpointAddress" yaml:"endpointAddress"`
	IsSecure        bool   `json:"isSecure" yaml:"isSecure"`
}

OtelSpec defines Otel exporter configurations.

func (*OtelSpec) DeepCopy added in v1.9.0

func (in *OtelSpec) DeepCopy() *OtelSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new OtelSpec.

func (*OtelSpec) DeepCopyInto added in v1.9.0

func (in *OtelSpec) DeepCopyInto(out *OtelSpec)

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

type SelectorField struct {
	Field string `json:"field"`
	Value string `json:"value"`
}

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"`
	// +optional
	Stdout bool `json:"stdout"`
	// +optional
	Zipkin ZipkinSpec `json:"zipkin"`
	// +optional
	Otel OtelSpec `json:"otel"`
}

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.

Jump to

Keyboard shortcuts

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