oceancd

package
v1.349.1 Latest Latest
Warning

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

Go to latest
Published: May 16, 2024 License: Apache-2.0 Imports: 10 Imported by: 15

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Args added in v1.346.0

type Args struct {
	Name      *string    `json:"name,omitempty"`
	Value     *string    `json:"value,omitempty"`
	ValueFrom *ValueFrom `json:"valueFrom,omitempty"`
	// contains filtered or unexported fields
}

func (Args) MarshalJSON added in v1.346.0

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

func (*Args) SetName added in v1.346.0

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

func (*Args) SetValue added in v1.346.0

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

func (*Args) SetValueFrom added in v1.346.0

func (o *Args) SetValueFrom(v *ValueFrom) *Args

type BackgroundVerification added in v1.347.0

type BackgroundVerification struct {
	TemplateNames []string `json:"templateNames,omitempty"`
	// contains filtered or unexported fields
}

func (BackgroundVerification) MarshalJSON added in v1.347.0

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

func (*BackgroundVerification) SetTemplateNames added in v1.347.0

func (o *BackgroundVerification) SetTemplateNames(v []string) *BackgroundVerification

type Baseline added in v1.346.0

type Baseline struct {
	MaxRange  *int      `json:"maxRange,omitempty"`
	MinRange  *int      `json:"minRange,omitempty"`
	Provider  *Provider `json:"provider,omitempty"`
	Threshold *string   `json:"threshold,omitempty"`
	// contains filtered or unexported fields
}

func (Baseline) MarshalJSON added in v1.346.0

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

func (*Baseline) SetMaxRange added in v1.346.0

func (o *Baseline) SetMaxRange(v *int) *Baseline

func (*Baseline) SetMinRange added in v1.346.0

func (o *Baseline) SetMinRange(v *int) *Baseline

func (*Baseline) SetProvider added in v1.346.0

func (o *Baseline) SetProvider(v *Provider) *Baseline

func (*Baseline) SetThreshold added in v1.346.0

func (o *Baseline) SetThreshold(v *string) *Baseline

type Canary added in v1.347.0

