Documentation ¶
Index ¶
- func CreateBlueprint(portClient *PortClient, blueprint port.Blueprint) (*port.Blueprint, error)
- func DeleteBlueprint(portClient *PortClient, blueprintIdentifier string) error
- func GetBlueprint(portClient *PortClient, blueprintIdentifier string) (*port.Blueprint, error)
- func PatchBlueprint(portClient *PortClient, blueprint port.Blueprint) (*port.Blueprint, error)
- type Option
- type PortClient
- func (c *PortClient) Authenticate(ctx context.Context, clientID, clientSecret string) (string, error)
- func (c *PortClient) CreateEntity(ctx context.Context, e *port.Entity, runID string, ...) (*port.Entity, error)
- func (c *PortClient) CreateIntegration(i *port.Integration) (*port.Integration, error)
- func (c *PortClient) CreatePage(p port.Page) error
- func (c *PortClient) CreateScorecard(blueprintIdentifier string, scorecard port.Scorecard) (*port.Scorecard, error)
- func (c *PortClient) DeleteEntity(ctx context.Context, id string, blueprint string, deleteDependents bool) error
- func (c *PortClient) DeleteIntegration(stateKey string) error
- func (c *PortClient) DeletePage(identifier string) error
- func (c *PortClient) DeleteStaleEntities(ctx context.Context, stateKey string, ...) error
- func (c *PortClient) GetEntityIdentifierKey(portEntity *port.Entity) string
- func (c *PortClient) GetIntegration(stateKey string) (*port.Integration, error)
- func (c *PortClient) GetKafkaCredentials() (*port.OrgKafkaCredentials, error)
- func (c *PortClient) GetOrgId() (string, error)
- func (c *PortClient) GetPage(identifier string) (*port.Page, error)
- func (c *PortClient) PatchIntegration(stateKey string, integration *port.Integration) error
- func (c *PortClient) ReadEntity(ctx context.Context, id string, blueprint string) (*port.Entity, error)
- func (c *PortClient) SearchEntities(ctx context.Context, body port.SearchBody) ([]port.Entity, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateBlueprint ¶ added in v0.1.15
func DeleteBlueprint ¶ added in v0.1.15
func DeleteBlueprint(portClient *PortClient, blueprintIdentifier string) error
func GetBlueprint ¶ added in v0.1.15
func GetBlueprint(portClient *PortClient, blueprintIdentifier string) (*port.Blueprint, error)
func PatchBlueprint ¶ added in v0.1.15
Types ¶
type Option ¶
type Option func(*PortClient)
func WithClientID ¶
func WithClientSecret ¶
func WithCreateMissingRelatedEntities ¶ added in v0.1.9
func WithDeleteDependents ¶ added in v0.1.6
func WithHeader ¶
type PortClient ¶
type PortClient struct { Client *resty.Client ClientID string ClientSecret string DeleteDependents bool CreateMissingRelatedEntities bool }
func (*PortClient) Authenticate ¶
func (*PortClient) CreateEntity ¶
func (*PortClient) CreateIntegration ¶ added in v0.1.13
func (c *PortClient) CreateIntegration(i *port.Integration) (*port.Integration, error)
func (*PortClient) CreatePage ¶ added in v0.2.7
func (c *PortClient) CreatePage(p port.Page) error
func (*PortClient) CreateScorecard ¶ added in v0.1.15
func (*PortClient) DeleteEntity ¶
func (*PortClient) DeleteIntegration ¶ added in v0.1.15
func (c *PortClient) DeleteIntegration(stateKey string) error
func (*PortClient) DeletePage ¶ added in v0.2.7
func (c *PortClient) DeletePage(identifier string) error
func (*PortClient) DeleteStaleEntities ¶ added in v0.1.6
func (*PortClient) GetEntityIdentifierKey ¶ added in v0.1.6
func (c *PortClient) GetEntityIdentifierKey(portEntity *port.Entity) string
func (*PortClient) GetIntegration ¶ added in v0.1.15
func (c *PortClient) GetIntegration(stateKey string) (*port.Integration, error)
func (*PortClient) GetKafkaCredentials ¶ added in v0.1.15
func (c *PortClient) GetKafkaCredentials() (*port.OrgKafkaCredentials, error)
func (*PortClient) GetOrgId ¶ added in v0.1.15
func (c *PortClient) GetOrgId() (string, error)
func (*PortClient) GetPage ¶ added in v0.2.7
func (c *PortClient) GetPage(identifier string) (*port.Page, error)
func (*PortClient) PatchIntegration ¶ added in v0.1.15
func (c *PortClient) PatchIntegration(stateKey string, integration *port.Integration) error
func (*PortClient) ReadEntity ¶
func (*PortClient) SearchEntities ¶ added in v0.1.6
func (c *PortClient) SearchEntities(ctx context.Context, body port.SearchBody) ([]port.Entity, error)
Click to show internal directories.
Click to hide internal directories.