v1beta1

package
v0.7.78 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2024 License: Apache-2.0 Imports: 13 Imported by: 7

Documentation

Index

Constants

View Source
const (
	ErrUnknownKindCode = ""
)
View Source
const MesheryAnnotationPrefix = "design.meshery.io"

Variables

This section is empty.

Functions

func ErrUnknownKind added in v0.7.56

func ErrUnknownKind(err error) error

Types

type ArtifactHub

type ArtifactHub struct{}

func (ArtifactHub) HandleDependents

func (ah ArtifactHub) HandleDependents(comp component.ComponentDefinition, kc *kubernetes.Client, isDeploy, performUpgrade bool) (summary string, err error)

func (ArtifactHub) String

func (ah ArtifactHub) String() string

type DependencyHandler added in v0.7.56

type DependencyHandler interface {
	HandleDependents(comp component.ComponentDefinition, kc *kubernetes.Client, isDeploy, performUpgrade bool) (string, error)
	String() string
}

func NewDependencyHandler added in v0.7.56

func NewDependencyHandler(connectionKind string) (DependencyHandler, error)

type EntitySummary

type EntitySummary struct {
	Models        int64 `json:"models"`
	Components    int64 `json:"components"`
	Relationships int64 `json:"relationships"`
	Policies      int64 `json:"policies"`
}

type HostFilter

type HostFilter struct {
	Name        string
	Greedy      bool //when set to true - instead of an exact match, name will be prefix matched
	Trim        bool //when set to true - the schema is not returned
	DisplayName string
	Version     string
	Sort        string //asc or desc. Default behavior is asc
	OrderOn     string
	Limit       int //If 0 or  unspecified then all records are returned and limit is not used
	Offset      int
}

type Kubernetes

type Kubernetes struct{}

func (Kubernetes) HandleDependents

func (k Kubernetes) HandleDependents(_ component.ComponentDefinition, _ *kubernetes.Client, _, _ bool) (summary string, err error)

func (Kubernetes) String

func (k Kubernetes) String() string

type MeshModelHostsWithEntitySummary

type MeshModelHostsWithEntitySummary struct {
	connection.Connection
	Summary EntitySummary `json:"summary"`
}

type MesheryHostSummaryDB

type MesheryHostSummaryDB struct {
	connection.Connection
	Models        int64 `json:"-" gorm:"models"`
	Components    int64 `json:"-" gorm:"components"`
	Relationships int64 `json:"-" gorm:"relationships"`
	Policies      int64 `json:"-" gorm:"policies"`
}

type PolicyDefinition

type PolicyDefinition struct {
	ID         uuid.UUID               `json:"-"`
	Kind       string                  `json:"kind,omitempty" yaml:"kind"`
	Version    string                  `json:"version,omitempty" yaml:"version"`
	ModelID    uuid.UUID               `json:"-" gorm:"column:modelID"`
	Model      v1beta1.ModelDefinition `json:"model"`
	SubType    string                  `json:"subType" yaml:"subType"`
	Expression map[string]interface{}  `json:"expression" yaml:"expression" gorm:"type:bytes;serializer:json"`
	CreatedAt  time.Time               `json:"-"`
	UpdatedAt  time.Time               `json:"-"`
}

swagger:response PolicyDefinition

func (*PolicyDefinition) Create

func (p *PolicyDefinition) Create(db *database.Handler, hostID uuid.UUID) (uuid.UUID, error)

func (*PolicyDefinition) GenerateID added in v0.7.34

func (p *PolicyDefinition) GenerateID() (uuid.UUID, error)

func (*PolicyDefinition) GetEntityDetail

func (p *PolicyDefinition) GetEntityDetail() string

func (PolicyDefinition) GetID

func (p PolicyDefinition) GetID() uuid.UUID

func (PolicyDefinition) Type

func (*PolicyDefinition) UpdateStatus

func (m *PolicyDefinition) UpdateStatus(db *database.Handler, status entity.EntityStatus) error

func (PolicyDefinition) WritePolicyDefinition

func (p PolicyDefinition) WritePolicyDefinition(policyDirPath string) error

Jump to

Keyboard shortcuts

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