Documentation
¶
Overview ¶
Package v1alpha3 provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 .
Index ¶
- type Configuration
- type MatchDefinition
- type ModelDefinition
- type PatchDefinition
- type RelationshipConfiguration
- type RelationshipDefinition
- type RelationshipDefinitionKind
- type RelationshipDefinitionModelStatus
- type RelationshipDefinitionSelectorsAllowFromModelStatus
- type RelationshipDefinitionSelectorsAllowFromPatchPatchStrategy
- type RelationshipDefinitionSelectorsAllowToModelStatus
- type RelationshipDefinitionSelectorsAllowToPatchPatchStrategy
- type RelationshipDefinitionSelectorsDenyFromModelStatus
- type RelationshipDefinitionSelectorsDenyFromPatchPatchStrategy
- type RelationshipDefinitionSelectorsDenyToModelStatus
- type RelationshipDefinitionSelectorsDenyToPatchPatchStrategy
- type RelationshipDefinition_Model_Metadata
- func (a RelationshipDefinition_Model_Metadata) Get(fieldName string) (value interface{}, found bool)
- func (a RelationshipDefinition_Model_Metadata) MarshalJSON() ([]byte, error)
- func (a *RelationshipDefinition_Model_Metadata) Set(fieldName string, value interface{})
- func (a *RelationshipDefinition_Model_Metadata) UnmarshalJSON(b []byte) error
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Configuration ¶
type Configuration struct { From []RelationshipConfiguration `json:"from" yaml:"from"` To []RelationshipConfiguration `json:"to" yaml:"to"` }
type MatchDefinition ¶
type MatchDefinition struct { // Id A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas. Id *uuid.UUID `json:"id" yaml:"id"` // Kind Optional property which defines paths which should be matched with 'self'. Here 'kind' is valid Component 'kind' belonging to the above specifed model. eg: If model is Kubernetes, valid 'kind' are 'Pod', 'Secret'. If the value for all paths of 'self' & 'kind' along with the value of all paths inside 'to.match.self' & 'to.match.kind are equal then the component with 'kind' act as an binded component. eg: ClusterRole, ClusterRoleBinding and ServiceAccount. If the paths for ClusterRole & ClusterRoleBinding and ServiceAccount & ClusterRoleBinding are equal then ClusterRoleBinding acts as an binding. Make sure the 'kind' value in 'from' and 'to' should be equal. Kind *[]string `json:"kind,omitempty"` // Self Defines paths which should be matched with the 'kind' property. Self *[]string `json:"self,omitempty"` }
type ModelDefinition ¶
type ModelDefinition struct { // Category Category of the model. Category string `json:"category" yaml:"category"` // Description Description of the model. Description *string `json:"description" yaml:"description"` // DisplayName Human-readable name for the model. DisplayName *string `json:"displayName" yaml:"displayName"` // Metadata Metadata containing additional information associated with the model. Metadata *RelationshipDefinition_Model_Metadata `json:"metadata,omitempty"` // Model Registrant-defined data associated with the model. Properties pertain to the software being managed (e.g. Kubernetes v1.31) Model *struct { // Version Version of the model as defined by the registrant. Version string `json:"version" yaml:"version"` } `json:"model,omitempty"` // Name The unique name for the model within the scope of a registrant. Name string `json:"name" yaml:"name"` Registrant map[string]interface{} `json:"registrant" yaml:"registrant"` // SchemaVersion Specifies the version of the schema used for the definition. SchemaVersion *string `json:"schemaVersion" yaml:"schemaVersion"` // Status Status of model, including: // - duplicate: this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the 'duplicate' status. // - maintenance: model is unavailable for a period of time. // - enabled: model is available for use for all users of this Meshery Server. // - ignored: model is unavailable for use for all users of this Meshery Server. Status *RelationshipDefinitionModelStatus `json:"status" yaml:"status"` // SubCategory Sub-category of the model. SubCategory *string `json:"subCategory" yaml:"subCategory"` // Version Version of the model definition. Version string `json:"version" yaml:"version"` }
type PatchDefinition ¶
type PatchDefinition struct { // MutatorRef JSON ref to value from where patch should be applied. MutatorRef *[][]string `json:"mutatorRef,omitempty" yaml:"mutatorRef"` PatchStrategy *RelationshipDefinitionSelectorsDenyFromPatchPatchStrategy `json:"patchStrategy" yaml:"patchStrategy"` }
type RelationshipConfiguration ¶
type RelationshipConfiguration struct { // Id A Universally Unique Identifier used to uniquely identify entites in Meshery. The UUID core defintion is used across different schemas. Id *uuid.UUID `json:"id" yaml:"id"` Kind *string `json:"kind" yaml:"kind"` Match *MatchDefinition `json:"match,omitempty" yaml:"match"` // Model Name of the model implicated by this selector. Learn more at https://docs.meshery.io/concepts/models Model ModelDefinition `json:"model,omitempty" yaml:"model"` Patch *PatchDefinition `json:"patch,omitempty" yaml:"patch"` }
type RelationshipDefinition ¶
type RelationshipDefinition struct { // EvaluationQuery Optional. Assigns the policy to be used for the evaluation of the relationship. Deprecation Notice: In the future, this property is either to be removed or to it is to be an array of optional policy $refs. EvaluationQuery *string `json:"evaluationQuery" yaml:"evaluationQuery"` // Kind Kind of the Relationship. Learn more about relationships - https://docs.meshery.io/concepts/logical/relationships. Kind RelationshipDefinitionKind `json:"kind" yaml:"kind"` // Metadata Metadata contains additional information associated with the Relationship. Metadata *struct { // Description Characteristization of the meaning of the relationship and its relevance to both Meshery and entities under management. Description *string `json:"description" yaml:"description"` } `json:"metadata,omitempty"` // Model Name of the model in which this relationship is packaged. Model ModelDefinition `json:"model"` // SchemaVersion Specifies the version of the schema used for the relationship definition. SchemaVersion string `json:"schemaVersion" yaml:"schemaVersion"` // Selectors Selectors are organized as an array, with each item containing a distinct set of selectors that share a common functionality. This structure allows for flexibility in defining relationships, even when different components are involved. Selectors []Selector `json:"selectors,omitempty" yaml:"selectors"` // SubType Most granular unit of relationship classification. The combination of Kind, Type and SubType together uniquely identify a Relationship. SubType string `json:"subType" yaml:"subType"` // Type Classification of relationships. Used to group relationships similar in nature. Type string `json:"type" yaml:"type"` // Version Specifies the version of the relationship definition. Version string `json:"version" yaml:"version"` }
RelationshipDefinition Relationships define the nature of interaction between interconnected components in Meshery. The combination of relationship properties kind, type, and subtype characterize various genealogical relations among and between components. Relationships have selectors, selector sets, metadata, and optional parameters. Learn more at https://docs.meshery.io/concepts/logical/relationships.
type RelationshipDefinitionKind ¶
type RelationshipDefinitionKind string
RelationshipDefinitionKind Kind of the Relationship. Learn more about relationships - https://docs.meshery.io/concepts/logical/relationships.
const ( Edge RelationshipDefinitionKind = "Edge" Hierarchical RelationshipDefinitionKind = "Hierarchical" Sibling RelationshipDefinitionKind = "Sibling" )
Defines values for RelationshipDefinitionKind.
type RelationshipDefinitionModelStatus ¶
type RelationshipDefinitionModelStatus string
RelationshipDefinitionModelStatus Status of model, including: - duplicate: this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the 'duplicate' status. - maintenance: model is unavailable for a period of time. - enabled: model is available for use for all users of this Meshery Server. - ignored: model is unavailable for use for all users of this Meshery Server.
const ( RelationshipDefinitionModelStatusDuplicate RelationshipDefinitionModelStatus = "duplicate" RelationshipDefinitionModelStatusEnabled RelationshipDefinitionModelStatus = "enabled" RelationshipDefinitionModelStatusIgnored RelationshipDefinitionModelStatus = "ignored" )
Defines values for RelationshipDefinitionModelStatus.
type RelationshipDefinitionSelectorsAllowFromModelStatus ¶
type RelationshipDefinitionSelectorsAllowFromModelStatus string
RelationshipDefinitionSelectorsAllowFromModelStatus Status of model, including: - duplicate: this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the 'duplicate' status. - maintenance: model is unavailable for a period of time. - enabled: model is available for use for all users of this Meshery Server. - ignored: model is unavailable for use for all users of this Meshery Server.
const ( RelationshipDefinitionSelectorsAllowFromModelStatusDuplicate RelationshipDefinitionSelectorsAllowFromModelStatus = "duplicate" RelationshipDefinitionSelectorsAllowFromModelStatusEnabled RelationshipDefinitionSelectorsAllowFromModelStatus = "enabled" RelationshipDefinitionSelectorsAllowFromModelStatusIgnored RelationshipDefinitionSelectorsAllowFromModelStatus = "ignored" )
Defines values for RelationshipDefinitionSelectorsAllowFromModelStatus.
type RelationshipDefinitionSelectorsAllowFromPatchPatchStrategy ¶
type RelationshipDefinitionSelectorsAllowFromPatchPatchStrategy string
RelationshipDefinitionSelectorsAllowFromPatchPatchStrategy defines model for RelationshipDefinition.Selectors.Allow.From.Patch.PatchStrategy.
const (
RelationshipDefinitionSelectorsAllowFromPatchPatchStrategyReplace RelationshipDefinitionSelectorsAllowFromPatchPatchStrategy = "replace"
)
Defines values for RelationshipDefinitionSelectorsAllowFromPatchPatchStrategy.
type RelationshipDefinitionSelectorsAllowToModelStatus ¶
type RelationshipDefinitionSelectorsAllowToModelStatus string
RelationshipDefinitionSelectorsAllowToModelStatus Status of model, including: - duplicate: this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the 'duplicate' status. - maintenance: model is unavailable for a period of time. - enabled: model is available for use for all users of this Meshery Server. - ignored: model is unavailable for use for all users of this Meshery Server.
const ( RelationshipDefinitionSelectorsAllowToModelStatusDuplicate RelationshipDefinitionSelectorsAllowToModelStatus = "duplicate" RelationshipDefinitionSelectorsAllowToModelStatusEnabled RelationshipDefinitionSelectorsAllowToModelStatus = "enabled" RelationshipDefinitionSelectorsAllowToModelStatusIgnored RelationshipDefinitionSelectorsAllowToModelStatus = "ignored" )
Defines values for RelationshipDefinitionSelectorsAllowToModelStatus.
type RelationshipDefinitionSelectorsAllowToPatchPatchStrategy ¶
type RelationshipDefinitionSelectorsAllowToPatchPatchStrategy string
RelationshipDefinitionSelectorsAllowToPatchPatchStrategy defines model for RelationshipDefinition.Selectors.Allow.To.Patch.PatchStrategy.
const (
RelationshipDefinitionSelectorsAllowToPatchPatchStrategyReplace RelationshipDefinitionSelectorsAllowToPatchPatchStrategy = "replace"
)
Defines values for RelationshipDefinitionSelectorsAllowToPatchPatchStrategy.
type RelationshipDefinitionSelectorsDenyFromModelStatus ¶
type RelationshipDefinitionSelectorsDenyFromModelStatus string
RelationshipDefinitionSelectorsDenyFromModelStatus Status of model, including: - duplicate: this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the 'duplicate' status. - maintenance: model is unavailable for a period of time. - enabled: model is available for use for all users of this Meshery Server. - ignored: model is unavailable for use for all users of this Meshery Server.
const ( RelationshipDefinitionSelectorsDenyFromModelStatusDuplicate RelationshipDefinitionSelectorsDenyFromModelStatus = "duplicate" RelationshipDefinitionSelectorsDenyFromModelStatusEnabled RelationshipDefinitionSelectorsDenyFromModelStatus = "enabled" RelationshipDefinitionSelectorsDenyFromModelStatusIgnored RelationshipDefinitionSelectorsDenyFromModelStatus = "ignored" )
Defines values for RelationshipDefinitionSelectorsDenyFromModelStatus.
type RelationshipDefinitionSelectorsDenyFromPatchPatchStrategy ¶
type RelationshipDefinitionSelectorsDenyFromPatchPatchStrategy string
RelationshipDefinitionSelectorsDenyFromPatchPatchStrategy defines model for RelationshipDefinition.Selectors.Deny.From.Patch.PatchStrategy.
const (
RelationshipDefinitionSelectorsDenyFromPatchPatchStrategyReplace RelationshipDefinitionSelectorsDenyFromPatchPatchStrategy = "replace"
)
Defines values for RelationshipDefinitionSelectorsDenyFromPatchPatchStrategy.
type RelationshipDefinitionSelectorsDenyToModelStatus ¶
type RelationshipDefinitionSelectorsDenyToModelStatus string
RelationshipDefinitionSelectorsDenyToModelStatus Status of model, including: - duplicate: this component is a duplicate of another. The component that is to be the canonical reference and that is duplicated by other components should not be assigned the 'duplicate' status. - maintenance: model is unavailable for a period of time. - enabled: model is available for use for all users of this Meshery Server. - ignored: model is unavailable for use for all users of this Meshery Server.
const ( Duplicate RelationshipDefinitionSelectorsDenyToModelStatus = "duplicate" Enabled RelationshipDefinitionSelectorsDenyToModelStatus = "enabled" Ignored RelationshipDefinitionSelectorsDenyToModelStatus = "ignored" )
Defines values for RelationshipDefinitionSelectorsDenyToModelStatus.
type RelationshipDefinitionSelectorsDenyToPatchPatchStrategy ¶
type RelationshipDefinitionSelectorsDenyToPatchPatchStrategy string
RelationshipDefinitionSelectorsDenyToPatchPatchStrategy defines model for RelationshipDefinition.Selectors.Deny.To.Patch.PatchStrategy.
const (
RelationshipDefinitionSelectorsDenyToPatchPatchStrategyReplace RelationshipDefinitionSelectorsDenyToPatchPatchStrategy = "replace"
)
Defines values for RelationshipDefinitionSelectorsDenyToPatchPatchStrategy.
type RelationshipDefinition_Model_Metadata ¶
type RelationshipDefinition_Model_Metadata struct { // IsAnnotation Indicates whether the model and its entities should be treated as deployable entities or as logical representations. IsAnnotation *bool `json:"isAnnotation" yaml:"isAnnotation"` // PrimaryColor Primary color associated with the model. PrimaryColor *string `json:"primaryColor" yaml:"primaryColor"` // SecondaryColor Secondary color associated with the model. SecondaryColor *string `json:"secondaryColor" yaml:"secondaryColor"` // SvgColor SVG representation of the model in colored format. SvgColor *string `json:"svgColor" yaml:"svgColor"` // SvgComplete SVG representation of the complete model. SvgComplete *string `json:"svgComplete" yaml:"svgComplete"` // SvgWhite SVG representation of the model in white color. SvgWhite *string `json:"svgWhite" yaml:"svgWhite"` AdditionalProperties map[string]interface{} `json:"-"` }
RelationshipDefinition_Model_Metadata Metadata containing additional information associated with the model.
func (RelationshipDefinition_Model_Metadata) Get ¶
func (a RelationshipDefinition_Model_Metadata) Get(fieldName string) (value interface{}, found bool)
Getter for additional properties for RelationshipDefinition_Model_Metadata. Returns the specified element and whether it was found
func (RelationshipDefinition_Model_Metadata) MarshalJSON ¶
func (a RelationshipDefinition_Model_Metadata) MarshalJSON() ([]byte, error)
Override default JSON handling for RelationshipDefinition_Model_Metadata to handle AdditionalProperties
func (*RelationshipDefinition_Model_Metadata) Set ¶
func (a *RelationshipDefinition_Model_Metadata) Set(fieldName string, value interface{})
Setter for additional properties for RelationshipDefinition_Model_Metadata
func (*RelationshipDefinition_Model_Metadata) UnmarshalJSON ¶
func (a *RelationshipDefinition_Model_Metadata) UnmarshalJSON(b []byte) error
Override default JSON handling for RelationshipDefinition_Model_Metadata to handle AdditionalProperties
type Selector ¶
type Selector struct { // Allow Selectors used to define relationships which are allowed. Allow Configuration `json:"allow" yaml:"allow"` // Deny Optional selectors used to define relationships which should not be created / is restricted. Deny Configuration `json:"deny,omitempty" yaml:"deny"` }