port

package
v0.2.5-dev14 Latest Latest
Warning

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

Go to latest
Published: Dec 28, 2023 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessTokenResponse

type AccessTokenResponse struct {
	Ok          bool   `json:"ok"`
	AccessToken string `json:"accessToken"`
	ExpiresIn   int64  `json:"expiresIn"`
	TokenType   string `json:"tokenType"`
}

type Action

type Action struct {
	ID               string            `json:"id,omitempty"`
	Identifier       string            `json:"identifier,omitempty"`
	Description      string            `json:"description,omitempty"`
	Title            string            `json:"title,omitempty"`
	Icon             string            `json:"icon,omitempty"`
	UserInputs       ActionUserInputs  `json:"userInputs"`
	Trigger          string            `json:"trigger"`
	InvocationMethod *InvocationMethod `json:"invocationMethod,omitempty"`
}

type ActionUserInputs

type ActionUserInputs = BlueprintSchema

type AggregatedResource added in v0.1.15

type AggregatedResource struct {
	Kind        string
	KindConfigs []KindConfig
}

type Blueprint

type Blueprint struct {
	Meta
	Identifier            string                                  `json:"identifier,omitempty"`
	Title                 string                                  `json:"title,omitempty"`
	Icon                  string                                  `json:"icon"`
	Description           string                                  `json:"description"`
	Schema                BlueprintSchema                         `json:"schema"`
	CalculationProperties map[string]BlueprintCalculationProperty `json:"calculationProperties,omitempty"`
	AggregationProperties map[string]BlueprintAggregationProperty `json:"aggregationProperties,omitempty"`
	MirrorProperties      map[string]BlueprintMirrorProperty      `json:"mirrorProperties,omitempty"`
	ChangelogDestination  *ChangelogDestination                   `json:"changelogDestination,omitempty"`
	Relations             map[string]Relation                     `json:"relations,omitempty"`
}

type BlueprintAggregationProperty added in v0.1.15

type BlueprintAggregationProperty struct {
	Title           string      `json:"title"`
	Target          string      `json:"target"`
	CalculationSpec interface{} `json:"calculationSpec"`
	Query           interface{} `json:"query,omitempty"`
	Description     string      `json:"description,omitempty"`
	Icon            string      `json:"icon,omitempty"`
	Type            string      `json:"type,omitempty"`
}

type BlueprintCalculationProperty added in v0.1.15

type BlueprintCalculationProperty struct {
	Identifier  string            `json:"identifier,omitempty"`
	Title       string            `json:"title,omitempty"`
	Calculation string            `json:"calculation,omitempty"`
	Colors      map[string]string `json:"colors,omitempty"`
	Colorized   bool              `json:"colorized,omitempty"`
	Format      string            `json:"format,omitempty"`
	Type        string            `json:"type,omitempty"`
}

type BlueprintMirrorProperty

type BlueprintMirrorProperty struct {
	Identifier string `json:"identifier,omitempty"`
	Title      string `json:"title,omitempty"`
	Path       string `json:"path,omitempty"`
}

type BlueprintProperty

type BlueprintProperty struct {
	Type        string            `json:"type,omitempty"`
	Title       string            `json:"title,omitempty"`
	Identifier  string            `json:"identifier,omitempty"`
	Default     any               `json:"default,omitempty"`
	Icon        string            `json:"icon,omitempty"`
	Format      string            `json:"format,omitempty"`
	Description string            `json:"description,omitempty"`
	Blueprint   string            `json:"blueprint,omitempty"`
	Pattern     string            `json:"pattern,omitempty"`
	Enum        []string          `json:"enum,omitempty"`
	EnumColors  map[string]string `json:"enumColors,omitempty"`
}

type BlueprintSchema

type BlueprintSchema struct {
	Properties map[string]BlueprintProperty `json:"properties"`
	Required   []string                     `json:"required,omitempty"`
}

type ChangelogDestination

type ChangelogDestination struct {
	Type string `json:"type,omitempty"`
	Url  string `json:"url,omitempty"`
}

type Config added in v0.1.15

type Config struct {
	ResyncInterval         uint
	StateKey               string
	EventListenerType      string
	CreateDefaultResources bool
	// Deprecated: use IntegrationAppConfig instead. Used for updating the Port integration config on startup.
	Resources []Resource `json:"resources,omitempty"`
	// Deprecated: use IntegrationAppConfig instead. Used for updating the Port integration config on startup.
	DeleteDependents bool `json:"deleteDependents,omitempty"`
	// Deprecated: use IntegrationAppConfig instead. Used for updating the Port integration config on startup.
	CreateMissingRelatedEntities bool `json:"createMissingRelatedEntities,omitempty"`
}

