patterns

package
v0.7.8 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package patterns provides primitives to interact with the openapi HTTP API.

Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CatalogData

type CatalogData struct {
	// Class Published content belongs to one of the specified class denoting its support level.
	Class MesheryPatternCatalogDataClass `json:"class,omitempty"`

	// Compatibility One or more models associated with this catalog item. For designs, a list of one or more models implicated by components within the design. For models, this is self-referential.
	Compatibility []MesheryPatternCatalogDataCompatibility `json:"compatibility"`

	// PatternCaveats Specific stipulations to consider and known behaviors to be aware of when using this design.
	PatternCaveats string `json:"pattern_caveats"`

	// PatternInfo Purpose of the design along with its intended and unintended uses.
	PatternInfo string `json:"pattern_info"`

	// PublishedVersion Tracks the specific content version that has been made available in the Catalog.
	PublishedVersion string `json:"publishedVersion,omitempty"`

	// SnapshotURL Contains reference to the dark and light mode snapshots of the design.
	SnapshotURL []string `json:"snapshotURL,omitempty"`

	// Type Categorization of the type of design or operational flow depicted in this design.
	Type MesheryPatternCatalogDataType `json:"type"`
}

type DeletePatternModel

type DeletePatternModel struct {
	ID   common.ID   `db:"id" json:"id"`
	Name common.Text `json:"name,omitempty"`
}

DeletePatternModel defines model for deletePatternModel.

type DesignShare

type DesignShare struct {
	ContentType string        `json:"content_type"`
	Emails      common.Emails `json:"emails"`
	ID          common.ID     `db:"id" json:"id"`
	Share       bool          `json:"share"`
}

DesignShare defines model for designShare.

type MesheryPattern

type MesheryPattern struct {
	CatalogData CatalogData      `json:"catalog_data,omitempty"`
	CreatedAt   common.Time      `json:"created_at,omitempty"`
	ID          common.ID        `db:"id" json:"id"`
	Location    common.MapObject `json:"location,omitempty"`
	Name        common.Text      `json:"name,omitempty"`

	PatternFile PatternFile `json:"pattern_file,omitempty"`
	UpdatedAt   common.Time `json:"updated_at,omitempty"`
	UserID      common.ID   `db:"user_id" json:"user_id"`
	Visibility  common.Text `json:"visibility,omitempty"`
}

MesheryPattern defines model for mesheryPattern.

type MesheryPatternCatalogDataClass

type MesheryPatternCatalogDataClass string

MesheryPatternCatalogDataClass Published content belongs to one of the specified class denoting its support level.

const (
	Community MesheryPatternCatalogDataClass = "community"
	Official  MesheryPatternCatalogDataClass = "official"
	Project   MesheryPatternCatalogDataClass = "project"
	Verified  MesheryPatternCatalogDataClass = "verified"
)

Defines values for MesheryPatternCatalogDataClass.

type MesheryPatternCatalogDataCompatibility

type MesheryPatternCatalogDataCompatibility string

MesheryPatternCatalogDataCompatibility defines model for MesheryPattern.CatalogData.Compatibility.

const (
	Kubernetes MesheryPatternCatalogDataCompatibility = "kubernetes"
)

Defines values for MesheryPatternCatalogDataCompatibility.

type MesheryPatternCatalogDataType

type MesheryPatternCatalogDataType string

MesheryPatternCatalogDataType Categorization of the type of design or operational flow depicted in this design.

const (
	Deployment        MesheryPatternCatalogDataType = "Deployment"
	Observability     MesheryPatternCatalogDataType = "Observability"
	Resiliency        MesheryPatternCatalogDataType = "Resiliency"
	Scaling           MesheryPatternCatalogDataType = "Scaling"
	Security          MesheryPatternCatalogDataType = "Security"
	TrafficManagement MesheryPatternCatalogDataType = "Traffic-management"
	Troubleshooting   MesheryPatternCatalogDataType = "Troubleshooting"
	Workloads         MesheryPatternCatalogDataType = "Workloads"
)

Defines values for MesheryPatternCatalogDataType.

type MesheryPatternDeleteRequestBody

type MesheryPatternDeleteRequestBody struct {
	Patterns []DeletePatternModel `json:"patterns,omitempty"`
}

MesheryPatternDeleteRequestBody defines model for mesheryPatternDeleteRequestBody.

type MesheryPatternPage

type MesheryPatternPage struct {
	Page       int              `json:"page,omitempty"`
	PageSize   int              `json:"page_size,omitempty"`
	Patterns   []MesheryPattern `json:"patterns,omitempty"`
	ResultType string           `json:"resultType,omitempty"`
	TotalCount int              `json:"total_count,omitempty"`
}

MesheryPatternPage defines model for mesheryPatternPage.

type MesheryPatternRequestBody

type MesheryPatternRequestBody struct {
	Path        common.Text     `json:"path,omitempty"`
	PatternData MesheryPattern  `json:"pattern_data,omitempty"`
	Save        bool            `json:"save,omitempty"`
	Url         common.Endpoint `json:"url,omitempty"`
}

MesheryPatternRequestBody defines model for mesheryPatternRequestBody.

type MesheryPatternResource

type MesheryPatternResource struct {
	CreatedAt common.Time `json:"created_at,omitempty"`
	Deleted   bool        `json:"deleted,omitempty"`
	ID        common.ID   `db:"id" json:"id"`
	Name      common.Text `json:"name,omitempty"`
	Namepace  common.Text `json:"namepace,omitempty"`
	OamType   common.Text `json:"oam_type,omitempty"`
	Type      common.Text `json:"type,omitempty"`
	UpdatedAt common.Time `json:"updated_at,omitempty"`
	UserID    common.ID   `db:"user_id" json:"user_id"`
}

MesheryPatternResource defines model for mesheryPatternResource.

type MesheryPatternResourcePage

type MesheryPatternResourcePage struct {
	Page       int                      `json:"page,omitempty"`
	PageSize   int                      `json:"page_size,omitempty"`
	Resources  []MesheryPatternResource `json:"resources,omitempty"`
	ResultType string                   `json:"resultType,omitempty"`
	TotalCount int                      `json:"total_count,omitempty"`
}

MesheryPatternResourcePage defines model for mesheryPatternResourcePage.

type PatternFile

type PatternFile struct {
	// Name Name of the design
	Name string `json:"name"`

	// Version Version of the design
	Version string `json:"version,omitempty"`

	// SchemaVersion Specifies the version of the schema to which the design  conforms.
	SchemaVersion string `json:"schemaVersion,omitempty"`

	// Services Map of component IDs/names to their corresponding component declarations
	Services map[string]*Service `json:"services"`
}

type Service

type Service struct {
	Annotations  map[string]string      `json:"annotations,omitempty"`
	ApiVersion   string                 `json:"apiVersion,omitempty"`
	DependsOn    []string               `json:"dependsOn,omitempty"`
	Id           *common.ID             `json:"id,omitempty"`
	IsAnnotation bool                   `json:"isAnnotation,omitempty"`
	Labels       map[string]string      `json:"labels,omitempty"`
	Model        string                 `json:"model,omitempty"`
	Name         string                 `json:"name,omitempty"`
	Namespace    string                 `json:"namespace,omitempty"`
	Settings     map[string]interface{} `json:"settings,omitempty"`
	Traits       map[string]interface{} `json:"traits,omitempty"`
	Type         string                 `json:"type,omitempty"`
	Version      string                 `json:"version,omitempty"`
}

Jump to

Keyboard shortcuts

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