models

package
v0.0.0-...-318a3d5 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (

	// ImportSummaryOutcomeSuccess captures enum value "success"
	ImportSummaryOutcomeSuccess string = "success"

	// ImportSummaryOutcomeFailure captures enum value "failure"
	ImportSummaryOutcomeFailure string = "failure"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Contenttype

type Contenttype string

Contenttype contenttype swagger:model contenttype

func (Contenttype) Validate

func (m Contenttype) Validate(formats strfmt.Registry) error

Validate validates this contenttype

type Data

type Data interface{}

Data data swagger:model data

type Error

type Error struct {

	// code
	Code int64 `json:"code,omitempty"`

	// fields
	Fields string `json:"fields,omitempty"`

	// message
	// Required: true
	Message *string `json:"message"`
}

Error error

swagger:model error

func (*Error) ContextValidate

func (m *Error) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this error based on context it is used

func (*Error) MarshalBinary

func (m *Error) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Error) UnmarshalBinary

func (m *Error) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Error) Validate

func (m *Error) Validate(formats strfmt.Registry) error

Validate validates this error

type Evaluation

type Evaluation struct {

	// Evaluation end timestamp
	End string `json:"end,omitempty"`

	// labels
	Labels map[string]string `json:"labels,omitempty"`

	// Evaluation start timestamp
	Start string `json:"start,omitempty"`

	// Evaluation timeframe
	Timeframe string `json:"timeframe,omitempty"`
}

Evaluation evaluation

swagger:model evaluation

func (*Evaluation) MarshalBinary

func (m *Evaluation) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Evaluation) UnmarshalBinary

func (m *Evaluation) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Evaluation) Validate

func (m *Evaluation) Validate(formats strfmt.Registry) error

Validate validates this evaluation

type Event

type Event struct {

	// contenttype
	Contenttype Contenttype `json:"contenttype,omitempty"`

	// data
	Data Data `json:"data,omitempty"`

	// extensions
	Extensions Extensions `json:"extensions,omitempty"`

	// id
	// Required: true
	ID ID `json:"id"`

	// source
	// Required: true
	Source Source `json:"source"`

	// specversion
	// Required: true
	Specversion Specversion `json:"specversion"`

	// time
	// Format: date-time
	Time Time `json:"time,omitempty"`

	// type
	// Required: true
	Type Type `json:"type"`
}

Event event swagger:model event

func (*Event) MarshalBinary

func (m *Event) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Event) UnmarshalBinary

func (m *Event) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Event) Validate

func (m *Event) Validate(formats strfmt.Registry) error

Validate validates this event

type EventContext

type EventContext struct {

	// keptn context
	// Required: true
	KeptnContext *string `json:"keptnContext"`
}

EventContext event context

swagger:model eventContext

func (*EventContext) ContextValidate

func (m *EventContext) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this event context based on context it is used

func (*EventContext) MarshalBinary

func (m *EventContext) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*EventContext) UnmarshalBinary

func (m *EventContext) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*EventContext) Validate

func (m *EventContext) Validate(formats strfmt.Registry) error

Validate validates this event context

type Extensions

type Extensions interface{}

Extensions extensions swagger:model extensions

type ID

type ID string

ID id swagger:model id

func (ID) Validate

func (m ID) Validate(formats strfmt.Registry) error

Validate validates this id

type ImportSummary

type ImportSummary struct {

	// message
	Message string `json:"message,omitempty"`

	// outcome
	// Enum: [success failure]
	Outcome string `json:"outcome,omitempty"`

	// tasks
	Tasks []*Task `json:"tasks"`
}

ImportSummary import summary

swagger:model importSummary

func (*ImportSummary) ContextValidate

func (m *ImportSummary) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this import summary based on the context it is used

func (*ImportSummary) MarshalBinary

func (m *ImportSummary) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*ImportSummary) UnmarshalBinary

func (m *ImportSummary) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*ImportSummary) Validate

func (m *ImportSummary) Validate(formats strfmt.Registry) error

Validate validates this import summary

type KeptnContextExtendedCE

type KeptnContextExtendedCE struct {

	// contenttype
	Contenttype string `json:"contenttype,omitempty"`

	// data
	// Required: true
	Data interface{} `json:"data"`

	// extensions
	Extensions interface{} `json:"extensions,omitempty"`

	// gitcommitid
	Gitcommitid string `json:"gitcommitid,omitempty"`

	// id
	ID string `json:"id,omitempty"`

	// shkeptncontext
	Shkeptncontext string `json:"shkeptncontext,omitempty"`

	// shkeptnversion
	Shkeptnversion string `json:"shkeptnversion,omitempty"`

	// source
	// Required: true
	Source *string `json:"source"`

	// specversion
	Specversion string `json:"specversion,omitempty"`

	// time
	// Format: date-time
	Time strfmt.DateTime `json:"time,omitempty"`

	// triggeredid
	Triggeredid string `json:"triggeredid,omitempty"`

	// type
	// Required: true
	Type *string `json:"type"`
}

