models

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2020 License: Apache-2.0 Imports: 5 Imported by: 92

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Approval added in v0.7.0

type Approval struct {

	// ID of the event
	EventID string `json:"eventId,omitempty"`

	// image
	Image string `json:"image,omitempty"`

	// Keptn Context ID of the event
	KeptnContext string `json:"keptnContext,omitempty"`

	// tag
	Tag string `json:"tag,omitempty"`

	// Time of the event
	Time string `json:"time,omitempty"`
}

Approval approval swagger:model Approval

func (*Approval) MarshalBinary added in v0.7.0

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

MarshalBinary interface implementation

func (*Approval) UnmarshalBinary added in v0.7.0

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

UnmarshalBinary interface implementation

func (*Approval) Validate added in v0.7.0

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

Validate validates this approval

type CreateProject added in v0.6.2

type CreateProject 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"`
}

CreateProject create project swagger:model CreateProject

func (*CreateProject) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*CreateProject) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*CreateProject) Validate added in v0.6.2

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

Validate validates this create project

type CreateService added in v0.6.2

type CreateService 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"`
}

CreateService create service swagger:model CreateService

func (*CreateService) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*CreateService) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*CreateService) Validate added in v0.6.2

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

Validate validates this create service

type Error

type Error struct {

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

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

Error error swagger:model Error

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 EventContext

type EventContext struct {

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

	// token
	// Required: true
	Token *string `json:"token"`
}

EventContext event context swagger:model EventContext

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 EventContextInfo added in v0.7.0

type EventContextInfo struct {

	// ID of the event
	EventID string `json:"eventId,omitempty"`

	// Keptn Context ID of the event
	KeptnContext string `json:"keptnContext,omitempty"`

	// Time of the event
	Time string `json:"time,omitempty"`
}

EventContextInfo event context info swagger:model EventContextInfo

func (*EventContextInfo) MarshalBinary added in v0.7.0

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

MarshalBinary interface implementation

func (*EventContextInfo) UnmarshalBinary added in v0.7.0

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

UnmarshalBinary interface implementation

func (*EventContextInfo) Validate added in v0.7.0

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

Validate validates this event context info

type Events added in v0.6.2

type Events struct {

	// events
	Events []*KeptnContextExtendedCE `json:"events"`

	// Pointer to next page, base64 encoded
	NextPageKey string `json:"nextPageKey,omitempty"`

	// Size of returned page
	PageSize float64 `json:"pageSize,omitempty"`

	// Total number of resources
	TotalCount float64 `json:"totalCount,omitempty"`
}

Events events swagger:model Events

func (*Events) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*Events) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*Events) Validate added in v0.6.2

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

Validate validates this events

type KeptnContextExtendedCE added in v0.2.4

type KeptnContextExtendedCE struct {

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

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

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

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

	// shkeptncontext
	Shkeptncontext string `json:"shkeptncontext,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) MarshalBinary added in v0.2.4

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

MarshalBinary interface implementation

func (*KeptnContextExtendedCE) UnmarshalBinary added in v0.2.4

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

UnmarshalBinary interface implementation

func (*KeptnContextExtendedCE) Validate added in v0.2.4

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

Validate validates this keptn context extended c e

type Metadata added in v0.7.0

type Metadata struct {

	// 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"`
}

Metadata metadata swagger:model metadata

func (*Metadata) MarshalBinary added in v0.7.0

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

MarshalBinary interface implementation

func (*Metadata) UnmarshalBinary added in v0.7.0

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

UnmarshalBinary interface implementation

func (*Metadata) Validate added in v0.7.0

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

Validate validates this metadata

type Project

type Project struct {

	// Creation date of the service
	CreationDate string `json:"creationDate,omitempty"`

	// Git remote URI
	GitRemoteURI string `json:"gitRemoteURI,omitempty"`

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

	// Git User
	GitUser string `json:"gitUser,omitempty"`

	// Project name
	ProjectName string `json:"projectName,omitempty"`

	// stages
	Stages []*Stage `json:"stages"`
}

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 Projects added in v0.6.2