type Canary struct {
	BackgroundVerification *BackgroundVerification `json:"backgroundVerification,omitempty"`
	Steps                  []*CanarySteps          `json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (Canary) MarshalJSON added in v1.347.0

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

func (*Canary) SetBackgroundVerification added in v1.347.0

func (o *Canary) SetBackgroundVerification(v *BackgroundVerification) *Canary

func (*Canary) SetSteps added in v1.347.0

func (o *Canary) SetSteps(v []*CanarySteps) *Canary

type CanarySteps added in v1.347.0

type CanarySteps struct {
	Name           *string         `json:"name,omitempty"`
	Pause          *Pause          `json:"pause,omitempty"`
	SetCanaryScale *SetCanaryScale `json:"setCanaryScale,omitempty"`
	SetHeaderRoute *SetHeaderRoute `json:"setHeaderRoute,omitempty"`
	SetWeight      *int            `json:"setWeight,omitempty"`
	Verification   *Verification   `json:"verification,omitempty"`
	// contains filtered or unexported fields
}

func (CanarySteps) MarshalJSON added in v1.347.0

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

func (*CanarySteps) SetName added in v1.347.0

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

func (*CanarySteps) SetPause added in v1.347.0

func (o *CanarySteps) SetPause(v *Pause) *CanarySteps

func (*CanarySteps) SetSetCanaryScale added in v1.347.0

func (o *CanarySteps) SetSetCanaryScale(v *SetCanaryScale) *CanarySteps

func (*CanarySteps) SetSetHeaderRoute added in v1.347.0

func (o *CanarySteps) SetSetHeaderRoute(v *SetHeaderRoute) *CanarySteps

func (*CanarySteps) SetSetWeight added in v1.347.0

func (o *CanarySteps) SetSetWeight(v *int) *CanarySteps

func (*CanarySteps) SetVerification added in v1.347.0

func (o *CanarySteps) SetVerification(v *Verification) *CanarySteps

type CloudWatch

type CloudWatch struct {
	IAmArn *string `json:"iamArn,omitempty"`
	// contains filtered or unexported fields
}

func (CloudWatch) MarshalJSON

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

func (*CloudWatch) SetIAmArn

func (o *CloudWatch) SetIAmArn(v *string) *CloudWatch

type CloudWatchProvider added in v1.346.0

type CloudWatchProvider struct {
	Duration          *string              `json:"duration,omitempty"`
	MetricDataQueries []*MetricDataQueries `json:"metricDataQueries,omitempty"`
	// contains filtered or unexported fields
}

func (CloudWatchProvider) MarshalJSON added in v1.346.0

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

func (*CloudWatchProvider) SetDuration added in v1.346.0

func (o *CloudWatchProvider) SetDuration(v *string) *CloudWatchProvider

func (*CloudWatchProvider) SetMetricDataQueries added in v1.346.0

func (o *CloudWatchProvider) SetMetricDataQueries(v []*MetricDataQueries) *CloudWatchProvider

type Containers added in v1.346.0

type Containers struct {
	Command []string `json:"command,omitempty"`
	Image   *string  `json:"image,omitempty"`
	Name    *string  `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (Containers) MarshalJSON added in v1.346.0

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

func (*Containers) SetCommand added in v1.346.0

func (o *Containers) SetCommand(v []string) *Containers

func (*Containers) SetImage added in v1.346.0

func (o *Containers) SetImage(v *string) *Containers

func (*Containers) SetName added in v1.346.0

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

type CreateStrategyInput added in v1.347.0

type CreateStrategyInput struct {
	Strategy *Strategy `json:"strategy,omitempty"`
}

type CreateStrategyOutput added in v1.347.0

type CreateStrategyOutput struct {
	Strategy *Strategy `json:"strategy,omitempty"`
}

type CreateVerificationProviderInput

type CreateVerificationProviderInput struct {
	VerificationProvider *VerificationProvider `json:"verificationProvider,omitempty"`
}

type CreateVerificationProviderOutput

type CreateVerificationProviderOutput struct {
	VerificationProvider *VerificationProvider `json:"verificationProvider,omitempty"`
}

type CreateVerificationTemplateInput added in v1.346.0

type CreateVerificationTemplateInput struct {
	VerificationTemplate *VerificationTemplate `json:"verificationTemplate,omitempty"`
}

type CreateVerificationTemplateOutput added in v1.346.0

type CreateVerificationTemplateOutput struct {
	VerificationTemplate *VerificationTemplate `json:"verificationTemplate,omitempty"`
}

type DataDog

type DataDog struct {
	Address *string `json:"address,omitempty"`
	ApiKey  *string `json:"apiKey,omitempty"`
	AppKey  *string `json:"appKey,omitempty"`
	// contains filtered or unexported fields
}

func (DataDog) MarshalJSON

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

func (*DataDog) SetAddress

func (o *DataDog) SetAddress(v *string) *DataDog

func (*DataDog) SetApiKey

func (o *DataDog) SetApiKey(v *string) *DataDog

func (*DataDog) SetAppKey

func (o *DataDog) SetAppKey(v *string) *DataDog

type DataDogProvider added in v1.346.0

type DataDogProvider struct {
	Duration *string `json:"duration,omitempty"`
	Query    *string `json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (DataDogProvider) MarshalJSON added in v1.346.0

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

func (*DataDogProvider) SetDuration added in v1.346.0

func (o *DataDogProvider) SetDuration(v *string) *DataDogProvider

func (*DataDogProvider) SetQuery added in v1.346.0

func (o *DataDogProvider) SetQuery(v *string) *DataDogProvider

type DeleteStrategyInput added in v1.347.0

type DeleteStrategyInput struct {
	StrategyName *string `json:"strategyName,omitempty"`
}

type DeleteStrategyOutput added in v1.347.0

type DeleteStrategyOutput struct{}

type DeleteVerificationProviderInput

type DeleteVerificationProviderInput struct {
	Name *string `json:"name,omitempty"`
}

type DeleteVerificationProviderOutput

type DeleteVerificationProviderOutput struct{}

type DeleteVerificationTemplateInput added in v1.346.0

type DeleteVerificationTemplateInput struct {
	Name *string `json:"name,omitempty"`
}

type DeleteVerificationTemplateOutput added in v1.346.0

type DeleteVerificationTemplateOutput struct{}

type Dimensions added in v1.346.0

type Dimensions struct {
	Name  *string `json:"name,omitempty"`
	Value *string `json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (Dimensions) MarshalJSON added in v1.346.0

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

func (*Dimensions) SetName added in v1.346.0

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

func (*Dimensions) SetValue added in v1.346.0

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

type HeaderValue added in v1.347.0

type HeaderValue struct {
	Exact  *string `json:"exact,omitempty"`
	Prefix *string `json:"prefix,omitempty"`
	Regex  *string `json:"regex,omitempty"`
	// contains filtered or unexported fields
}

func (HeaderValue) MarshalJSON added in v1.347.0

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

func (*HeaderValue) SetExact added in v1.347.0

func (o *HeaderValue) SetExact(v *string) *HeaderValue

func (*HeaderValue) SetPrefix added in v1.347.0

func (o *HeaderValue) SetPrefix(v *string) *HeaderValue

func (*HeaderValue) SetRegex added in v1.347.0

func (o *HeaderValue) SetRegex(v *string) *HeaderValue

type Headers added in v1.346.0

type Headers struct {
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (Headers) MarshalJSON added in v1.346.0

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

func (*Headers) SetKey added in v1.346.0

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

func (*Headers) SetValue added in v1.346.0

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

type Jenkins

type Jenkins struct {
	ApiToken *string `json:"apiToken,omitempty"`
	BaseUrl  *string `json:"baseUrl,omitempty"`
	UserName *string `json:"username,omitempty"`
	// contains filtered or unexported fields
}

func (Jenkins) MarshalJSON

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

func (*Jenkins) SetApiToken

func (o *Jenkins) SetApiToken(v *string) *Jenkins

func (*Jenkins) SetBaseUrl

func (o *Jenkins) SetBaseUrl(v *string) *Jenkins

func (*Jenkins) SetUserName

func (o *Jenkins) SetUserName(v *string) *Jenkins

type JenkinsProvider added in v1.346.0

type JenkinsProvider struct {
	Interval        *string       `json:"interval,omitempty"`
	PipelineName    *string       `json:"pipelineName,omitempty"`
	Parameters      []*Parameters `json:"parameters,omitempty"`
	Timeout         *string       `json:"timeout,omitempty"`
	TLSVerification *bool         `json:"tlsVerification,omitempty"`
	// contains filtered or unexported fields
}

func (JenkinsProvider) MarshalJSON added in v1.346.0

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

func (*JenkinsProvider) SetInterval added in v1.346.0

func (o *JenkinsProvider) SetInterval(v *string) *JenkinsProvider

func (*JenkinsProvider) SetParameters added in v1.346.0

func (o *JenkinsProvider) SetParameters(v []*Parameters) *JenkinsProvider

func (*JenkinsProvider) SetPipelineName added in v1.346.0

func (o *JenkinsProvider) SetPipelineName(v *string) *JenkinsProvider

func (*JenkinsProvider) SetTLSVerification added in v1.346.0

func (o *JenkinsProvider) SetTLSVerification(v *bool) *JenkinsProvider

func (*JenkinsProvider) SetTimeout added in v1.346.0

func (o *JenkinsProvider) SetTimeout(v *string) *JenkinsProvider

type Job added in v1.346.0

type Job struct {
	Spec *Spec `json:"spec,omitempty"`
	// contains filtered or unexported fields
}

func (Job) MarshalJSON added in v1.346.0

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

func (*Job) SetSpec added in v1.346.0

func (o *Job) SetSpec(v *Spec) *Job

type ListStrategiesOutput added in v1.347.0

type ListStrategiesOutput struct {
	Strategies []*Strategy `json:"strategy,omitempty"`
}

type ListVerificationProvidersOutput

type ListVerificationProvidersOutput struct {
	VerificationProviders []*VerificationProvider `json:"verificationProvider,omitempty"`
}

type ListVerificationTemplatesOutput added in v1.346.0

type ListVerificationTemplatesOutput struct {
	VerificationTemplate []*VerificationTemplate `json:"verificationTemplate,omitempty"`
}

type Match added in v1.347.0

type Match struct {
	HeaderName  *string      `json:"headerName,omitempty"`
	HeaderValue *HeaderValue `json:"headerValue,omitempty"`
	// contains filtered or unexported fields
}

func (Match) MarshalJSON added in v1.347.0

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

func (*Match) SetHeaderName added in v1.347.0

func (o *Match) SetHeaderName(v *string) *Match

func (*Match) SetHeaderValue added in v1.347.0

func (o *Match) SetHeaderValue(v *HeaderValue) *Match

type Metric added in v1.346.0

type Metric struct {
	Dimensions []*Dimensions `json:"dimensions,omitempty"`
	MetricName *string       `json:"metricName,omitempty"`
	Namespace  *string       `json:"namespace,omitempty"`
	// contains filtered or unexported fields
}

func (Metric) MarshalJSON added in v1.346.0

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

func (*Metric) SetDimensions added in v1.346.0

func (o *Metric) SetDimensions(v []*Dimensions) *Metric

func (*Metric) SetMetricName added in v1.346.0

func (o *Metric) SetMetricName(v *string) *Metric

func (*Metric) SetNamespace added in v1.346.0

func (o *Metric) SetNamespace(v *string) *Metric

type MetricDataQueries added in v1.346.0

type MetricDataQueries struct {
	Expression *string     `json:"expression,omitempty"`
	ID         *string     `json:"id,omitempty"`
	Label      *string     `json:"label,omitempty"`
	MetricStat *MetricStat `json:"metricStat,omitempty"`
	Period     *int        `json:"period,omitempty"`
	ReturnData *bool       `json:"returnData,omitempty"`
	// contains filtered or unexported fields
}

func (MetricDataQueries) MarshalJSON added in v1.346.0

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

func (*MetricDataQueries) SetExpression added in v1.346.0

func (o *MetricDataQueries) SetExpression(v *string) *MetricDataQueries

func (*MetricDataQueries) SetID added in v1.346.0

func (*MetricDataQueries) SetLabel added in v1.346.0

func (o *MetricDataQueries) SetLabel(v *string) *MetricDataQueries

func (*MetricDataQueries) SetMetricStat added in v1.346.0

func (o *MetricDataQueries) SetMetricStat(v *MetricStat) *MetricDataQueries

func (*MetricDataQueries) SetPeriod added in v1.346.0

func (o *MetricDataQueries) SetPeriod(v *int) *MetricDataQueries

func (*MetricDataQueries) SetReturnData added in v1.346.0

func (o *MetricDataQueries) SetReturnData(v *bool) *MetricDataQueries

type MetricStat added in v1.346.0

type MetricStat struct {
	Metric *Metric `json:"metric,omitempty"`
	Period *int    `json:"period,omitempty"`
	Stat   *string `json:"stat,omitempty"`
	Unit   *string `json:"unit,omitempty"`
	// contains filtered or unexported fields
}

func (MetricStat) MarshalJSON added in v1.346.0

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

func (*MetricStat) SetMetric added in v1.346.0

func (o *MetricStat) SetMetric(v *Metric) *MetricStat

func (*MetricStat) SetPeriod added in v1.346.0

func (o *MetricStat) SetPeriod(v *int) *MetricStat

func (*MetricStat) SetStat added in v1.346.0

func (o *MetricStat) SetStat(v *string) *MetricStat

func (*MetricStat) SetUnit added in v1.346.0

func (o *MetricStat) SetUnit(v *string) *MetricStat

type Metrics added in v1.346.0

type Metrics struct {
	Baseline              *Baseline `json:"baseline,omitempty"`
	ConsecutiveErrorLimit *int      `json:"consecutiveErrorLimit,omitempty"`
	Count                 *int      `json:"count,omitempty"`
	DryRun                *bool     `json:"dryRun,omitempty"`
	FailureCondition      *string   `json:"failureCondition,omitempty"`
	FailureLimit          *int      `json:"failureLimit,omitempty"`
	InitialDelay          *string   `json:"initialDelay,omitempty"`
	Interval              *string   `json:"interval,omitempty"`
	Name                  *string   `json:"name,omitempty"`
	Provider              *Provider `json:"provider,omitempty"`
	SuccessCondition      *string   `json:"successCondition,omitempty"`
	// contains filtered or unexported fields
}

func (Metrics) MarshalJSON added in v1.346.0

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

func (*Metrics) SetBaseLine added in v1.346.0

func (o *Metrics) SetBaseLine(v *Baseline) *Metrics

func (*Metrics) SetConsecutiveErrorLimit added in v1.346.0

func (o *Metrics) SetConsecutiveErrorLimit(v *int) *Metrics

func (*Metrics) SetCount added in v1.346.0

func (o *Metrics) SetCount(v *int) *Metrics

func (*Metrics) SetDryRun added in v1.346.0

func (o *Metrics) SetDryRun(v *bool) *Metrics

func (*Metrics) SetFailureCondition added in v1.346.0

func (o *Metrics) SetFailureCondition(v *string) *Metrics

func (*Metrics) SetFailureLimit added in v1.346.0

func (o *Metrics) SetFailureLimit(v *int) *Metrics

func (*Metrics) SetInitialDelay added in v1.346.0

func (o *Metrics) SetInitialDelay(v *string) *Metrics

func (*Metrics) SetInterval added in v1.346.0

func (o *Metrics) SetInterval(v *string) *Metrics

func (*Metrics) SetName added in v1.346.0

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

func (*Metrics) SetProvider added in v1.346.0

func (o *Metrics) SetProvider(v *Provider) *Metrics

func (*Metrics) SetSuccessCondition added in v1.346.0

func (o *Metrics) SetSuccessCondition(v *string) *Metrics

type NewRelic

type NewRelic struct {
	AccountId        *string `json:"accountId,omitempty"`
	BaseUrlNerdGraph *string `json:"baseUrlNerdGraph,omitempty"`
	BaseUrlRest      *string `json:"baseUrlRest,omitempty"`
	PersonalApiKey   *string `json:"personalApiKey,omitempty"`
	Region           *string `json:"region,omitempty"`
	// contains filtered or unexported fields
}

func (NewRelic) MarshalJSON

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

func (*NewRelic) SetAccountId

func (o *NewRelic) SetAccountId(v *string) *NewRelic

func (*NewRelic) SetBaseUrlNerdGraph

func (o *NewRelic) SetBaseUrlNerdGraph(v *string) *NewRelic

func (*NewRelic) SetBaseUrlRest

func (o *NewRelic) SetBaseUrlRest(v *string) *NewRelic

func (*NewRelic) SetPersonalApiKey

func (o *NewRelic) SetPersonalApiKey(v *string) *NewRelic

func (*NewRelic) SetRegion

func (o *NewRelic) SetRegion(v *string) *NewRelic

type NewRelicProvider added in v1.346.0

type NewRelicProvider struct {
	Profile *string `json:"profile,omitempty"`
	Query   *string `json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (NewRelicProvider) MarshalJSON added in v1.346.0

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

func (*NewRelicProvider) SetProfile added in v1.346.0

func (o *NewRelicProvider) SetProfile(v *string) *NewRelicProvider

func (*NewRelicProvider) SetQuery added in v1.346.0

func (o *NewRelicProvider) SetQuery(v *string) *NewRelicProvider

type Parameters added in v1.346.0

type Parameters struct {
	Key   *string `json:"key,omitempty"`
	Value *string `json:"value,omitempty"`
	// contains filtered or unexported fields
}

func (Parameters) MarshalJSON added in v1.346.0

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

func (*Parameters) SetKey added in v1.346.0

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

func (*Parameters) SetValue added in v1.346.0

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

type PatchStrategyInput added in v1.347.0

type PatchStrategyInput struct {
	Strategy *Strategy `json:"strategy,omitempty"`
}

type PatchStrategyOutput added in v1.347.0

type PatchStrategyOutput struct {
	Strategy *Strategy `json:"strategy,omitempty"`
}

type PatchVerificationProviderInput

type PatchVerificationProviderInput struct {
	VerificationProvider *VerificationProvider `json:"verificationProvider,omitempty"`
}

type PatchVerificationProviderOutput

type PatchVerificationProviderOutput struct {
	VerificationProvider *VerificationProvider `json:"verificationProvider,omitempty"`
}

type PatchVerificationTemplateInput added in v1.346.0

type PatchVerificationTemplateInput struct {
	VerificationTemplate *VerificationTemplate `json:"verificationTemplate,omitempty"`
}

type PatchVerificationTemplateOutput added in v1.346.0

type PatchVerificationTemplateOutput struct {
	VerificationTemplate *VerificationTemplate `json:"verificationTemplate,omitempty"`
}

type Pause added in v1.347.0

type Pause struct {
	Duration *string `json:"duration,omitempty"`
	// contains filtered or unexported fields
}

func (Pause) MarshalJSON added in v1.347.0

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

func (*Pause) SetDuration added in v1.347.0

func (o *Pause) SetDuration(v *string) *Pause

type Prometheus

type Prometheus struct {
	Address *string `json:"address,omitempty"`
	// contains filtered or unexported fields
}

func (Prometheus) MarshalJSON

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

func (*Prometheus) SetAddress

func (o *Prometheus) SetAddress(v *string) *Prometheus

type PrometheusProvider added in v1.346.0

type PrometheusProvider struct {
	Query *string `json:"query,omitempty"`
	// contains filtered or unexported fields
}

func (PrometheusProvider) MarshalJSON added in v1.346.0

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

func (*PrometheusProvider) SetQuery added in v1.346.0

func (o *PrometheusProvider) SetQuery(v *string) *PrometheusProvider

type Provider added in v1.346.0

type Provider struct {
	CloudWatch *CloudWatchProvider `json:"cloudWatch,omitempty"`
	Datadog    *DataDogProvider    `json:"datadog,omitempty"`
	Jenkins    *JenkinsProvider    `json:"jenkins,omitempty"`
	NewRelic   *NewRelicProvider   `json:"newRelic,omitempty"`
	Prometheus *PrometheusProvider `json:"prometheus,omitempty"`
	Job        *Job                `json:"job,omitempty"`
	Web        *Web                `json:"web,omitempty"`
	// contains filtered or unexported fields
}

func (Provider) MarshalJSON added in v1.346.0

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

func (*Provider) SetCloudWatch added in v1.346.0

func (o *Provider) SetCloudWatch(v *CloudWatchProvider) *Provider

func (*Provider) SetDataDog added in v1.346.0

func (o *Provider) SetDataDog(v *DataDogProvider) *Provider

func (*Provider) SetJenkins added in v1.346.0

func (o *Provider) SetJenkins(v *JenkinsProvider) *Provider

func (*Provider) SetJob added in v1.349.1

func (o *Provider) SetJob(v *Job) *Provider

func (*Provider) SetNewRelic added in v1.346.0

func (o *Provider) SetNewRelic(v *NewRelicProvider) *Provider

func (*Provider) SetPrometheus added in v1.346.0

func (o *Provider) SetPrometheus(v *PrometheusProvider) *Provider

func (*Provider) SetWeb added in v1.346.0

func (o *Provider) SetWeb(v *Web) *Provider

type ReadStrategyInput added in v1.347.0

type ReadStrategyInput struct {
	StrategyName *string `json:"strategyName,omitempty"`
}

type ReadStrategyOutput added in v1.347.0

type ReadStrategyOutput struct {
	Strategy *Strategy `json:"strategy,omitempty"`
}

type ReadVerificationProviderInput

type ReadVerificationProviderInput struct {
	Name *string `json:"name,omitempty"`
}

type ReadVerificationProviderOutput

type ReadVerificationProviderOutput struct {
	VerificationProvider *VerificationProvider `json:"verificationProvider,omitempty"`
}

type ReadVerificationTemplateInput added in v1.346.0

type ReadVerificationTemplateInput struct {
	Name *string `json:"name,omitempty"`
}

type ReadVerificationTemplateOutput added in v1.346.0

type ReadVerificationTemplateOutput struct {
	VerificationTemplate *VerificationTemplate `json:"verificationTemplate,omitempty"`
}

type Rolling added in v1.347.0

type Rolling struct {
	Steps []*RollingSteps `json:"steps,omitempty"`
	// contains filtered or unexported fields
}

func (Rolling) MarshalJSON added in v1.347.0

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

func (*Rolling) SetSteps added in v1.347.0

func (o *Rolling) SetSteps(v []*RollingSteps) *Rolling

type RollingSteps added in v1.347.0

type RollingSteps struct {
	Name         *string       `json:"name,omitempty"`
	Pause        *Pause        `json:"pause,omitempty"`
	Verification *Verification `json:"verification,omitempty"`
	// contains filtered or unexported fields
}

func (RollingSteps) MarshalJSON added in v1.347.0

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

func (*RollingSteps) SetName added in v1.347.0

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

func (*RollingSteps) SetPause added in v1.347.0

func (o *RollingSteps) SetPause(v *Pause) *RollingSteps

func (*RollingSteps) SetVerification added in v1.347.0

func (o *RollingSteps) SetVerification(v *Verification) *RollingSteps

type SecretKeyRef added in v1.346.0

type SecretKeyRef struct {
	Key  *string `json:"key,omitempty"`
	Name *string `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (SecretKeyRef) MarshalJSON added in v1.346.0

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

func (*SecretKeyRef) SetKey added in v1.346.0

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

func (*SecretKeyRef) SetName added in v1.346.0

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

type Service

type Service interface {
	ListVerificationProviders(context.Context) (*ListVerificationProvidersOutput, error)
	CreateVerificationProvider(context.Context, *CreateVerificationProviderInput) (*CreateVerificationProviderOutput, error)
	ReadVerificationProvider(context.Context, *ReadVerificationProviderInput) (*ReadVerificationProviderOutput, error)
	UpdateVerificationProvider(context.Context, *UpdateVerificationProviderInput) (*UpdateVerificationProviderOutput, error)
	PatchVerificationProvider(context.Context, *PatchVerificationProviderInput) (*PatchVerificationProviderOutput, error)
	DeleteVerificationProvider(context.Context, *DeleteVerificationProviderInput) (*DeleteVerificationProviderOutput, error)

	ListVerificationTemplates(context.Context) (*ListVerificationTemplatesOutput, error)
	CreateVerificationTemplate(context.Context, *CreateVerificationTemplateInput) (*CreateVerificationTemplateOutput, error)
	ReadVerificationTemplate(context.Context, *ReadVerificationTemplateInput) (*ReadVerificationTemplateOutput, error)
	UpdateVerificationTemplate(context.Context, *UpdateVerificationTemplateInput) (*UpdateVerificationTemplateOutput, error)
	PatchVerificationTemplate(context.Context, *PatchVerificationTemplateInput) (*PatchVerificationTemplateOutput, error)
	DeleteVerificationTemplate(context.Context, *DeleteVerificationTemplateInput) (*DeleteVerificationTemplateOutput, error)

	ListStrategies(context.Context) (*ListStrategiesOutput, error)
	CreateStrategy(context.Context, *CreateStrategyInput) (*CreateStrategyOutput, error)
	ReadStrategy(context.Context, *ReadStrategyInput) (*ReadStrategyOutput, error)
	UpdateStrategy(context.Context, *UpdateStrategyInput) (*UpdateStrategyOutput, error)
	PatchStrategy(context.Context, *PatchStrategyInput) (*PatchStrategyOutput, error)
	DeleteStrategy(context.Context, *DeleteStrategyInput) (*DeleteStrategyOutput, error)
}

Service provides the API operation methods for making requests to endpoints of the Spotinst API. See this package's package overview docs for details on the service.

type ServiceOp

type ServiceOp struct {
	Client *client.Client
}

func New

func New(sess *session.Session, cfgs ...*spotinst.Config) *ServiceOp

func (*ServiceOp) CreateStrategy added in v1.347.0

func (s *ServiceOp) CreateStrategy(ctx context.Context, input *CreateStrategyInput) (*CreateStrategyOutput, error)

func (*ServiceOp) CreateVerificationProvider

func (s *ServiceOp) CreateVerificationProvider(ctx context.Context, input *CreateVerificationProviderInput) (*CreateVerificationProviderOutput, error)

func (*ServiceOp) CreateVerificationTemplate added in v1.346.0

func (s *ServiceOp) CreateVerificationTemplate(ctx context.Context, input *CreateVerificationTemplateInput) (*CreateVerificationTemplateOutput, error)

func (*ServiceOp) DeleteStrategy added in v1.347.0

func (s *ServiceOp) DeleteStrategy(ctx context.Context, input *DeleteStrategyInput) (*DeleteStrategyOutput, error)

func (*ServiceOp) DeleteVerificationProvider

func (s *ServiceOp) DeleteVerificationProvider(ctx context.Context, input *DeleteVerificationProviderInput) (*DeleteVerificationProviderOutput, error)

func (*ServiceOp) DeleteVerificationTemplate added in v1.346.0

func (s *ServiceOp) DeleteVerificationTemplate(ctx context.Context, input *DeleteVerificationTemplateInput) (*DeleteVerificationTemplateOutput, error)

func (*ServiceOp) ListStrategies added in v1.347.0

func (s *ServiceOp) ListStrategies(ctx context.Context) (*ListStrategiesOutput, error)

func (*ServiceOp) ListVerificationProviders

func (s *ServiceOp) ListVerificationProviders(ctx context.Context) (*ListVerificationProvidersOutput, error)

func (*ServiceOp) ListVerificationTemplates added in v1.346.0

func (s *ServiceOp) ListVerificationTemplates(ctx context.Context) (*ListVerificationTemplatesOutput, error)

func (*ServiceOp) PatchStrategy added in v1.347.0

func (s *ServiceOp) PatchStrategy(ctx context.Context, input *PatchStrategyInput) (*PatchStrategyOutput, error)

func (*ServiceOp) PatchVerificationProvider

func (s *ServiceOp) PatchVerificationProvider(ctx context.Context, input *PatchVerificationProviderInput) (*PatchVerificationProviderOutput, error)

func (*ServiceOp) PatchVerificationTemplate added in v1.346.0

func (s *ServiceOp) PatchVerificationTemplate(ctx context.Context, input *PatchVerificationTemplateInput) (*PatchVerificationTemplateOutput, error)

func (*ServiceOp) ReadStrategy added in v1.347.0

func (s *ServiceOp) ReadStrategy(ctx context.Context, input *ReadStrategyInput) (*ReadStrategyOutput, error)

func (*ServiceOp) ReadVerificationProvider

func (s *ServiceOp) ReadVerificationProvider(ctx context.Context, input *ReadVerificationProviderInput) (*ReadVerificationProviderOutput, error)

func (*ServiceOp) ReadVerificationTemplate added in v1.346.0

func (s *ServiceOp) ReadVerificationTemplate(ctx context.Context, input *ReadVerificationTemplateInput) (*ReadVerificationTemplateOutput, error)

func (*ServiceOp) UpdateStrategy added in v1.347.0

func (s *ServiceOp) UpdateStrategy(ctx context.Context, input *UpdateStrategyInput) (*UpdateStrategyOutput, error)

func (*ServiceOp) UpdateVerificationProvider

func (s *ServiceOp) UpdateVerificationProvider(ctx context.Context, input *UpdateVerificationProviderInput) (*UpdateVerificationProviderOutput, error)

func (*ServiceOp) UpdateVerificationTemplate added in v1.346.0

func (s *ServiceOp) UpdateVerificationTemplate(ctx context.Context, input *UpdateVerificationTemplateInput) (*UpdateVerificationTemplateOutput, error)

type SetCanaryScale added in v1.347.0

type SetCanaryScale struct {
	MatchTrafficWeight *bool `json:"matchTrafficWeight,omitempty"`
	Replicas           *int  `json:"replicas,omitempty"`
	Weight             *int  `json:"weight,omitempty"`
	// contains filtered or unexported fields
}

func (SetCanaryScale) MarshalJSON added in v1.347.0

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

func (*SetCanaryScale) SetMatchTrafficWeight added in v1.347.0

func (o *SetCanaryScale) SetMatchTrafficWeight(v *bool) *SetCanaryScale

func (*SetCanaryScale) SetReplicas added in v1.347.0

func (o *SetCanaryScale) SetReplicas(v *int) *SetCanaryScale

func (*SetCanaryScale) SetWeight added in v1.347.0

func (o *SetCanaryScale) SetWeight(v *int) *SetCanaryScale

type SetHeaderRoute added in v1.347.0

type SetHeaderRoute struct {
	Match []*Match `json:"match,omitempty"`
	Name  *string  `json:"name,omitempty"`
	// contains filtered or unexported fields
}

func (SetHeaderRoute) MarshalJSON added in v1.347.0

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

func (*SetHeaderRoute) SetMatch added in v1.347.0

func (o *SetHeaderRoute) SetMatch(v []*Match) *SetHeaderRoute

func (*SetHeaderRoute) SetName added in v1.347.0

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

type Spec added in v1.346.0

type Spec struct {
	BackoffLimit *int      `json:"backoffLimit,omitempty"`
	Template     *Template `json:"template,omitempty"`
	// contains filtered or unexported fields
}

func (Spec) MarshalJSON added in v1.346.0

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

func (*Spec) SetBackoffLimit added in v1.346.0

func (o *Spec) SetBackoffLimit(v *int) *Spec

func (*Spec) SetTemplate added in v1.346.0

func (o *Spec) SetTemplate(v *Template) *Spec

type Strategy added in v1.347.0

type Strategy struct {
	Canary  *Canary  `json:"canary,omitempty"`
	Name    *string  `json:"name,omitempty"`
	Rolling *Rolling `json:"rolling,omitempty"`

	// Read-only fields.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (Strategy) MarshalJSON added in v1.347.0

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

func (*Strategy) SetCanary added in v1.347.0

func (o *Strategy) SetCanary(v *Canary) *Strategy

func (*Strategy) SetName added in v1.347.0

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

func (*Strategy) SetRolling added in v1.347.0

func (o *Strategy) SetRolling(v *Rolling) *Strategy

type Template added in v1.346.0

type Template struct {
	Spec *TemplateSpec `json:"spec,omitempty"`
	// contains filtered or unexported fields
}

func (Template) MarshalJSON added in v1.346.0

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

region Template

func (*Template) SetSpec added in v1.346.0

func (o *Template) SetSpec(v *TemplateSpec) *Template

type TemplateSpec added in v1.346.0

type TemplateSpec struct {
	RestartPolicy *string       `json:"restartPolicy,omitempty"`
	Containers    []*Containers `json:"containers,omitempty"`
	// contains filtered or unexported fields
}

func (TemplateSpec) MarshalJSON added in v1.346.0

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

func (*TemplateSpec) SetContainers added in v1.346.0

func (o *TemplateSpec) SetContainers(v []*Containers) *TemplateSpec

func (*TemplateSpec) SetRestartPolicy added in v1.346.0

func (o *TemplateSpec) SetRestartPolicy(v *string) *TemplateSpec

type UpdateStrategyInput added in v1.347.0

type UpdateStrategyInput struct {
	Strategy *Strategy `json:"strategy,omitempty"`
}

type UpdateStrategyOutput added in v1.347.0

type UpdateStrategyOutput struct {
	Strategy *Strategy `json:"strategy,omitempty"`
}

type UpdateVerificationProviderInput

type UpdateVerificationProviderInput struct {
	VerificationProvider *VerificationProvider `json:"verificationProvider,omitempty"`
}

type UpdateVerificationProviderOutput

type UpdateVerificationProviderOutput struct {
	VerificationProvider *VerificationProvider `json:"verificationProvider,omitempty"`
}

type UpdateVerificationTemplateInput added in v1.346.0

type UpdateVerificationTemplateInput struct {
	VerificationTemplate *VerificationTemplate `json:"verificationTemplate,omitempty"`
}

type UpdateVerificationTemplateOutput added in v1.346.0

type UpdateVerificationTemplateOutput struct {
	VerificationTemplate *VerificationTemplate `json:"verificationTemplate,omitempty"`
}

type ValueFrom added in v1.346.0

type ValueFrom struct {
	SecretKeyRef *SecretKeyRef `json:"secretKeyRef,omitempty"`
	// contains filtered or unexported fields
}

func (ValueFrom) MarshalJSON added in v1.346.0

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

func (*ValueFrom) SetSecretKeyRef added in v1.346.0

func (o *ValueFrom) SetSecretKeyRef(v *SecretKeyRef) *ValueFrom

type Verification added in v1.347.0

type Verification struct {
	TemplateNames []string `json:"templateNames,omitempty"`
	// contains filtered or unexported fields
}

func (Verification) MarshalJSON added in v1.347.0

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

func (*Verification) SetTemplateNames added in v1.347.0

func (o *Verification) SetTemplateNames(v []string) *Verification

type VerificationProvider

type VerificationProvider struct {
	CloudWatch *CloudWatch `json:"cloudWatch,omitempty"`
	ClusterIDs []string    `json:"clusterIds,omitempty"`
	DataDog    *DataDog    `json:"datadog,omitempty"`
	Jenkins    *Jenkins    `json:"jenkins,omitempty"`
	Name       *string     `json:"name,omitempty"`
	NewRelic   *NewRelic   `json:"newRelic,omitempty"`
	Prometheus *Prometheus `json:"prometheus,omitempty"`

	// Read-only fields.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (VerificationProvider) MarshalJSON

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

func (*VerificationProvider) SetCloudWatch

func (*VerificationProvider) SetClusterIDs

func (o *VerificationProvider) SetClusterIDs(v []string) *VerificationProvider

func (*VerificationProvider) SetDataDog

func (*VerificationProvider) SetJenkins

func (*VerificationProvider) SetName

func (*VerificationProvider) SetNewRelic

func (*VerificationProvider) SetPrometheus

type VerificationTemplate added in v1.346.0

type VerificationTemplate struct {
	Args    []*Args    `json:"args,omitempty"`
	Metrics []*Metrics `json:"metrics,omitempty"`
	Name    *string    `json:"name,omitempty"`

	// Read-only fields.
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	// contains filtered or unexported fields
}

func (VerificationTemplate) MarshalJSON added in v1.346.0

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

func (*VerificationTemplate) SetArgs added in v1.346.0

func (*VerificationTemplate) SetMetrics added in v1.346.0

func (o *VerificationTemplate) SetMetrics(v []*Metrics) *VerificationTemplate

func (*VerificationTemplate) SetName added in v1.346.0

type Web added in v1.346.0

type Web struct {
	Body           *string    `json:"body,omitempty"`
	Insecure       *bool      `json:"insecure,omitempty"`
	Headers        []*Headers `json:"headers,omitempty"`
	JsonPath       *string    `json:"jsonPath,omitempty"`
	Method         *string    `json:"method,omitempty"`
	TimeoutSeconds *int       `json:"timeoutSeconds,omitempty"`
	Url            *string    `json:"url,omitempty"`
	// contains filtered or unexported fields
}

func (Web) MarshalJSON added in v1.346.0

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

func (*Web) SetBody added in v1.346.0

func (o *Web) SetBody(v *string) *Web

func (*Web) SetHeaders added in v1.346.0

func (o *Web) SetHeaders(v []*Headers) *Web

func (*Web) SetInsecure added in v1.346.0

func (o *Web) SetInsecure(v *bool) *Web

func (*Web) SetJsonPath added in v1.346.0

func (o *Web) SetJsonPath(v *string) *Web

func (*Web) SetMethod added in v1.346.0

func (o *Web) SetMethod(v *string) *Web

func (*Web) SetTimeoutSeconds added in v1.346.0

func (o *Web) SetTimeoutSeconds(v *int) *Web

func (*Web) SetUrl added in v1.346.0

func (o *Web) SetUrl(v *string) *Web

Jump to

Keyboard shortcuts

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