Documentation
¶
Overview ¶
+k8s:deepcopy-gen=package +k8s:openapi-gen=true
Index ¶
- func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
- type Condition
- type ConditionType
- type EventSourceType
- type S3Artifact
- type S3Bucket
- type S3Filter
- type Status
- func (in *Status) DeepCopy() *Status
- func (in *Status) DeepCopyInto(out *Status)
- func (s *Status) GetCondition(t ConditionType) *Condition
- func (s *Status) InitConditions(conditionTypes ...ConditionType)
- func (s *Status) IsReady() bool
- func (s *Status) MarkFalse(t ConditionType, reason, message string)
- func (s *Status) MarkTrue(t ConditionType)
- func (s *Status) MarkTrueWithReason(t ConditionType, reason, message string)
- func (s *Status) MarkUnknown(t ConditionType, reason, message string)
- func (s *Status) SetCondition(condition Condition)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOpenAPIDefinitions ¶ added in v0.13.0
func GetOpenAPIDefinitions(ref common.ReferenceCallback) map[string]common.OpenAPIDefinition
Types ¶
type Condition ¶ added in v0.16.0
type Condition struct { // Condition type. // +required Type ConditionType `json:"type" protobuf:"bytes,1,opt,name=type" protobuf:"bytes,1,opt,name=type"` // Condition status, True, False or Unknown. // +required Status corev1.ConditionStatus `json:"status" protobuf:"bytes,2,opt,name=status"` // Last time the condition transitioned from one status to another. // +optional LastTransitionTime metav1.Time `json:"lastTransitionTime,omitempty" protobuf:"bytes,4,opt,name=lastTransitionTime"` // Unique, this should be a short, machine understandable string that gives the reason // for condition's last transition. For example, "ImageNotFound" // +optional Reason string `json:"reason,omitempty" protobuf:"bytes,5,opt,name=reason"` // Human-readable message indicating details about last transition. // +optional Message string `json:"message,omitempty" protobuf:"bytes,6,opt,name=message"` }
Condition contains details about resource state
func (*Condition) DeepCopy ¶ added in v0.16.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Condition.
func (*Condition) DeepCopyInto ¶ added in v0.16.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Condition) GetMessage ¶ added in v0.16.0
GetMessage returns a Message
type ConditionType ¶ added in v0.16.0
type ConditionType string
ConditionType is a valid value of Condition.Type
const ( // ConditionReady indicates the resource is ready. ConditionReady ConditionType = "Ready" )
type EventSourceType ¶ added in v0.13.0
type EventSourceType string
EventSourceType is the type of event source supported by the gateway
var ( MinioEvent EventSourceType = "minio" CalendarEvent EventSourceType = "calendar" FileEvent EventSourceType = "file" ResourceEvent EventSourceType = "resource" WebhookEvent EventSourceType = "webhook" AMQPEvent EventSourceType = "amqp" KafkaEvent EventSourceType = "kafka" MQTTEvent EventSourceType = "mqtt" NATSEvent EventSourceType = "nats" SNSEvent EventSourceType = "sns" SQSEvent EventSourceType = "sqs" PubSubEvent EventSourceType = "pubsub" GitHubEvent EventSourceType = "github" GitLabEvent EventSourceType = "gitlab" HDFSEvent EventSourceType = "hdfs" SlackEvent EventSourceType = "slack" StorageGridEvent EventSourceType = "storagegrid" AzureEventsHub EventSourceType = "azureEventsHub" StripeEvent EventSourceType = "stripe" EmitterEvent EventSourceType = "emitter" RedisEvent EventSourceType = "redis" NSQEvent EventSourceType = "nsq" GenericEvent EventSourceType = "generic" )
possible event source types
type S3Artifact ¶
type S3Artifact struct { Endpoint string `json:"endpoint" protobuf:"bytes,1,opt,name=endpoint"` Bucket *S3Bucket `json:"bucket" protobuf:"bytes,2,opt,name=bucket"` Region string `json:"region,omitempty" protobuf:"bytes,3,opt,name=region"` Insecure bool `json:"insecure,omitempty" protobuf:"varint,4,opt,name=insecure"` AccessKey *corev1.SecretKeySelector `json:"accessKey" protobuf:"bytes,5,opt,name=accessKey"` SecretKey *corev1.SecretKeySelector `json:"secretKey" protobuf:"bytes,6,opt,name=secretKey"` // +listType=string Events []string `json:"events,omitempty" protobuf:"bytes,7,opt,name=events"` Filter *S3Filter `json:"filter,omitempty" protobuf:"bytes,8,opt,name=filter"` }
S3Artifact contains information about an S3 connection and bucket
func (*S3Artifact) DeepCopy ¶
func (in *S3Artifact) DeepCopy() *S3Artifact
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Artifact.
func (*S3Artifact) DeepCopyInto ¶
func (in *S3Artifact) DeepCopyInto(out *S3Artifact)
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Bucket ¶
type S3Bucket struct { Key string `json:"key,omitempty" protobuf:"bytes,1,opt,name=key"` Name string `json:"name" protobuf:"bytes,2,opt,name=name"` }
S3Bucket contains information to describe an S3 Bucket
func (*S3Bucket) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Bucket.
func (*S3Bucket) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type S3Filter ¶
type S3Filter struct { Prefix string `json:"prefix" protobuf:"bytes,1,opt,name=prefix"` Suffix string `json:"suffix" protobuf:"bytes,2,opt,name=suffix"` }
S3Filter represents filters to apply to bucket nofifications for specifying constraints on objects
func (*S3Filter) DeepCopy ¶
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new S3Filter.
func (*S3Filter) DeepCopyInto ¶
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
type Status ¶ added in v0.16.0
type Status struct { // Conditions are the latest available observations of a resource's current state. // +optional // +patchMergeKey=type // +patchStrategy=merge Conditions []Condition `json:"conditions,omitempty" patchStrategy:"merge" patchMergeKey:"type" protobuf:"bytes,1,opt,name=conditions"` }
Status is a common structure which can be used for Status field.
func (*Status) DeepCopy ¶ added in v0.16.0
DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Status.
func (*Status) DeepCopyInto ¶ added in v0.16.0
DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.
func (*Status) GetCondition ¶ added in v0.16.0
func (s *Status) GetCondition(t ConditionType) *Condition
GetCondition returns the condition of a condtion type
func (*Status) InitConditions ¶ added in v0.16.0
func (s *Status) InitConditions(conditionTypes ...ConditionType)
InitConditions initializes the contions to Unknown
func (*Status) MarkFalse ¶ added in v0.16.0
func (s *Status) MarkFalse(t ConditionType, reason, message string)
MarkFalse sets the status of t to fasle
func (*Status) MarkTrue ¶ added in v0.16.0
func (s *Status) MarkTrue(t ConditionType)
MarkTrue sets the status of t to true
func (*Status) MarkTrueWithReason ¶ added in v0.16.0
func (s *Status) MarkTrueWithReason(t ConditionType, reason, message string)
MarkTrueWithReason sets the status of t to true with reason
func (*Status) MarkUnknown ¶ added in v0.16.0
func (s *Status) MarkUnknown(t ConditionType, reason, message string)
MarkUnknown sets the status of t to unknown
func (*Status) SetCondition ¶ added in v0.16.0
SetCondition sets a condition