Documentation
¶
Index ¶
- Constants
- func ErrUnknownKind(err error) error
- type ArtifactHub
- type DependencyHandler
- type EntitySummary
- type GitHub
- type HostFilter
- type Kubernetes
- type MeshModelHostsWithEntitySummary
- type MesheryHostSummaryDB
- type PolicyDefinition
- func (p *PolicyDefinition) Create(db *database.Handler, hostID uuid.UUID) (uuid.UUID, error)
- func (p *PolicyDefinition) GenerateID() (uuid.UUID, error)
- func (p *PolicyDefinition) GetEntityDetail() string
- func (p PolicyDefinition) GetID() uuid.UUID
- func (p PolicyDefinition) Type() entity.EntityType
- func (m *PolicyDefinition) UpdateStatus(db *database.Handler, status entity.EntityStatus) error
- func (p PolicyDefinition) WritePolicyDefinition(policyDirPath string) error
Constants ¶
View Source
const (
ErrUnknownKindCode = "meshkit-11254"
)
View Source
const MesheryAnnotationPrefix = "design.meshery.io"
Variables ¶
This section is empty.
Functions ¶
func ErrUnknownKind ¶
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 ¶
type DependencyHandler interface {
HandleDependents(comp component.ComponentDefinition, kc *kubernetes.Client, isDeploy, performUpgrade bool) (string, error)
String() string
}
func NewDependencyHandler ¶
func NewDependencyHandler(connectionKind string) (DependencyHandler, error)
type EntitySummary ¶
type GitHub ¶
type GitHub struct{}
func (GitHub) HandleDependents ¶
func (gh GitHub) HandleDependents(_ component.ComponentDefinition, _ *kubernetes.Client, _, _ bool) (summary string, err error)
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) GenerateID ¶
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 (p PolicyDefinition) Type() entity.EntityType
func (*PolicyDefinition) UpdateStatus ¶
func (m *PolicyDefinition) UpdateStatus(db *database.Handler, status entity.EntityStatus) error
func (PolicyDefinition) WritePolicyDefinition ¶
func (p PolicyDefinition) WritePolicyDefinition(policyDirPath string) error
Click to show internal directories.
Click to hide internal directories.