models

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Mar 25, 2021 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 {

	// 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 DeleteProjectResponse added in v0.8.0

type DeleteProjectResponse struct {

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

DeleteProjectResponse delete project response

swagger:model DeleteProjectResponse

func (*DeleteProjectResponse) MarshalBinary added in v0.8.0

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

MarshalBinary interface implementation

func (*DeleteProjectResponse) UnmarshalBinary added in v0.8.0

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

UnmarshalBinary interface implementation

func (*DeleteProjectResponse) Validate added in v0.8.0

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

Validate validates this delete project response

type DeleteServiceResponse added in v0.8.0

type DeleteServiceResponse struct {

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

DeleteServiceResponse delete service response

swagger:model DeleteServiceResponse

func (*DeleteServiceResponse) MarshalBinary added in v0.8.0

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

MarshalBinary interface implementation

func (*DeleteServiceResponse) UnmarshalBinary added in v0.8.0

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

UnmarshalBinary interface implementation

func (*DeleteServiceResponse) Validate added in v0.8.0

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

Validate validates this delete service response

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 Evaluation added in v0.8.0

type Evaluation struct {

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

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

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

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

type EventContext

type EventContext struct {

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

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

	// shkeptnspecversion
	Shkeptnspecversion string `json:"shkeptnspecversion,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"`

	// Shipyard version
	ShipyardVersion string `json:"shipyardVersion,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 {

	// Metadata
	Metadata *Version `json:"metadata,omitempty"`

	// 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 Secret added in v0.8.1

type Secret struct {

	// data
	// Required: true
	Data map[string]string `json:"data"`

	// The name of the secret
	// Required: true
	Name *string `json:"name"`

	// The scope of the secret
	// Required: true
	Scope *string `json:"scope"`
}

Secret secret

swagger:model Secret

func (*Secret) MarshalBinary added in v0.8.1

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

MarshalBinary interface implementation

func (*Secret) UnmarshalBinary added in v0.8.1

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

UnmarshalBinary interface implementation

func (*Secret) Validate added in v0.8.1

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

Validate validates this secret

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 Timeframe added in v0.8.0

type Timeframe struct {

	// Evaluation start timestamp
	From string `json:"from,omitempty"`

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

	// Evaluation end timestamp
	To string `json:"to,omitempty"`
}

Timeframe timeframe

swagger:model timeframe

func (*Timeframe) MarshalBinary added in v0.8.0

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

MarshalBinary interface implementation

func (*Timeframe) UnmarshalBinary added in v0.8.0

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

UnmarshalBinary interface implementation

func (*Timeframe) Validate added in v0.8.0

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

Validate validates this timeframe

type Version added in v0.6.2

type Version struct {

	// Branch in repository containing the resource
	Branch string `json:"branch,omitempty"`

	// Upstream respository containing the resource
	UpstreamURL string `json:"upstreamURL,omitempty"`

	// 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