type Entity

type Entity struct {
	Meta
	Identifier string                 `json:"identifier,omitempty"`
	Title      string                 `json:"title"`
	Blueprint  string                 `json:"blueprint"`
	Team       interface{}            `json:"team,omitempty"`
	Properties map[string]interface{} `json:"properties"`
	Relations  map[string]interface{} `json:"relations"`
}

type EntityMapping

type EntityMapping struct {
	Identifier string            `json:"identifier"`
	Title      string            `json:"title"`
	Blueprint  string            `json:"blueprint"`
	Team       string            `json:"team,omitempty"`
	Properties map[string]string `json:"properties,omitempty"`
	Relations  map[string]string `json:"relations,omitempty"`
}

type EntityMappings added in v0.1.15

type EntityMappings struct {
	Mappings []EntityMapping `json:"mappings"`
}

type EventListenerSettings added in v0.1.15

type EventListenerSettings struct {
	Type string `json:"type,omitempty"`
}

type Integration added in v0.1.13

type Integration struct {
	InstallationId      string                 `json:"installationId,omitempty"`
	Title               string                 `json:"title,omitempty"`
	Version             string                 `json:"version,omitempty"`
	InstallationAppType string                 `json:"installationAppType,omitempty"`
	EventListener       *EventListenerSettings `json:"changelogDestination,omitempty"`
	Config              *IntegrationAppConfig  `json:"config,omitempty"`
	UpdatedAt           *time.Time             `json:"updatedAt,omitempty"`
}

type IntegrationAppConfig added in v0.1.15

type IntegrationAppConfig struct {
	DeleteDependents             bool       `json:"deleteDependents,omitempty"`
	CreateMissingRelatedEntities bool       `json:"createMissingRelatedEntities,omitempty"`
	Resources                    []Resource `json:"resources,omitempty"`
}

type InvocationMethod

type InvocationMethod struct {
	Type string `json:"type,omitempty"`
	Url  string `json:"url,omitempty"`
}

type KindConfig added in v0.1.15

type KindConfig struct {
	Selector Selector
	Port     Port
}

type Meta

type Meta struct {
	CreatedAt *time.Time `json:"createdAt,omitempty"`
	UpdatedAt *time.Time `json:"updatedAt,omitempty"`
	CreatedBy string     `json:"createdBy,omitempty"`
	UpdatedBy string     `json:"updatedBy,omitempty"`
}

type OrgDetails added in v0.1.15

type OrgDetails struct {
	OrgId string `json:"id"`
}

type OrgKafkaCredentials added in v0.1.15

type OrgKafkaCredentials struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

type Port added in v0.1.15

type Port struct {
	Entity EntityMappings `json:"entity"`
}

type Relation

type Relation struct {
	Identifier string `json:"identifier,omitempty"`
	Title      string `json:"title,omitempty"`
	Target     string `json:"target,omitempty"`
	Required   bool   `json:"required,omitempty"`
	Many       bool   `json:"many,omitempty"`
}

type Resource added in v0.1.15

type Resource struct {
	Kind     string   `json:"kind"`
	Selector Selector `json:"selector,omitempty"`
	Port     Port     `json:"port"`
}

type ResponseBody added in v0.1.6

type ResponseBody struct {
	OK               bool                `json:"ok"`
	Entity           Entity              `json:"entity"`
	Blueprint        Blueprint           `json:"blueprint"`
	Action           Action              `json:"action"`
	Entities         []Entity            `json:"entities"`
	Integration      Integration         `json:"integration"`
	KafkaCredentials OrgKafkaCredentials `json:"credentials"`
	OrgDetails       OrgDetails          `json:"organization"`
	Scorecard        Scorecard           `json:"scorecard"`
}

type Rule added in v0.1.6

type Rule struct {
	Property string      `json:"property"`
	Operator string      `json:"operator"`
	Value    interface{} `json:"value"`
}

type Scorecard added in v0.1.15

type Scorecard struct {
	Identifier string        `json:"identifier,omitempty"`
	Title      string        `json:"title,omitempty"`
	Filter     interface{}   `json:"filter,omitempty"`
	Rules      []interface{} `json:"rules,omitempty"`
}

type SearchBody added in v0.1.6

type SearchBody struct {
	Rules      []Rule `json:"rules"`
	Combinator string `json:"combinator"`
}

type Selector added in v0.1.15

type Selector struct {
	Query string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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