Documentation ¶
Index ¶
- type AccessTokenResponse
- type Action
- type ActionUserInputs
- type AggregatedResource
- type Blueprint
- type BlueprintAggregationProperty
- type BlueprintCalculationProperty
- type BlueprintMirrorProperty
- type BlueprintProperty
- type BlueprintSchema
- type ChangelogDestination
- type Config
- type Entity
- type EntityMapping
- type EntityMappings
- type EventListenerSettings
- type Integration
- type IntegrationAppConfig
- type InvocationMethod
- type KindConfig
- type Meta
- type OrgDetails
- type OrgKafkaCredentials
- type Port
- type Relation
- type Resource
- type ResponseBody
- type Rule
- type Scorecard
- type SearchBody
- type Selector
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccessTokenResponse ¶
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 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 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 EntityMapping ¶
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 InvocationMethod ¶
type KindConfig ¶ added in v0.1.15
type OrgDetails ¶ added in v0.1.15
type OrgDetails struct {
OrgId string `json:"id"`
}
type OrgKafkaCredentials ¶ added in v0.1.15
type Port ¶ added in v0.1.15
type Port struct {
Entity EntityMappings `json:"entity"`
}
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 SearchBody ¶ added in v0.1.6
Click to show internal directories.
Click to hide internal directories.