webhook

package
v0.0.0-...-3d8ba93 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const WebhookType = "webhook"

Variables

This section is empty.

Functions

func FromWorkflowStep

func FromWorkflowStep(from v1beta1.WorkflowStep) (apis.WorkflowStep, error)

func FromWorkflowSubStep

func FromWorkflowSubStep(from common.WorkflowSubStep) (apis.WorkflowStep, error)

Types

type NullableSecretRef

type NullableSecretRef struct {
	// contains filtered or unexported fields
}

func NewNullableSecretRef

func NewNullableSecretRef(val *SecretRef) *NullableSecretRef

func (*NullableSecretRef) Get

func (v *NullableSecretRef) Get() *SecretRef

func (*NullableSecretRef) IsSet

func (v *NullableSecretRef) IsSet() bool

func (NullableSecretRef) MarshalJSON

func (v NullableSecretRef) MarshalJSON() ([]byte, error)

func (*NullableSecretRef) Set

func (v *NullableSecretRef) Set(val *SecretRef)

func (*NullableSecretRef) UnmarshalJSON

func (v *NullableSecretRef) UnmarshalJSON(src []byte) error

func (*NullableSecretRef) Unset

func (v *NullableSecretRef) Unset()

type NullableUrl

type NullableUrl struct {
	// contains filtered or unexported fields
}

func NewNullableUrl

func NewNullableUrl(val *Url) *NullableUrl

func (*NullableUrl) Get

func (v *NullableUrl) Get() *Url

func (*NullableUrl) IsSet

func (v *NullableUrl) IsSet() bool

func (NullableUrl) MarshalJSON

func (v NullableUrl) MarshalJSON() ([]byte, error)

func (*NullableUrl) Set

func (v *NullableUrl) Set(val *Url)

func (*NullableUrl) UnmarshalJSON

func (v *NullableUrl) UnmarshalJSON(src []byte) error

func (*NullableUrl) Unset

func (v *NullableUrl) Unset()

type NullableUrlOneOf

type NullableUrlOneOf struct {
	// contains filtered or unexported fields
}

func NewNullableUrlOneOf

func NewNullableUrlOneOf(val *UrlOneOf) *NullableUrlOneOf

func (*NullableUrlOneOf) Get

func (v *NullableUrlOneOf) Get() *UrlOneOf

func (*NullableUrlOneOf) IsSet

func (v *NullableUrlOneOf) IsSet() bool

func (NullableUrlOneOf) MarshalJSON

func (v NullableUrlOneOf) MarshalJSON() ([]byte, error)

func (*NullableUrlOneOf) Set

func (v *NullableUrlOneOf) Set(val *UrlOneOf)

func (*NullableUrlOneOf) UnmarshalJSON

func (v *NullableUrlOneOf) UnmarshalJSON(src []byte) error

func (*NullableUrlOneOf) Unset

func (v *NullableUrlOneOf) Unset()

type NullableUrlOneOf1

type NullableUrlOneOf1 struct {
	// contains filtered or unexported fields
}

func NewNullableUrlOneOf1

func NewNullableUrlOneOf1(val *UrlOneOf1) *NullableUrlOneOf1

func (*NullableUrlOneOf1) Get

func (v *NullableUrlOneOf1) Get() *UrlOneOf1

func (*NullableUrlOneOf1) IsSet

func (v *NullableUrlOneOf1) IsSet() bool

func (NullableUrlOneOf1) MarshalJSON

func (v NullableUrlOneOf1) MarshalJSON() ([]byte, error)

func (*NullableUrlOneOf1) Set

func (v *NullableUrlOneOf1) Set(val *UrlOneOf1)

func (*NullableUrlOneOf1) UnmarshalJSON

func (v *NullableUrlOneOf1) UnmarshalJSON(src []byte) error

func (*NullableUrlOneOf1) Unset

func (v *NullableUrlOneOf1) Unset()

type NullableWebhookSpec

type NullableWebhookSpec struct {
	// contains filtered or unexported fields
}

func NewNullableWebhookSpec

func NewNullableWebhookSpec(val *WebhookSpec) *NullableWebhookSpec

func (*NullableWebhookSpec) Get

