Documentation ¶
Overview ¶
Package core 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 ¶
- type CatalogData
- type CatalogDataCompatibility
- type CatalogDataContentClass
- type CatalogDataType
- type ClonePatternJSONBody
- type ClonePatternJSONRequestBody
- type DeletePatternModel
- type DeletePatternsJSONBody
- type DeletePatternsJSONRequestBody
- type DesignShare
- type GetPatternResourcesParams
- type GetPatternsParams
- type HandleShareJSONBody
- type HandleShareJSONRequestBody
- type Id
- type MeshplayPattern
- type MeshplayPatternDeleteRequestBody
- type MeshplayPatternPage
- type MeshplayPatternRequestBody
- type MeshplayPatternResource
- type MeshplayPatternResourcePage
- type Name
- type Namespace
- type OamType
- type Order
- type Page
- type PageSize
- type PatternFile
- type Search
- type Service
- type Type
- type UpsertPatternJSONBody
- type UpsertPatternJSONRequestBody
- type UpsertPatternResourceJSONRequestBody
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CatalogData ¶
type CatalogData struct { // 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 []CatalogDataCompatibility `json:"compatibility"` // ContentClass Published content is classifed by its support level. Content classes help you understand the origin and expected support level for each piece of content. It is important to note that the level of support may vary within each class, and you should exercise discretion when using community-contributed content. Content produced and fully supported by Meshplay maintainers. This represents the highest level of support and is considered the most reliable. Content produced by partners and verified by Meshplay maintainers. While not directly maintained by Meshplay, it has undergone a verification process to ensure quality and compatibility. Content produced and supported by the respective project or organization responsible for the specific technology. This class offers a level of support from the project maintainers themselves. Content produced and shared by Meshplay users. This includes a wide range of content, such as performance profiles, test results, filters, patterns, and applications. Community content may have varying levels of support and reliability. Class CatalogDataContentClass `json:"class,omitempty"` // 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 CatalogDataType `json:"type"` }
CatalogData defines model for catalog_data.
type CatalogDataCompatibility ¶
type CatalogDataCompatibility string
CatalogDataCompatibility defines model for CatalogData.Compatibility.
const (
Kubernetes CatalogDataCompatibility = "kubernetes"
)
Defines values for CatalogDataCompatibility.
type CatalogDataContentClass ¶
type CatalogDataContentClass string
CatalogDataContentClass Published content is classifed by its support level. Content classes help you understand the origin and expected support level for each piece of content. It is important to note that the level of support may vary within each class, and you should exercise discretion when using community-contributed content. Content produced and fully supported by Meshplay maintainers. This represents the highest level of support and is considered the most reliable. Content produced by partners and verified by Meshplay maintainers. While not directly maintained by Meshplay, it has undergone a verification process to ensure quality and compatibility. Content produced and supported by the respective project or organization responsible for the specific technology. This class offers a level of support from the project maintainers themselves. Content produced and shared by Meshplay users. This includes a wide range of content, such as performance profiles, test results, filters, patterns, and applications. Community content may have varying levels of support and reliability.
const ( Community CatalogDataContentClass = "community" Official CatalogDataContentClass = "official" Verified CatalogDataContentClass = "verified" )
Defines values for CatalogDataContentClass.
type CatalogDataType ¶
type CatalogDataType string
CatalogDataType Categorization of the type of design or operational flow depicted in this design.
const ( Deployment CatalogDataType = "Deployment" Observability CatalogDataType = "Observability" Resiliency CatalogDataType = "Resiliency" Scaling CatalogDataType = "Scaling" Security CatalogDataType = "Security" TrafficManagement CatalogDataType = "Traffic-management" Troubleshooting CatalogDataType = "Troubleshooting" Workloads CatalogDataType = "Workloads" )
Defines values for CatalogDataType.
type ClonePatternJSONBody ¶
type ClonePatternJSONBody struct {
Name string `json:"name"`
}
ClonePatternJSONBody defines parameters for ClonePattern.
type ClonePatternJSONRequestBody ¶
type ClonePatternJSONRequestBody ClonePatternJSONBody
ClonePatternJSONRequestBody defines body for ClonePattern for application/json ContentType.
type DeletePatternModel ¶
type DeletePatternModel struct { ID core.Id `db:"id" json:"id"` Name core.Text `json:"name,omitempty"` }
DeletePatternModel defines model for deletePatternModel.
type DeletePatternsJSONBody ¶
type DeletePatternsJSONBody struct {
Patterns *[]DeletePatternModel `json:"patterns,omitempty"`
}
DeletePatternsJSONBody defines parameters for DeletePatterns.
type DeletePatternsJSONRequestBody ¶
type DeletePatternsJSONRequestBody DeletePatternsJSONBody
DeletePatternsJSONRequestBody defines body for DeletePatterns for application/json ContentType.
type GetPatternResourcesParams ¶
type GetPatternResourcesParams struct { // Page Get reponses by page Page *Page `form:"page,omitempty" json:"page,omitempty"` // PageSize Get reponses by pageSize PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"` // Search Get responses that match search param value Search *Search `form:"search,omitempty" json:"search,omitempty"` // Order Get ordered responses Order *Order `form:"order,omitempty" json:"order,omitempty"` // Namespace Namespace Namespace *Namespace `form:"namespace,omitempty" json:"namespace,omitempty"` // Type Type Type *Type `form:"type,omitempty" json:"type,omitempty"` // OamType OAM type OamType *OamType `form:"oamType,omitempty" json:"oamType,omitempty"` // Name Name of the resource Name *Name `form:"name,omitempty" json:"name,omitempty"` }
GetPatternResourcesParams defines parameters for GetPatternResources.
type GetPatternsParams ¶
type GetPatternsParams struct { // Page Get reponses by page Page *Page `form:"page,omitempty" json:"page,omitempty"` // PageSize Get reponses by pageSize PageSize *PageSize `form:"page_size,omitempty" json:"page_size,omitempty"` // Search Get responses that match search param value Search *Search `form:"search,omitempty" json:"search,omitempty"` // Order Get ordered responses Order *Order `form:"order,omitempty" json:"order,omitempty"` }
GetPatternsParams defines parameters for GetPatterns.
type HandleShareJSONBody ¶
type HandleShareJSONBody struct {}
HandleShareJSONBody defines parameters for HandleShare.
type HandleShareJSONRequestBody ¶
type HandleShareJSONRequestBody HandleShareJSONBody
HandleShareJSONRequestBody defines body for HandleShare for application/json ContentType.
type MeshplayPattern ¶
type MeshplayPattern struct { CatalogData *CatalogData `json:"catalog_data,omitempty"` CreatedAt core.Time `json:"created_at,omitempty"` ID core.Id `db:"id" json:"id"` Location core.MapObject `json:"location,omitempty"` Name core.Text `json:"name,omitempty"` // PatternFile Schema for design in v1Beta1 PatternFile *PatternFile `json:"pattern_file,omitempty"` UpdatedAt core.Time `json:"updated_at,omitempty"` UserID core.Id `db:"user_id" json:"user_id"` Visibility core.Text `json:"visibility,omitempty"` }
MeshplayPattern defines model for meshplayPattern.
type MeshplayPatternDeleteRequestBody ¶
type MeshplayPatternDeleteRequestBody struct {
Patterns *[]DeletePatternModel `json:"patterns,omitempty"`
}
MeshplayPatternDeleteRequestBody defines model for meshplayPatternDeleteRequestBody.
type MeshplayPatternPage ¶
type MeshplayPatternPage struct { Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` Patterns *[]MeshplayPattern `json:"patterns,omitempty"` ResultType string `json:"resultType,omitempty"` TotalCount int `json:"total_count,omitempty"` }
MeshplayPatternPage defines model for meshplayPatternPage.
type MeshplayPatternRequestBody ¶
type MeshplayPatternRequestBody struct { Path core.Text `json:"path,omitempty"` PatternData *MeshplayPattern `json:"pattern_data,omitempty"` Save *bool `json:"save,omitempty"` Url core.Text `json:"url,omitempty"` }
MeshplayPatternRequestBody defines model for meshplayPatternRequestBody.
type MeshplayPatternResource ¶
type MeshplayPatternResource struct { CreatedAt core.Time `json:"created_at,omitempty"` Deleted *bool `json:"deleted,omitempty"` ID core.Id `db:"id" json:"id"` Name core.Text `json:"name,omitempty"` Namepace core.Text `json:"namepace,omitempty"` OamType core.Text `json:"oam_type,omitempty"` Type core.Text `json:"type,omitempty"` UpdatedAt core.Time `json:"updated_at,omitempty"` UserID core.Id `db:"user_id" json:"user_id"` }
MeshplayPatternResource defines model for meshplayPatternResource.
type MeshplayPatternResourcePage ¶
type MeshplayPatternResourcePage struct { Page int `json:"page,omitempty"` PageSize int `json:"page_size,omitempty"` Resources *[]MeshplayPatternResource `json:"resources,omitempty"` ResultType string `json:"resultType,omitempty"` TotalCount int `json:"total_count,omitempty"` }
MeshplayPatternResourcePage defines model for meshplayPatternResourcePage.
type PatternFile ¶
type PatternFile struct { // Name Name of the design Name string `json:"name"` PatternID string `yaml:"patternID,omitempty" json:"patternID,omitempty"` // Version Version of the design Version string `json:"version,omitempty"` Vars map[string]interface{} `yaml:"vars,omitempty" json:"vars,omitempty"` // Services Map of component IDs/names to their corresponding component declarations Services map[string]*Service `json:"services"` }
Design Schema for design in v1Beta1
func (*PatternFile) Hub ¶
func (p *PatternFile) Hub()
type Service ¶
type Service struct { Annotations map[string]string `json:"annotations,omitempty"` ApiVersion string `json:"apiVersion,omitempty" yaml:"apiVersion"` DependsOn []string `json:"dependsOn,omitempty" yaml:"dependsOn"` Id *uuid.UUID `json:"id,omitempty"` IsAnnotation bool `json:"isAnnotation,omitempty" yaml:"isAnnotation"` 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"` }
type UpsertPatternJSONBody ¶
type UpsertPatternJSONBody struct { Path core.Text `json:"path,omitempty"` PatternData *MeshplayPattern `json:"pattern_data,omitempty"` Save *bool `json:"save,omitempty"` Url core.Text `json:"url,omitempty"` }
UpsertPatternJSONBody defines parameters for UpsertPattern.
type UpsertPatternJSONRequestBody ¶
type UpsertPatternJSONRequestBody UpsertPatternJSONBody
UpsertPatternJSONRequestBody defines body for UpsertPattern for application/json ContentType.
type UpsertPatternResourceJSONRequestBody ¶
type UpsertPatternResourceJSONRequestBody = MeshplayPatternResource
UpsertPatternResourceJSONRequestBody defines body for UpsertPatternResource for application/json ContentType.