solution

package
v0.22.12-209-open Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2023 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Overview

Copyright 2022 Cisco Systems, Inc.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewSubCmd

func NewSubCmd() *cobra.Command

Types

type ComponentDef

type ComponentDef struct {
	Type        string `json:"type,omitempty"`
	ObjectsFile string `json:"objectsFile,omitempty"`
}

type ErrorItem

type ErrorItem struct {
	Error  string `json:"error"`
	Source string `json:"source"`
}

type Errors

type Errors struct {
	Items []ErrorItem `json:"items"`
	Total int         `json:"total"`
}

type FmmAssociationTypesTypeDef

type FmmAssociationTypesTypeDef struct {
	Aggregates_of []string `json:"common:aggregates_of,omitempty"`
	Consists_of   []string `json:"common:consists_of,omitempty"`
	Is_a          []string `json:"common:is_a,omitempty"`
	Has           []string `json:"common:has,omitempty"`
	Relates_to    []string `json:"common:relates_to,omitempty"`
	Uses          []string `json:"common:uses,omitempty"`
}

type FmmAttributeDefinitionsTypeDef

type FmmAttributeDefinitionsTypeDef struct {
	Required   []string                        `json:"required"`
	Optimized  []string                        `json:"optimized"`
	Attributes map[string]*FmmAttributeTypeDef `json:"attributes"`
}

type FmmAttributeTypeDef

type FmmAttributeTypeDef struct {
	Type        string `json:"type"`
	Description string `json:"description,omitempty"`
}

type FmmEntity

type FmmEntity struct {
	*FmmTypeDef
	LifecycleConfiguration FmmLifecycleConfigTypeDef       `json:"lifecycleConfiguration"`
	AttributeDefinitions   *FmmAttributeDefinitionsTypeDef `json:"attributeDefinitions"`
	MetricTypes            []string                        `json:"metricTypes"`
	EventTypes             []string                        `json:"eventTypes"`
	AssociationTypes       *FmmAssociationTypesTypeDef     `json:"associationTypes"`
}

type FmmLifecycleConfigTypeDef

type FmmLifecycleConfigTypeDef struct {
	PurgeTtlInMinutes     int64 `json:"purgeTtlInMinutes"`
	RetentionTtlInMinutes int64 `json:"retentionTtlInMinutes"`
}

type FmmMetric

type FmmMetric struct {
	*FmmTypeDef
	Category               FmmMetricCategory    `json:"category"`
	ContentType            FmmMetricContentType `json:"contentType"`
	AggregationTemporality string               `json:"aggregationTemporality"`
	IsMonotonic            bool                 `json:"isMonotonic"`
	Type                   FmmMetricType        `json:"type"`
	Unit                   string               `json:"unit"`
}

type FmmMetricCategory

type FmmMetricCategory string
const (
	Category_Sum     FmmMetricCategory = "sum"
	Category_Average FmmMetricCategory = "average"
	Category_Rate    FmmMetricCategory = "rate"
)

type FmmMetricContentType

type FmmMetricContentType string
const (
	ContentType_Sum          FmmMetricContentType = "sum"
	ContentType_Gauge        FmmMetricContentType = "gauge"
	ContentType_Distribution FmmMetricContentType = "distribution"
)

type FmmMetricType

type FmmMetricType string
const (
	Type_Long   FmmMetricType = "long"
	Type_Double FmmMetricType = "double"
)

type FmmNamespace

type FmmNamespace struct {
	Name string `json:"name"`
}

type FmmNamespaceAssignTypeDef

type FmmNamespaceAssignTypeDef struct {
	Name    string `json:"name"`
	Version string `json:"version"`
}

type FmmTemporality

type FmmTemporality string
const (
	Temp_Delta FmmTemporality = "delta"
	Temp_False FmmTemporality = "unspecified"
)

type FmmTypeDef

type FmmTypeDef struct {
	Namespace   FmmNamespaceAssignTypeDef `json:"namespace"`
	Kind        string                    `json:"kind"`
	Name        string                    `json:"name"`
	DisplayName string                    `json:"displayName,omitempty"`
}

type IdGenerationDef

type IdGenerationDef struct {
	GenerateRandomId        bool   `json:"generateRandomId"`
	EnforceGlobalUniqueness bool   `json:"enforceGlobalUniqueness"`
	IdGenerationMechanism   string `json:"idGenerationMechanism,omitempty"`
}

type KnowledgeDef

type KnowledgeDef struct {
	Name             string                 `json:"name,omitempty"`
	AllowedLayers    []string               `json:"allowedLayers,omitempty"`
	IdGeneration     *IdGenerationDef       `json:"idGeneration,omitempty"`
	SecureProperties []string               `json:"secureProperties,omitempty"`
	JsonSchema       map[string]interface{} `json:"jsonSchema,omitempty"`
}

type Manifest

type Manifest struct {
	ManifestVersion string         `json:"manifestVersion,omitempty"`
	Name            string         `json:"name,omitempty"`
	SolutionVersion string         `json:"solutionVersion,omitempty"`
	Dependencies    []string       `json:"dependencies"`
	Description     string         `json:"description,omitempty"`
	Contact         string         `json:"contact,omitempty"`
	HomePage        string         `json:"homepage,omitempty"`
	GitRepoUrl      string         `json:"gitRepoUrl,omitempty"`
	Readme          string         `json:"readme,omitempty"`
	Objects         []ComponentDef `json:"objects,omitempty"`
	Types           []string       `json:"types,omitempty"`
}

type Result

type Result struct {
	Errors Errors `json:"errors"`
	Valid  bool   `json:"valid"`
}

type ServiceDef

type ServiceDef struct {
	Name  string `json:"name,omitempty"`
	Image string `json:"image,omitempty"`
}

type SolutionDef

type SolutionDef struct {
	Dependencies []string `json:"dependencies,omitempty"`
	IsSubscribed bool     `json:"isSubscribed,omitempty"`
	IsSystem     bool     `json:"isSystem,omitempty"`
	Name         string   `json:"name,omitempty"`
}

Jump to

Keyboard shortcuts

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