models

package
v0.0.0-...-f5c220b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2019 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 Project

type Project struct {

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

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 Remediation

type Remediation struct {
	Name    string               `json:"name" yaml:"name"`
	Actions []*RemediationAction `json:"actions" yaml:"actions"`
}

Remediation represents a remediation

type RemediationAction

type RemediationAction struct {
	Action string `json:"action" yaml:"action"`
	Value  string `json:"value" yaml:"value"`
}

RemediationAction represents a remediation action

type Remediations

type Remediations struct {
	Remediations []*Remediation `json:"remediations" yaml:"remediations"`
}

Remediations contains remediation definitions for a service

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

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 ServiceIndicator

type ServiceIndicator struct {
	Metric      string                         `json:"metric" yaml:"metric"`
	Source      string                         `json:"source" yaml:"source"`
	Query       string                         `json:"query" yaml:"query"`
	QueryObject []*ServiceIndicatorQueryObject `json:"queryObject" yaml:"queryObject"`
}

ServiceIndicator describes a service indicator

type ServiceIndicatorQueryObject

type ServiceIndicatorQueryObject struct {
	Key   string `json:"key" yaml:"key"`
	Value string `json:"value" yaml:"value"`
}

type ServiceIndicators

type ServiceIndicators struct {
	Indicators []*ServiceIndicator `json:"indicators" yaml:"indicators"`
}

ServiceIndicators contains the definition of service indicators

type ServiceObjective

type ServiceObjective struct {
	Metric    string  `json:"metric" yaml:"metric"`
	Threshold float32 `json:"threshold" yaml:"threshold"`
	Timeframe string  `json:"timeframe" yaml:"timeframe"`
	Score     float32 `json:"score" yaml:"score"`
}

ServiceObjective describes a service objective

type ServiceObjectives

type ServiceObjectives struct {
	Pass       int                 `json:"pass" yaml:"pass"`
	Warning    int                 `json:"warning" yaml:"warning"`
	Objectives []*ServiceObjective `json:"objectives" yaml:"objectives"`
}

ServiceObjectives describes objectives for a 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 []*Service `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 Shipyard

type Shipyard struct {
	Stages []struct {
		Name                string `json:"name" yaml:"name"`
		DeploymentStrategy  string `json:"deployment_strategy" yaml:"deployment_strategy"`
		TestStrategy        string `json:"test_strategy,omitempty" yaml:"test_strategy"`
		RemediationStrategy string `json:"remediation_strategy,omitempty" yaml:"remediation_strategy"`
	} `json:"stages" yaml:"stages"`
}

Shipyard defines the name, deployment strategy and test strategy of each stage

type Stage

type Stage struct {

	// 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 []*Stage `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 Version

type Version struct {

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