Documentation ¶
Index ¶
- type AccessTokenResponse
- type Action
- type ActionProperty
- type ActionUserInputs
- type ApprovalNotification
- type Blueprint
- type BlueprintCalculationProperty
- type BlueprintMirrorProperty
- type BlueprintProperty
- type BlueprintSchema
- type ChangelogDestination
- type Dataset
- type DatasetRule
- type DatasetValue
- type Entity
- type InvocationMethod
- type Meta
- type Option
- type PortBody
- 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) CreatePermissions(ctx context.Context, clientID string, scopes ...string) error
- func (c *PortClient) DeleteAction(ctx context.Context, blueprintID, actionID string) error
- func (c *PortClient) DeleteBlueprint(ctx context.Context, id string) error
- func (c *PortClient) DeleteEntity(ctx context.Context, id string, blueprint string) 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) UpdateAction(ctx context.Context, blueprintID, actionID string, action *Action) (*Action, error)
- func (c *PortClient) UpdateBlueprint(ctx context.Context, b *Blueprint, id string) (*Blueprint, error)
- type PortProviderModel
- type Relation
- type SpecAuthentication
- type TeamInheritance
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 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 interface{} `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 interface{} `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"` }
type ActionUserInputs ¶
type ActionUserInputs = struct { Properties map[string]ActionProperty `json:"properties"` Required []string `json:"required,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"` ChangelogDestination *ChangelogDestination `json:"changelogDestination,omitempty"` TeamInheritance *TeamInheritance `json:"teamInheritance,omitempty"` Relations map[string]Relation `json:"relations"` }
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 interface{} `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 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 interface{} `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 []interface{} `json:"enum,omitempty"` Spec *string `json:"spec,omitempty"` SpecAuthentication *SpecAuthentication `json:"specAuthentication,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 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 InvocationMethod ¶
type InvocationMethod struct { Type string `json:"type,omitempty"` Url *string `json:"url,omitempty"` Agent *bool `json:"agent,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 PortClient ¶
func (*PortClient) Authenticate ¶
func (*PortClient) CreateAction ¶
func (*PortClient) CreateBlueprint ¶
func (*PortClient) CreateEntity ¶
func (*PortClient) CreatePermissions ¶
func (*PortClient) DeleteAction ¶
func (c *PortClient) DeleteAction(ctx context.Context, blueprintID, actionID string) error
func (*PortClient) DeleteBlueprint ¶
func (c *PortClient) DeleteBlueprint(ctx context.Context, id string) error
func (*PortClient) DeleteEntity ¶
func (*PortClient) ReadAction ¶
func (*PortClient) ReadBlueprint ¶
func (*PortClient) ReadEntity ¶
func (*PortClient) UpdateAction ¶
func (*PortClient) UpdateBlueprint ¶
type PortProviderModel ¶
type SpecAuthentication ¶
type TeamInheritance ¶
type TeamInheritance struct {
Path string `json:"path,omitempty"`
}
Click to show internal directories.
Click to hide internal directories.