KeptnContextExtendedCE keptn context extended c e

swagger:model keptnContextExtendedCE

func (*KeptnContextExtendedCE) ContextValidate

func (m *KeptnContextExtendedCE) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this keptn context extended c e based on context it is used

func (*KeptnContextExtendedCE) MarshalBinary

func (m *KeptnContextExtendedCE) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*KeptnContextExtendedCE) UnmarshalBinary

func (m *KeptnContextExtendedCE) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*KeptnContextExtendedCE) Validate

func (m *KeptnContextExtendedCE) Validate(formats strfmt.Registry) error

Validate validates this keptn context extended c e

type Metadata

type Metadata struct {

	// automaticprovisioning
	// Required: true
	Automaticprovisioning *bool `json:"automaticprovisioning"`

	// bridgeversion
	Bridgeversion string `json:"bridgeversion,omitempty"`

	// keptnlabel
	Keptnlabel string `json:"keptnlabel,omitempty"`

	// keptnservices
	Keptnservices interface{} `json:"keptnservices,omitempty"`

	// keptnversion
	Keptnversion string `json:"keptnversion,omitempty"`

	// namespace
	Namespace string `json:"namespace,omitempty"`

	// shipyardversion
	Shipyardversion string `json:"shipyardversion,omitempty"`
}

Metadata metadata

swagger:model metadata

func (*Metadata) ContextValidate

func (m *Metadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this metadata based on context it is used

func (*Metadata) MarshalBinary

func (m *Metadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metadata) UnmarshalBinary

func (m *Metadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metadata) Validate

func (m *Metadata) Validate(formats strfmt.Registry) error

Validate validates this metadata

type Principal

type Principal string

Principal principal swagger:model principal

func (Principal) Validate

func (m Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

type Project

type Project struct {

	// git remote URL
	GitRemoteURL string `json:"gitRemoteURL,omitempty"`

	// git token
	GitToken string `json:"gitToken,omitempty"`

	// git user
	GitUser string `json:"gitUser,omitempty"`

	// name
	// Required: true
	Name *string `json:"name"`

	// shipyard
	// Required: true
	Shipyard *string `json:"shipyard"`
}

Project project

swagger:model project

func (*Project) MarshalBinary

func (m *Project) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Project) UnmarshalBinary

func (m *Project) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Project) Validate

func (m *Project) Validate(formats strfmt.Registry) error

Validate validates this project

type Service

type Service struct {

	// deployment strategies
	DeploymentStrategies map[string]string `json:"deploymentStrategies,omitempty"`

	// helm chart
	HelmChart string `json:"helmChart,omitempty"`

	// service name
	// Required: true
	ServiceName *string `json:"serviceName"`
}

Service service

swagger:model service

func (*Service) MarshalBinary

func (m *Service) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Service) UnmarshalBinary

func (m *Service) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Service) Validate

func (m *Service) Validate(formats strfmt.Registry) error

Validate validates this service

type Source

type Source string

Source source swagger:model source

func (Source) Validate

func (m Source) Validate(formats strfmt.Registry) error

Validate validates this source

type Specversion

type Specversion string

Specversion specversion swagger:model specversion

func (Specversion) Validate

func (m Specversion) Validate(formats strfmt.Registry) error

Validate validates this specversion

type Task

type Task struct {

	// response
	Response interface{} `json:"response,omitempty"`

	// task
	Task interface{} `json:"task,omitempty"`
}

Task task

swagger:model task

func (*Task) ContextValidate

func (m *Task) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this task based on context it is used

func (*Task) MarshalBinary

func (m *Task) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Task) UnmarshalBinary

func (m *Task) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Task) Validate

func (m *Task) Validate(formats strfmt.Registry) error

Validate validates this task

type Time

type Time strfmt.DateTime

Time time swagger:model time

func (*Time) MarshalBinary

func (m *Time) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (Time) MarshalJSON

func (m Time) MarshalJSON() ([]byte, error)

MarshalJSON retrieves a Time value as JSON output

func (*Time) UnmarshalBinary

func (m *Time) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Time) UnmarshalJSON

func (m *Time) UnmarshalJSON(b []byte) error

UnmarshalJSON sets a Time value from JSON input

func (Time) Validate

func (m Time) Validate(formats strfmt.Registry) error

Validate validates this time

type Type

type Type string

Type type swagger:model type

func (Type) Validate

func (m Type) Validate(formats strfmt.Registry) error

Validate validates this type

Jump to

Keyboard shortcuts

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