func (v *NullableWebhookSpec) Get() *WebhookSpec

func (*NullableWebhookSpec) IsSet

func (v *NullableWebhookSpec) IsSet() bool

func (NullableWebhookSpec) MarshalJSON

func (v NullableWebhookSpec) MarshalJSON() ([]byte, error)

func (*NullableWebhookSpec) Set

func (v *NullableWebhookSpec) Set(val *WebhookSpec)

func (*NullableWebhookSpec) UnmarshalJSON

func (v *NullableWebhookSpec) UnmarshalJSON(src []byte) error

func (*NullableWebhookSpec) Unset

func (v *NullableWebhookSpec) Unset()

type SecretRef

type SecretRef struct {
	// key is the key in the secret
	Key *string `json:"key"`
	// name is the name of the secret
	Name *string `json:"name"`
}

SecretRef struct for SecretRef

func NewSecretRef

func NewSecretRef() *SecretRef

NewSecretRef is short for NewSecretRefWithDefault which instantiates a new SecretRef object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func NewSecretRefEmpty

func NewSecretRefEmpty() *SecretRef

NewSecretRefEmpty instantiates a new SecretRef object with no properties set. This constructor will not assign any default values to properties.

func NewSecretRefList

func NewSecretRefList(ps ...*SecretRef) []SecretRef

NewSecretRefs converts a list SecretRef pointers to objects. This is helpful when the SetSecretRef requires a list of objects

func NewSecretRefWith

func NewSecretRefWith(key string, name string) *SecretRef

NewSecretRefWith instantiates a new SecretRef object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewSecretRefWithDefault

func NewSecretRefWithDefault() *SecretRef

NewSecretRefWithDefault instantiates a new SecretRef object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*SecretRef) GetKey

func (o *SecretRef) GetKey() string

GetKey returns the Key field value

func (*SecretRef) GetKeyOk

func (o *SecretRef) GetKeyOk() (*string, bool)

GetKeyOk returns a tuple with the Key field value and a boolean to check if the value has been set.

func (*SecretRef) GetName

func (o *SecretRef) GetName() string

GetName returns the Name field value

func (*SecretRef) GetNameOk

func (o *SecretRef) GetNameOk() (*string, bool)

GetNameOk returns a tuple with the Name field value and a boolean to check if the value has been set.

func (SecretRef) MarshalJSON

func (o SecretRef) MarshalJSON() ([]byte, error)

func (*SecretRef) SetKey

func (o *SecretRef) SetKey(v string) *SecretRef

SetKey sets field value

func (*SecretRef) SetName

func (o *SecretRef) SetName(v string) *SecretRef

SetName sets field value

func (SecretRef) ToMap

func (o SecretRef) ToMap() (map[string]interface{}, error)

func (*SecretRef) Validate

func (o *SecretRef) Validate() error

Validate validates this SecretRef 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type Url

type Url struct {
	UrlOneOf  *UrlOneOf
	UrlOneOf1 *UrlOneOf1
}

Url - Specify the webhook url

func UrlOneOf1AsUrl

func UrlOneOf1AsUrl(v *UrlOneOf1) Url

UrlOneOf1AsUrl is is a convenience function that returns UrlOneOf1 wrapped in Url

func UrlOneOfAsUrl

func UrlOneOfAsUrl(v *UrlOneOf) Url

UrlOneOfAsUrl is is a convenience function that returns UrlOneOf wrapped in Url

func (*Url) GetActualInstance

func (obj *Url) GetActualInstance() interface{}

Get the actual instance

func (Url) MarshalJSON

func (src Url) MarshalJSON() ([]byte, error)

Marshal data from the first non-nil pointers in the struct to JSON

func (*Url) UnmarshalJSON

func (dst *Url) UnmarshalJSON(data []byte) error

Unmarshal JSON data into one of the pointers in the struct

func (*Url) Validate

func (o *Url) Validate() error

Validate validates this Url

type UrlOneOf

type UrlOneOf struct {
	Value *string `json:"value"`
}

UrlOneOf struct for UrlOneOf

func NewUrlOneOf

func NewUrlOneOf() *UrlOneOf

