Documentation ¶
Index ¶
- 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) DeleteEntity(ctx context.Context, id string, blueprint string, deleteDependents bool) error
- func (c *PortClient) DeleteStaleEntities(ctx context.Context, stateKey string, ...) error
- func (c *PortClient) GetEntityIdentifierKey(portEntity *port.Entity) string
- 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 ¶
This section is empty.
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) DeleteEntity ¶
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) 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.