request

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: 8 Imported by: 0

Documentation

Index

Constants

View Source
const RequestType = "request"

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 NullableRequestSpec

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

func NewNullableRequestSpec

func NewNullableRequestSpec(val *RequestSpec) *NullableRequestSpec

func (*NullableRequestSpec) Get

func (v *NullableRequestSpec) Get() *RequestSpec

func (*NullableRequestSpec) IsSet

func (v *NullableRequestSpec) IsSet() bool

func (NullableRequestSpec) MarshalJSON

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

func (*NullableRequestSpec) Set

func (v *NullableRequestSpec) Set(val *RequestSpec)

func (*NullableRequestSpec) UnmarshalJSON

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

func (*NullableRequestSpec) Unset

func (v *NullableRequestSpec) Unset()

type RequestSpec

type RequestSpec struct {
	Body   map[string]interface{} `json:"body,omitempty"`
	Header map[string]string      `json:"header,omitempty"`
	Method *string                `json:"method"`
	Url    *string                `json:"url"`
}

RequestSpec struct for RequestSpec

func NewRequestSpec

func NewRequestSpec() *RequestSpec

NewRequestSpec is short for NewRequestSpecWithDefault which instantiates a new RequestSpec 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 NewRequestSpecEmpty

func NewRequestSpecEmpty() *RequestSpec

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

func NewRequestSpecList

func NewRequestSpecList(ps ...*RequestSpec) []RequestSpec

NewRequestSpecs converts a list RequestSpec pointers to objects. This is helpful when the SetRequestSpec requires a list of objects

func NewRequestSpecWith

func NewRequestSpecWith(method string, url string) *RequestSpec

NewRequestSpecWith instantiates a new RequestSpec 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 NewRequestSpecWithDefault

func NewRequestSpecWithDefault() *RequestSpec

NewRequestSpecWithDefault instantiates a new RequestSpec 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 (RequestSpec) MarshalJSON

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

func (RequestSpec) ToMap

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

type RequestWorkflowStep

type RequestWorkflowStep struct {
	Base       apis.WorkflowStepBase
	Properties RequestSpec
}

func Request

func Request(name string) *RequestWorkflowStep

func (*RequestWorkflowStep) Alias

func (*RequestWorkflowStep) Build

func (*RequestWorkflowStep) DefType

func (r *RequestWorkflowStep) DefType() string

func (*RequestWorkflowStep) DependsOn

func (r *RequestWorkflowStep) DependsOn(dependsOn []string) *RequestWorkflowStep

func (*RequestWorkflowStep) FromWorkflowStep

func (r *RequestWorkflowStep) FromWorkflowStep(from v1beta1.WorkflowStep) (*RequestWorkflowStep, error)

func (*RequestWorkflowStep) FromWorkflowSubStep

func (r *RequestWorkflowStep) FromWorkflowSubStep(from common.WorkflowSubStep) (*RequestWorkflowStep, error)

func (*RequestWorkflowStep) GetBody

func (o *RequestWorkflowStep) GetBody() map[string]interface{}

GetBody returns the Body field value if set, zero value otherwise.

func (*RequestWorkflowStep) GetBodyOk

func (o *RequestWorkflowStep) GetBodyOk() (map[string]interface{}, bool)

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

func (*RequestWorkflowStep) GetHeader

func (o *RequestWorkflowStep) GetHeader() map[string]string

GetHeader returns the Header field value if set, zero value otherwise.

func (*RequestWorkflowStep) GetHeaderOk

func (o *RequestWorkflowStep) GetHeaderOk() (map[string]string, bool)

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

func (*RequestWorkflowStep) GetMethod

func (o *RequestWorkflowStep) GetMethod() string

GetMethod returns the Method field value

func (*RequestWorkflowStep) GetMethodOk

func (o *RequestWorkflowStep) GetMethodOk() (*string, bool)

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

func (*RequestWorkflowStep) GetUrl

func (o *RequestWorkflowStep) GetUrl() string

GetUrl returns the Url field value

func (*RequestWorkflowStep) GetUrlOk

func (o *RequestWorkflowStep) GetUrlOk() (*string, bool)

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

func (*RequestWorkflowStep) HasBody

func (o *RequestWorkflowStep) HasBody() bool

HasBody returns a boolean if a field has been set.

func (*RequestWorkflowStep) HasHeader

func (o *RequestWorkflowStep) HasHeader() bool

HasHeader returns a boolean if a field has been set.

func (*RequestWorkflowStep) If

func (*RequestWorkflowStep) Inputs

func (*RequestWorkflowStep) Outputs

func (*RequestWorkflowStep) SetBody

func (o *RequestWorkflowStep) SetBody(v map[string]interface{}) *RequestWorkflowStep

SetBody gets a reference to the given map[string]interface{} and assigns it to the body field. Body:

func (*RequestWorkflowStep) SetHeader

SetHeader gets a reference to the given map[string]string and assigns it to the header field. Header:

func (*RequestWorkflowStep) SetMethod

SetMethod sets field value

func (*RequestWorkflowStep) SetUrl

SetUrl sets field value

func (*RequestWorkflowStep) Timeout

func (r *RequestWorkflowStep) Timeout(timeout string) *RequestWorkflowStep

func (*RequestWorkflowStep) Validate

func (o *RequestWorkflowStep) Validate() error

Validate validates this RequestSpec 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 (*RequestWorkflowStep) WorkflowStepName

func (r *RequestWorkflowStep) WorkflowStepName() string

Jump to

Keyboard shortcuts

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