type Projects struct {

	// Pointer to next page, base64 encoded
	NextPageKey string `json:"nextPageKey,omitempty"`

	// Size of returned page
	PageSize float64 `json:"pageSize,omitempty"`

	// projects
	Projects []*Project `json:"projects"`

	// Total number of projects
	TotalCount float64 `json:"totalCount,omitempty"`
}

Projects projects swagger:model Projects

func (*Projects) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*Projects) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*Projects) Validate added in v0.6.2

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

Validate validates this projects

type Resource

type Resource struct {

	// Resource content
	ResourceContent string `json:"resourceContent,omitempty"`

	// Resource URI
	// Required: true
	ResourceURI *string `json:"resourceURI"`
}

Resource resource swagger:model Resource

func (*Resource) MarshalBinary

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

MarshalBinary interface implementation

func (*Resource) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Resource) Validate

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

Validate validates this resource

type Resources added in v0.6.2

type Resources struct {

	// Pointer to next page, base64 encoded
	NextPageKey string `json:"nextPageKey,omitempty"`

	// Size of returned page
	PageSize float64 `json:"pageSize,omitempty"`

	// resources
	Resources []*Resource `json:"resources"`

	// Total number of resources
	TotalCount float64 `json:"totalCount,omitempty"`
}

Resources resources swagger:model Resources

func (*Resources) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*Resources) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*Resources) Validate added in v0.6.2

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

Validate validates this resources

type Service

type Service struct {

	// Creation date of the service
	CreationDate string `json:"creationDate,omitempty"`

	// Currently deployed image
	DeployedImage string `json:"deployedImage,omitempty"`

	// last event types
	LastEventTypes map[string]EventContextInfo `json:"lastEventTypes,omitempty"`

	// open approvals
	OpenApprovals []*Approval `json:"openApprovals"`

	// Service name
	ServiceName string `json:"serviceName,omitempty"`
}

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 Services added in v0.6.2

type Services struct {

	// Pointer to next page, base64 encoded
	NextPageKey string `json:"nextPageKey,omitempty"`

	// Size of returned page
	PageSize float64 `json:"pageSize,omitempty"`

	// services
	Services []*Service `json:"services"`

	// Total number of services
	TotalCount float64 `json:"totalCount,omitempty"`
}

Services services swagger:model Services

func (*Services) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*Services) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*Services) Validate added in v0.6.2

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

Validate validates this services

type Stage added in v0.6.2

type Stage struct {

	// services
	Services []*Service `json:"services"`

	// Stage name
	StageName string `json:"stageName,omitempty"`
}

Stage stage swagger:model Stage

func (*Stage) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*Stage) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*Stage) Validate added in v0.6.2

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

Validate validates this stage

type Stages added in v0.6.2

type Stages struct {

	// Pointer to next page, base64 encoded
	NextPageKey string `json:"nextPageKey,omitempty"`

	// Size of returned page
	PageSize float64 `json:"pageSize,omitempty"`

	// stages
	Stages []*Stage `json:"stages"`

	// Total number of stages
	TotalCount float64 `json:"totalCount,omitempty"`
}

Stages stages swagger:model Stages

func (*Stages) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*Stages) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*Stages) Validate added in v0.6.2

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

Validate validates this stages

type Version added in v0.6.2

type Version struct {

	// Version identifier
	Version string `json:"version,omitempty"`
}

Version version swagger:model Version

func (*Version) MarshalBinary added in v0.6.2

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

MarshalBinary interface implementation

func (*Version) UnmarshalBinary added in v0.6.2

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

UnmarshalBinary interface implementation

func (*Version) Validate added in v0.6.2

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

Validate validates this version

Jump to

Keyboard shortcuts

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