models

package
v0.0.0-...-a5d79d0 Latest Latest
Warning

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

Go to latest
Published: Jul 7, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

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 {

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

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

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 EventContexts

type EventContexts struct {

	// event contexts
	EventContexts []*EventContext `json:"eventContexts"`

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

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

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

EventContexts event contexts

swagger:model EventContexts

func (*EventContexts) MarshalBinary

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

MarshalBinary interface implementation

func (*EventContexts) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*EventContexts) Validate

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

Validate validates this event contexts

type ExpandedProject

type ExpandedProject struct {

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

	// git auth credentials
	GitCredentials *apimodels.GitAuthCredentialsSecure `json:"gitCredentials,omitempty"`

	// last event context
	LastEventContext *EventContext `json:"lastEventContext,omitempty"`

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

	// Shipyard file content
	Shipyard string `json:"shipyard,omitempty"`

	// Version of the shipyard file
	ShipyardVersion string `json:"shipyardVersion,omitempty"`

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

ExpandedProject expanded project

swagger:model ExpandedProject

func (*ExpandedProject) MarshalBinary

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

MarshalBinary interface implementation

func (*ExpandedProject) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExpandedProject) Validate

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

Validate validates this expanded project

type ExpandedProjects

type ExpandedProjects struct {

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

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

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

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

ExpandedProjects expanded projects

swagger:model ExpandedProjects

func (*ExpandedProjects) MarshalBinary

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

MarshalBinary interface implementation

func (*ExpandedProjects) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExpandedProjects) Validate

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

Validate validates this expanded projects

type ExpandedService

type ExpandedService 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]EventContext `json:"lastEventTypes,omitempty"`

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

ExpandedService expanded service

swagger:model ExpandedService

func (*ExpandedService) MarshalBinary

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

MarshalBinary interface implementation

func (*ExpandedService) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExpandedService) Validate

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

Validate validates this expanded service

type ExpandedServiceWithStageInfo

type ExpandedServiceWithStageInfo struct {

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

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

	// stage info
	StageInfo []*InverseServiceStageInfo `json:"stageInfo"`
}

ExpandedServiceWithStageInfo expanded service with stage info

swagger:model ExpandedServiceWithStageInfo

func (*ExpandedServiceWithStageInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ExpandedServiceWithStageInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExpandedServiceWithStageInfo) Validate

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

Validate validates this expanded service with stage info

type ExpandedStage

type ExpandedStage struct {

	// last event context
	LastEventContext *EventContext `json:"lastEventContext,omitempty"`

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

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

ExpandedStage expanded stage

swagger:model ExpandedStage

func (*ExpandedStage) MarshalBinary

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

MarshalBinary interface implementation

func (*ExpandedStage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ExpandedStage) Validate

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

Validate validates this expanded stage

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 InverseServiceStageInfo

type InverseServiceStageInfo struct {

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

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

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

InverseServiceStageInfo inverse service stage info

swagger:model InverseServiceStageInfo

func (*InverseServiceStageInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*InverseServiceStageInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*InverseServiceStageInfo) Validate

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

Validate validates this inverse service stage info

type KeptnContextExtendedCE

type KeptnContextExtendedCE struct {

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

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

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

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 Project

type Project struct {

	// git auth credentials
	GitCredentials *apimodels.GitAuthCredentials `json:"gitCredentials,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

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

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

MarshalBinary interface implementation

func (*Projects) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Projects) Validate

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 in URL-encoded format
	// 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

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

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

MarshalBinary interface implementation

func (*Resources) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Resources) Validate

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

Validate validates this resources

type Service

type Service struct {

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

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 []*ExpandedService `json:"services"`

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

Services services

swagger:model Services

func (*Services) MarshalBinary

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

MarshalBinary interface implementation

func (*Services) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Services) Validate

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

Validate validates this services

type ServicesWithStageInfo

type ServicesWithStageInfo struct {

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

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

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

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

ServicesWithStageInfo services with stage info

swagger:model ServicesWithStageInfo

func (*ServicesWithStageInfo) MarshalBinary

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

MarshalBinary interface implementation

func (*ServicesWithStageInfo) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*ServicesWithStageInfo) Validate

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

Validate validates this services with stage info

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 Stage

type Stage struct {

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

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

Stage stage

swagger:model Stage

func (*Stage) MarshalBinary

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

MarshalBinary interface implementation

func (*Stage) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Stage) Validate

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

Validate validates this stage

type Stages

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 []*ExpandedStage `json:"stages"`

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

Stages stages

swagger:model Stages

func (*Stages) MarshalBinary

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

MarshalBinary interface implementation

func (*Stages) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Stages) Validate

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

Validate validates this stages

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

type Version

type Version struct {

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

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

	// version/git commit id of the resource
	Version string `json:"version,omitempty"`
}

Version version

swagger:model Version

func (*Version) MarshalBinary

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

MarshalBinary interface implementation

func (*Version) UnmarshalBinary

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

UnmarshalBinary interface implementation

func (*Version) Validate

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