Documentation ¶
Index ¶
- type AccessTokenResponse
- type Action
- type ActionApprovePermissions
- type ActionExecutePermissions
- type ActionPermissions
- type ActionProperty
- type ActionUserInputs
- type ApprovalNotification
- type Blueprint
- type BlueprintAggregationProperty
- type BlueprintCalculationProperty
- type BlueprintMirrorProperty
- type BlueprintPermissions
- type BlueprintPermissionsBlock
- type BlueprintPermissionsEntities
- type BlueprintProperty
- type BlueprintRolesOrPropertiesPermissionsBlock
- type BlueprintSchema
- type ChangelogDestination
- type Dataset
- type DatasetRule
- type DatasetValue
- type Entity
- type EntityProperty
- type InvocationMethod
- type Mappings
- type Meta
- type Migration
- type Option
- type Page
- type PagePermissions
- type PageReadPermissions
- type PortBlueprintPermissionsBody
- type PortBody
- type PortBodyDelete
- type PortClient
- func (c *PortClient) Authenticate(ctx context.Context, clientID, clientSecret string) (string, error)
- func (c *PortClient) CreateAction(ctx context.Context, blueprintID string, action *Action) (*Action, error)
- func (c *PortClient) CreateBlueprint(ctx context.Context, b *Blueprint) (*Blueprint, error)
- func (c *PortClient) CreateEntity(ctx context.Context, e *Entity, runID string) (*Entity, error)
- func (c *PortClient) CreatePage(ctx context.Context, page *Page) (*Page, error)
- func (c *PortClient) CreatePermissions(ctx context.Context, clientID string, scopes ...string) error
- func (c *PortClient) CreateScorecard(ctx context.Context, blueprintID string, scorecard *Scorecard) (*Scorecard, error)
- func (c *PortClient) CreateTeam(ctx context.Context, team *Team) (*Team, error)
- func (c *PortClient) CreateWebhook(ctx context.Context, webhook *Webhook) (*Webhook, error)
- func (c *PortClient) DeleteAction(ctx context.Context, blueprintID string, actionID string) error
- func (c *PortClient) DeleteBlueprint(ctx context.Context, id string) error
- func (c *PortClient) DeleteBlueprintWithAllEntities(ctx context.Context, id string) (*string, error)
- func (c *PortClient) DeleteEntity(ctx context.Context, id string, blueprint string) error
- func (c *PortClient) DeletePage(ctx context.Context, pageId string) (int, error)
- func (c *PortClient) DeleteScorecard(ctx context.Context, blueprintID string, scorecardID string) error
- func (c *PortClient) DeleteTeam(ctx context.Context, teamName string) error
- func (c *PortClient) DeleteWebhook(ctx context.Context, webhookID string) error
- func (c *PortClient) GetActionPermissions(ctx context.Context, blueprintID string, actionID string) (*ActionPermissions, int, error)
- func (c *PortClient) GetBlueprintPermissions(ctx context.Context, blueprintID string) (*BlueprintPermissions, int, error)
- func (c *PortClient) GetMigration(ctx context.Context, id string) (*Migration, error)
- func (c *PortClient) GetPage(ctx context.Context, pageId string) (*Page, int, error)
- func (c *PortClient) GetPagePermissions(ctx context.Context, pageID string) (*PagePermissions, int, error)
- func (c *PortClient) ReadAction(ctx context.Context, blueprintID, id string) (*Action, int, error)
- func (c *PortClient) ReadBlueprint(ctx context.Context, id string) (*Blueprint, int, error)
- func (c *PortClient) ReadEntity(ctx context.Context, id string, blueprint string) (*Entity, int, error)
- func (c *PortClient) ReadScorecard(ctx context.Context, blueprintID string, scorecardID string) (*Scorecard, int, error)
- func (c *PortClient) ReadTeam(ctx context.Context, teamName string) (*Team, int, error)
- func (c *PortClient) ReadWebhook(ctx context.Context, webhookID string) (*Webhook, int, error)
- func (c *PortClient) UpdateAction(ctx context.Context, blueprintID, actionID string, action *Action) (*Action, error)
- func (c *PortClient) UpdateActionPermissions(ctx context.Context, blueprintID string, actionID string, ...) (*ActionPermissions, error)
- func (c *PortClient) UpdateBlueprint(ctx context.Context, b *Blueprint, id string) (*Blueprint, error)
- func (c *PortClient) UpdateBlueprintPermissions(ctx context.Context, blueprintID string, permissions *BlueprintPermissions) (*BlueprintPermissions, error)
- func (c *PortClient) UpdateEntity(ctx context.Context, id string, blueprint string, e *Entity, runID string) (*Entity, error)
- func (c *PortClient) UpdatePage(ctx context.Context, pageId string, page *Page) (*Page, error)
- func (c *PortClient) UpdatePagePermissions(ctx context.Context, pageID string, permissions *PagePermissions) (*PagePermissions, error)
- func (c *PortClient) UpdateScorecard(ctx context.Context, blueprintID string, scorecardId string, ...) (*Scorecard, error)
- func (c *PortClient) UpdateTeam(ctx context.Context, teamName string, team *Team) (*Team, error)
- func (c *PortClient) UpdateWebhook(ctx context.Context, webhookID string, webhook *Webhook) (*Webhook, error)
- type PortPagePermissionsBody
- type PortProviderModel
- type PortTeamBody
- type Query
- type Relation
- type Rule
- type Scorecard
- type Security
- type SpecAuthentication
- type Team
- type TeamInheritance
- type TeamPortBody
- type TeamUserBody
- type Webhook
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"` RequiredApproval *bool `json:"requiredApproval,omitempty"` InvocationMethod *InvocationMethod `json:"invocationMethod,omitempty"` ApprovalNotification *ApprovalNotification `json:"approvalNotification,omitempty"` }
type ActionApprovePermissions ¶ added in v1.7.1
type ActionExecutePermissions ¶ added in v1.7.1
type ActionPermissions ¶ added in v1.7.1
type ActionPermissions struct { Execute ActionExecutePermissions `json:"execute"` Approve ActionApprovePermissions `json:"approve"` }
type ActionProperty ¶ added in v1.1.0
type ActionProperty struct { Type string `json:"type,omitempty"` Title *string `json:"title,omitempty"` Identifier string `json:"identifier,omitempty"` Items map[string]any `json:"items,omitempty"` Default any `json:"default,omitempty"` Icon *string `json:"icon,omitempty"` Format *string `json:"format,omitempty"` MaxLength *int `json:"maxLength,omitempty"` MinLength *int `json:"minLength,omitempty"` MaxItems *int `json:"maxItems,omitempty"` MinItems *int `json:"minItems,omitempty"` Maximum *float64 `json:"maximum,omitempty"` Minimum *float64 `json:"minimum,omitempty"` Description *string `json:"description,omitempty"` Blueprint *string `json:"blueprint,omitempty"` Pattern *string `json:"pattern,omitempty"` Enum any `json:"enum,omitempty"` Spec *string `json:"spec,omitempty"` SpecAuthentication *SpecAuthentication `json:"specAuthentication,omitempty"` EnumColors map[string]string `json:"enumColors,omitempty"` DependsOn []string `json:"dependsOn,omitempty"` Dataset *Dataset `json:"dataset,omitempty"` Encryption *string `json:"encryption,omitempty"` Visible any `json:"visible,omitempty"` }
type ActionUserInputs ¶
type ActionUserInputs = struct { Properties map[string]ActionProperty `json:"properties"` Required any `json:"required,omitempty"` Order []string `json:"order,omitempty"` }
type ApprovalNotification ¶
type Blueprint ¶
type Blueprint struct { Meta Identifier string `json:"identifier,omitempty"` Title string `json:"title,omitempty"` Icon *string `json:"icon,omitempty"` Description *string `json:"description,omitempty"` Schema BlueprintSchema `json:"schema"` MirrorProperties map[string]BlueprintMirrorProperty `json:"mirrorProperties"` CalculationProperties map[string]BlueprintCalculationProperty `json:"calculationProperties"` AggregationProperties map[string]BlueprintAggregationProperty `json:"aggregationProperties,omitempty"` ChangelogDestination *ChangelogDestination `json:"changelogDestination,omitempty"` TeamInheritance *TeamInheritance `json:"teamInheritance,omitempty"` Relations map[string]Relation `json:"relations"` }
type BlueprintAggregationProperty ¶ added in v1.8.1
type BlueprintAggregationProperty struct { Title *string `json:"title,omitempty"` Description *string `json:"description,omitempty"` Icon *string `json:"icon,omitempty"` Target string `json:"target,omitempty"` CalculationSpec map[string]string `json:"calculationSpec,omitempty"` Query any `json:"query,omitempty"` }
type BlueprintCalculationProperty ¶
type BlueprintCalculationProperty struct { Type string `json:"type,omitempty"` Title *string `json:"title,omitempty"` Identifier string `json:"identifier,omitempty"` Calculation string `json:"calculation,omitempty"` Default any `json:"default,omitempty"` Icon *string `json:"icon,omitempty"` Format *string `json:"format,omitempty"` Description *string `json:"description,omitempty"` Colorized *bool `json:"colorized,omitempty"` Colors map[string]string `json:"colors,omitempty"` }
type BlueprintMirrorProperty ¶
type BlueprintPermissions ¶ added in v1.11.1
type BlueprintPermissions struct {
Entities BlueprintPermissionsEntities `json:"entities"`
}
type BlueprintPermissionsBlock ¶ added in v1.11.1
type BlueprintPermissionsEntities ¶ added in v1.11.1
type BlueprintPermissionsEntities struct { Register BlueprintPermissionsBlock `json:"register"` Unregister BlueprintPermissionsBlock `json:"unregister"` Update BlueprintPermissionsBlock `json:"update"` UpdateProperties BlueprintRolesOrPropertiesPermissionsBlock `json:"updateProperties,omitempty"` UpdateRelations BlueprintRolesOrPropertiesPermissionsBlock `json:"updateRelations,omitempty"` }
type BlueprintProperty ¶
type BlueprintProperty struct { Type string `json:"type,omitempty"` Title *string `json:"title,omitempty"` Identifier string `json:"identifier,omitempty"` Items map[string]any `json:"items,omitempty"` Default any `json:"default,omitempty"` Icon *string `json:"icon,omitempty"` Format *string `json:"format,omitempty"` MaxLength *int `json:"maxLength,omitempty"` MinLength *int `json:"minLength,omitempty"` MaxItems *int `json:"maxItems,omitempty"` MinItems *int `json:"minItems,omitempty"` Maximum *float64 `json:"maximum,omitempty"` Minimum *float64 `json:"minimum,omitempty"` Description *string `json:"description,omitempty"` Blueprint *string `json:"blueprint,omitempty"` Pattern *string `json:"pattern,omitempty"` Enum []any `json:"enum,omitempty"` Spec *string `json:"spec,omitempty"` SpecAuthentication *SpecAuthentication `json:"specAuthentication,omitempty"` EnumColors map[string]string `json:"enumColors,omitempty"` }
type BlueprintRolesOrPropertiesPermissionsBlock ¶ added in v1.11.1
type BlueprintRolesOrPropertiesPermissionsBlock map[string]BlueprintPermissionsBlock
type BlueprintSchema ¶
type BlueprintSchema struct { Properties map[string]BlueprintProperty `json:"properties"` Required []string `json:"required,omitempty"` }
type ChangelogDestination ¶
type Dataset ¶ added in v1.1.0
type Dataset struct { Combinator string `json:"combinator,omitempty"` Rules []DatasetRule `json:"rules,omitempty"` }
type DatasetRule ¶ added in v1.1.0
type DatasetRule struct { Blueprint *string `json:"blueprint,omitempty"` Property *string `json:"property,omitempty"` Operator string `json:"operator,omitempty"` Value *DatasetValue `json:"value,omitempty"` }
type DatasetValue ¶ added in v1.1.0
type DatasetValue struct {
JqQuery string `json:"jqQuery,omitempty"`
}
type EntityProperty ¶ added in v1.3.0
type EntityProperty struct { Identifier string `json:"identifier,omitempty"` Title *string `json:"title,omitempty"` Icon *string `json:"icon,omitempty"` Team *string `json:"team,omitempty"` Properties map[string]string `json:"properties,omitempty"` Relations map[string]string `json:"relations,omitempty"` }
type InvocationMethod ¶
type InvocationMethod struct { Type string `json:"type,omitempty"` Url *string `json:"url,omitempty"` Agent *bool `json:"agent,omitempty"` Synchronized *bool `json:"synchronized,omitempty"` Method *string `json:"method,omitempty"` Org *string `json:"org,omitempty"` Repo *string `json:"repo,omitempty"` Webhook *string `json:"webhook,omitempty"` Workflow *string `json:"workflow,omitempty"` OmitPayload *bool `json:"omitPayload,omitempty"` OmitUserInputs *bool `json:"omitUserInputs,omitempty"` ReportWorkflowStatus *bool `json:"reportWorkflowStatus,omitempty"` Branch *string `json:"branch,omitempty"` ProjectName *string `json:"projectName,omitempty"` GroupName *string `json:"groupName,omitempty"` DefaultRef *string `json:"defaultRef,omitempty"` }
type Mappings ¶ added in v1.3.0
type Mappings struct { Blueprint string `json:"blueprint,omitempty"` Filter *string `json:"filter,omitempty"` ItemsToParse *string `json:"itemsToParse,omitempty"` Entity *EntityProperty `json:"entity,omitempty"` }
type Migration ¶ added in v1.10.1
type Migration struct { Meta Id string `json:"id,omitempty"` Actor string `json:"actor,omitempty"` SourceBlueprint string `json:"sourceBlueprint,omitempty"` Mapping any `json:"mapping,omitempty"` Status string `json:"status,omitempty"` DeleteBlueprint bool `json:"deleteBlueprint,omitempty"` DeleteEntities bool `json:"deleteEntities,omitempty"` FailureCount int `json:"failureCount,omitempty"` SuccessCount int `json:"successCount,omitempty"` }
type Page ¶ added in v1.10.2
type Page struct { Meta Identifier string `json:"identifier,omitempty"` Type string `json:"type,omitempty"` Icon *string `json:"icon,omitempty"` Parent *string `json:"parent,omitempty"` After *string `json:"after,omitempty"` Title *string `json:"title,omitempty"` Locked *bool `json:"locked,omitempty"` Blueprint *string `json:"blueprint,omitempty"` Widgets *[]map[string]any `json:"widgets,omitempty"` }
type PagePermissions ¶ added in v1.10.3
type PagePermissions struct {
Read PageReadPermissions `json:"read"`
}
type PageReadPermissions ¶ added in v1.10.3
type PortBlueprintPermissionsBody ¶ added in v1.11.1
type PortBlueprintPermissionsBody struct { OK bool `json:"ok"` BlueprintPermissions BlueprintPermissions `json:"permissions"` }
type PortBody ¶
type PortBody struct { OK bool `json:"ok"` Entity Entity `json:"entity"` Blueprint Blueprint `json:"blueprint"` BlueprintPermissions Blueprint `json:"blueprint_permissions"` Action Action `json:"action"` ActionPermissions ActionPermissions `json:"permissions"` Integration Webhook `json:"integration"` Scorecard Scorecard `json:"Scorecard"` Team Team `json:"team"` Page Page `json:"page"` MigrationId string `json:"migrationId"` Migration Migration `json:"migration"` }
type PortBodyDelete ¶ added in v1.5.0
type PortBodyDelete struct {
Ok bool `json:"ok"`
}
type PortClient ¶
func (*PortClient) Authenticate ¶
func (*PortClient) CreateAction ¶
func (*PortClient) CreateBlueprint ¶
func (*PortClient) CreateEntity ¶
func (*PortClient) CreatePage ¶ added in v1.10.2
func (*PortClient) CreatePermissions ¶
func (*PortClient) CreateScorecard ¶ added in v1.5.0
func (*PortClient) CreateTeam ¶ added in v1.6.0
func (*PortClient) CreateWebhook ¶ added in v1.3.0
func (*PortClient) DeleteAction ¶
func (*PortClient) DeleteBlueprint ¶
func (c *PortClient) DeleteBlueprint(ctx context.Context, id string) error
func (*PortClient) DeleteBlueprintWithAllEntities ¶ added in v1.10.1
func (*PortClient) DeleteEntity ¶
func (*PortClient) DeletePage ¶ added in v1.10.2
func (*PortClient) DeleteScorecard ¶ added in v1.5.0
func (*PortClient) DeleteTeam ¶ added in v1.6.0
func (c *PortClient) DeleteTeam(ctx context.Context, teamName string) error
func (*PortClient) DeleteWebhook ¶ added in v1.3.0
func (c *PortClient) DeleteWebhook(ctx context.Context, webhookID string) error
func (*PortClient) GetActionPermissions ¶ added in v1.7.1
func (c *PortClient) GetActionPermissions(ctx context.Context, blueprintID string, actionID string) (*ActionPermissions, int, error)
func (*PortClient) GetBlueprintPermissions ¶ added in v1.11.1
func (c *PortClient) GetBlueprintPermissions(ctx context.Context, blueprintID string) (*BlueprintPermissions, int, error)
func (*PortClient) GetMigration ¶ added in v1.10.1
func (*PortClient) GetPagePermissions ¶ added in v1.10.3
func (c *PortClient) GetPagePermissions(ctx context.Context, pageID string) (*PagePermissions, int, error)
func (*PortClient) ReadAction ¶
func (*PortClient) ReadBlueprint ¶
func (*PortClient) ReadEntity ¶
func (*PortClient) ReadScorecard ¶ added in v1.5.0
func (*PortClient) ReadWebhook ¶ added in v1.3.0
func (*PortClient) UpdateAction ¶
func (*PortClient) UpdateActionPermissions ¶ added in v1.7.1
func (c *PortClient) UpdateActionPermissions(ctx context.Context, blueprintID string, actionID string, permissions *ActionPermissions) (*ActionPermissions, error)
func (*PortClient) UpdateBlueprint ¶
func (*PortClient) UpdateBlueprintPermissions ¶ added in v1.11.1
func (c *PortClient) UpdateBlueprintPermissions(ctx context.Context, blueprintID string, permissions *BlueprintPermissions) (*BlueprintPermissions, error)
func (*PortClient) UpdateEntity ¶ added in v1.6.5
func (*PortClient) UpdatePage ¶ added in v1.10.2
func (*PortClient) UpdatePagePermissions ¶ added in v1.10.3
func (c *PortClient) UpdatePagePermissions(ctx context.Context, pageID string, permissions *PagePermissions) (*PagePermissions, error)
func (*PortClient) UpdateScorecard ¶ added in v1.5.0
func (*PortClient) UpdateTeam ¶ added in v1.6.0
func (*PortClient) UpdateWebhook ¶ added in v1.3.0
type PortPagePermissionsBody ¶ added in v1.10.3
type PortPagePermissionsBody struct { OK bool `json:"ok"` PagePermissions PagePermissions `json:"permissions"` }
type PortProviderModel ¶
type PortTeamBody ¶ added in v1.6.0
type PortTeamBody struct { OK bool `json:"ok"` Team TeamPortBody `json:"team"` }
type Security ¶ added in v1.3.0
type Security struct { Secret *string `json:"secret,omitempty"` SignatureHeaderName *string `json:"signatureHeaderName,omitempty"` SignatureAlgorithm *string `json:"signatureAlgorithm,omitempty"` SignaturePrefix *string `json:"signaturePrefix,omitempty"` RequestIdentifierPath *string `json:"requestIdentifierPath,omitempty"` }
type SpecAuthentication ¶
type TeamInheritance ¶
type TeamInheritance struct {
Path string `json:"path,omitempty"`
}
type TeamPortBody ¶ added in v1.6.0
type TeamPortBody struct { CreatedAt *time.Time `json:"createdAt,omitempty"` UpdatedAt *time.Time `json:"updatedAt,omitempty"` Name string `json:"name,omitempty"` Description *string `json:"description,omitempty"` Users []TeamUserBody `json:"users,omitempty"` Provider string `json:"provider,omitempty"` }
type TeamUserBody ¶ added in v1.6.0
type TeamUserBody struct {
Email string `json:"email"`
}
type Webhook ¶ added in v1.3.0
type Webhook struct { Meta Identifier string `json:"identifier,omitempty"` Title *string `json:"title,omitempty"` Icon *string `json:"icon,omitempty"` Description *string `json:"description,omitempty"` Enabled *bool `json:"enabled,omitempty"` Security *Security `json:"security,omitempty"` Mappings []Mappings `json:"mappings,omitempty"` WebhookKey string `json:"webhookKey,omitempty"` Url string `json:"url,omitempty"` }
Click to show internal directories.
Click to hide internal directories.