NewUrlOneOf is short for NewUrlOneOfWithDefault which instantiates a new UrlOneOf object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func NewUrlOneOfEmpty

func NewUrlOneOfEmpty() *UrlOneOf

NewUrlOneOfEmpty instantiates a new UrlOneOf object with no properties set. This constructor will not assign any default values to properties.

func NewUrlOneOfList

func NewUrlOneOfList(ps ...*UrlOneOf) []UrlOneOf

NewUrlOneOfs converts a list UrlOneOf pointers to objects. This is helpful when the SetUrlOneOf requires a list of objects

func NewUrlOneOfWith

func NewUrlOneOfWith(value string) *UrlOneOf

NewUrlOneOfWith instantiates a new UrlOneOf object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewUrlOneOfWithDefault

func NewUrlOneOfWithDefault() *UrlOneOf

NewUrlOneOfWithDefault instantiates a new UrlOneOf object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UrlOneOf) GetValue

func (o *UrlOneOf) GetValue() string

GetValue returns the Value field value

func (*UrlOneOf) GetValueOk

func (o *UrlOneOf) GetValueOk() (*string, bool)

GetValueOk returns a tuple with the Value field value and a boolean to check if the value has been set.

func (UrlOneOf) MarshalJSON

func (o UrlOneOf) MarshalJSON() ([]byte, error)

func (*UrlOneOf) SetValue

func (o *UrlOneOf) SetValue(v string) *UrlOneOf

SetValue sets field value

func (UrlOneOf) ToMap

func (o UrlOneOf) ToMap() (map[string]interface{}, error)

func (*UrlOneOf) Validate

func (o *UrlOneOf) Validate() error

Validate validates this UrlOneOf 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type UrlOneOf1

type UrlOneOf1 struct {
	SecretRef *SecretRef `json:"secretRef"`
}

UrlOneOf1 struct for UrlOneOf1

func NewUrlOneOf1

func NewUrlOneOf1() *UrlOneOf1

NewUrlOneOf1 is short for NewUrlOneOf1WithDefault which instantiates a new UrlOneOf1 object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func NewUrlOneOf1Empty

func NewUrlOneOf1Empty() *UrlOneOf1

NewUrlOneOf1Empty instantiates a new UrlOneOf1 object with no properties set. This constructor will not assign any default values to properties.

func NewUrlOneOf1List

func NewUrlOneOf1List(ps ...*UrlOneOf1) []UrlOneOf1

NewUrlOneOf1s converts a list UrlOneOf1 pointers to objects. This is helpful when the SetUrlOneOf1 requires a list of objects

func NewUrlOneOf1With

func NewUrlOneOf1With(secretRef SecretRef) *UrlOneOf1

NewUrlOneOf1With instantiates a new UrlOneOf1 object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewUrlOneOf1WithDefault

func NewUrlOneOf1WithDefault() *UrlOneOf1

NewUrlOneOf1WithDefault instantiates a new UrlOneOf1 object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*UrlOneOf1) GetSecretRef

func (o *UrlOneOf1) GetSecretRef() SecretRef

GetSecretRef returns the SecretRef field value

func (*UrlOneOf1) GetSecretRefOk

func (o *UrlOneOf1) GetSecretRefOk() (*SecretRef, bool)

GetSecretRefOk returns a tuple with the SecretRef field value and a boolean to check if the value has been set.

func (UrlOneOf1) MarshalJSON

func (o UrlOneOf1) MarshalJSON() ([]byte, error)

func (*UrlOneOf1) SetSecretRef

func (o *UrlOneOf1) SetSecretRef(v SecretRef) *UrlOneOf1

SetSecretRef sets field value

func (UrlOneOf1) ToMap

func (o UrlOneOf1) ToMap() (map[string]interface{}, error)

func (*UrlOneOf1) Validate

func (o *UrlOneOf1) Validate() error

Validate validates this UrlOneOf1 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

type WebhookSpec

type WebhookSpec struct {
	// Specify the data you want to send
	Data map[string]interface{} `json:"data,omitempty"`
	Url  *Url                   `json:"url"`
}

WebhookSpec struct for WebhookSpec

func NewWebhookSpec

func NewWebhookSpec() *WebhookSpec

NewWebhookSpec is short for NewWebhookSpecWithDefault which instantiates a new WebhookSpec object. This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func NewWebhookSpecEmpty

func NewWebhookSpecEmpty() *WebhookSpec

NewWebhookSpecEmpty instantiates a new WebhookSpec object with no properties set. This constructor will not assign any default values to properties.

func NewWebhookSpecList

func NewWebhookSpecList(ps ...*WebhookSpec) []WebhookSpec

NewWebhookSpecs converts a list WebhookSpec pointers to objects. This is helpful when the SetWebhookSpec requires a list of objects

func NewWebhookSpecWith

func NewWebhookSpecWith(url Url) *WebhookSpec

NewWebhookSpecWith instantiates a new WebhookSpec object This constructor will make sure properties required by API are set. For optional properties, it will set default values if they have been defined. The set of arguments will change when the set of required properties is changed

func NewWebhookSpecWithDefault

func NewWebhookSpecWithDefault() *WebhookSpec

NewWebhookSpecWithDefault instantiates a new WebhookSpec object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (WebhookSpec) MarshalJSON

func (o WebhookSpec) MarshalJSON() ([]byte, error)

func (WebhookSpec) ToMap

func (o WebhookSpec) ToMap() (map[string]interface{}, error)

type WebhookWorkflowStep

type WebhookWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties WebhookSpec
}

func Webhook

func Webhook(name string) *WebhookWorkflowStep

func (*WebhookWorkflowStep) Alias

func (*WebhookWorkflowStep) Build

func (*WebhookWorkflowStep) DefType

func (w *WebhookWorkflowStep) DefType() string

func (*WebhookWorkflowStep) DependsOn

func (w *WebhookWorkflowStep) DependsOn(dependsOn []string) *WebhookWorkflowStep

func (*WebhookWorkflowStep) FromWorkflowStep

func (w *WebhookWorkflowStep) FromWorkflowStep(from v1beta1.WorkflowStep) (*WebhookWorkflowStep, error)

func (*WebhookWorkflowStep) FromWorkflowSubStep

func (w *WebhookWorkflowStep) FromWorkflowSubStep(from common.WorkflowSubStep) (*WebhookWorkflowStep, error)

func (*WebhookWorkflowStep) GetData

func (o *WebhookWorkflowStep) GetData() map[string]interface{}

GetData returns the Data field value if set, zero value otherwise.

func (*WebhookWorkflowStep) GetDataOk

func (o *WebhookWorkflowStep) GetDataOk() (map[string]interface{}, bool)

GetDataOk returns a tuple with the Data field value if set, nil otherwise and a boolean to check if the value has been set.

func (*WebhookWorkflowStep) GetUrl

func (o *WebhookWorkflowStep) GetUrl() Url

GetUrl returns the Url field value

func (*WebhookWorkflowStep) GetUrlOk

func (o *WebhookWorkflowStep) GetUrlOk() (*Url, bool)

GetUrlOk returns a tuple with the Url field value and a boolean to check if the value has been set.

func (*WebhookWorkflowStep) HasData

func (o *WebhookWorkflowStep) HasData() bool

HasData returns a boolean if a field has been set.

func (*WebhookWorkflowStep) If

func (*WebhookWorkflowStep) Inputs

func (*WebhookWorkflowStep) Outputs

func (*WebhookWorkflowStep) SetData

func (o *WebhookWorkflowStep) SetData(v map[string]interface{}) *WebhookWorkflowStep

SetData gets a reference to the given map[string]interface{} and assigns it to the data field. Data: Specify the data you want to send

func (*WebhookWorkflowStep) SetUrl

SetUrl sets field value

func (*WebhookWorkflowStep) Timeout

func (w *WebhookWorkflowStep) Timeout(timeout string) *WebhookWorkflowStep

func (*WebhookWorkflowStep) Validate

func (o *WebhookWorkflowStep) Validate() error

Validate validates this WebhookSpec 1. If the required properties are not set, this will return an error 2. If properties are set, will check if nested required properties are set

func (*WebhookWorkflowStep) WorkflowStepName

func (w *WebhookWorkflowStep) WorkflowStepName() string

Jump to

Keyboard shortcuts

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