Documentation ¶
Index ¶
- type AccountMembershipsClient
- type AccountRolesClient
- type AccountsClient
- type Client
- func (c *Client) AccountMemberships(accountID uuid.UUID) (api.AccountMembershipsClient, error)
- func (c *Client) AccountRoles(accountID uuid.UUID) (api.AccountRolesClient, error)
- func (c *Client) Accounts(accountID uuid.UUID) (api.AccountsClient, error)
- func (c *Client) Collections() (api.CollectionsClient, error)
- func (c *Client) ServiceAccounts(accountID uuid.UUID) (api.ServiceAccountsClient, error)
- func (c *Client) Teams(accountID uuid.UUID) (api.TeamsClient, error)
- func (c *Client) Variables(accountID uuid.UUID, workspaceID uuid.UUID) (api.VariablesClient, error)
- func (c *Client) WorkPools(accountID uuid.UUID, workspaceID uuid.UUID) (api.WorkPoolsClient, error)
- func (c *Client) WorkspaceAccess(accountID uuid.UUID, workspaceID uuid.UUID) (api.WorkspaceAccessClient, error)
- func (c *Client) WorkspaceRoles(accountID uuid.UUID) (api.WorkspaceRolesClient, error)
- func (c *Client) Workspaces(accountID uuid.UUID) (api.WorkspacesClient, error)
- type CollectionsClient
- type Option
- type ServiceAccountsClient
- func (sa *ServiceAccountsClient) Create(ctx context.Context, request api.ServiceAccountCreateRequest) (*api.ServiceAccount, error)
- func (sa *ServiceAccountsClient) Delete(ctx context.Context, botID string) error
- func (sa *ServiceAccountsClient) Get(ctx context.Context, botID string) (*api.ServiceAccount, error)
- func (sa *ServiceAccountsClient) List(ctx context.Context, names []string) ([]*api.ServiceAccount, error)
- func (sa *ServiceAccountsClient) RotateKey(ctx context.Context, serviceAccountID string, ...) (*api.ServiceAccount, error)
- func (sa *ServiceAccountsClient) Update(ctx context.Context, botID string, request api.ServiceAccountUpdateRequest) error
- type TeamsClient
- type VariablesClient
- func (c *VariablesClient) Create(ctx context.Context, data api.VariableCreate) (*api.Variable, error)
- func (c *VariablesClient) Delete(ctx context.Context, variableID uuid.UUID) error
- func (c *VariablesClient) Get(ctx context.Context, variableID uuid.UUID) (*api.Variable, error)
- func (c *VariablesClient) GetByName(ctx context.Context, name string) (*api.Variable, error)
- func (c *VariablesClient) List(ctx context.Context, filter api.VariableFilter) ([]api.Variable, error)
- func (c *VariablesClient) Update(ctx context.Context, variableID uuid.UUID, data api.VariableUpdate) error
- type WorkPoolsClient
- func (c *WorkPoolsClient) Create(ctx context.Context, data api.WorkPoolCreate) (*api.WorkPool, error)
- func (c *WorkPoolsClient) Delete(ctx context.Context, name string) error
- func (c *WorkPoolsClient) Get(ctx context.Context, name string) (*api.WorkPool, error)
- func (c *WorkPoolsClient) List(ctx context.Context, filter api.WorkPoolFilter) ([]*api.WorkPool, error)
- func (c *WorkPoolsClient) Update(ctx context.Context, name string, data api.WorkPoolUpdate) error
- type WorkspaceAccessClient
- func (c *WorkspaceAccessClient) Delete(ctx context.Context, accessorType string, accessID uuid.UUID, ...) error
- func (c *WorkspaceAccessClient) Get(ctx context.Context, accessorType string, accessID uuid.UUID) (*api.WorkspaceAccess, error)
- func (c *WorkspaceAccessClient) Upsert(ctx context.Context, accessorType string, accessorID uuid.UUID, ...) (*api.WorkspaceAccess, error)
- type WorkspaceRolesClient
- func (c *WorkspaceRolesClient) Create(ctx context.Context, data api.WorkspaceRoleUpsert) (*api.WorkspaceRole, error)
- func (c *WorkspaceRolesClient) Delete(ctx context.Context, id uuid.UUID) error
- func (c *WorkspaceRolesClient) Get(ctx context.Context, id uuid.UUID) (*api.WorkspaceRole, error)
- func (c *WorkspaceRolesClient) List(ctx context.Context, roleNames []string) ([]*api.WorkspaceRole, error)
- func (c *WorkspaceRolesClient) Update(ctx context.Context, workspaceRoleID uuid.UUID, data api.WorkspaceRoleUpsert) error
- type WorkspacesClient
- func (c *WorkspacesClient) Create(ctx context.Context, data api.WorkspaceCreate) (*api.Workspace, error)
- func (c *WorkspacesClient) Delete(ctx context.Context, workspaceID uuid.UUID) error
- func (c *WorkspacesClient) Get(ctx context.Context, workspaceID uuid.UUID) (*api.Workspace, error)
- func (c *WorkspacesClient) List(ctx context.Context, handleNames []string) ([]*api.Workspace, error)
- func (c *WorkspacesClient) Update(ctx context.Context, workspaceID uuid.UUID, data api.WorkspaceUpdate) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AccountMembershipsClient ¶
type AccountMembershipsClient struct {
// contains filtered or unexported fields
}
func (*AccountMembershipsClient) List ¶
func (c *AccountMembershipsClient) List(ctx context.Context, emails []string) ([]*api.AccountMembership, error)
List returns a list of account memberships, based on the provided filter.
type AccountRolesClient ¶
type AccountRolesClient struct {
// contains filtered or unexported fields
}
func (*AccountRolesClient) Get ¶
func (c *AccountRolesClient) Get(ctx context.Context, roleID uuid.UUID) (*api.AccountRole, error)
Get returns an account role by ID.
func (*AccountRolesClient) List ¶
func (c *AccountRolesClient) List(ctx context.Context, roleNames []string) ([]*api.AccountRole, error)
List returns a list of account roles, based on the provided filter.
type AccountsClient ¶
type AccountsClient struct {
// contains filtered or unexported fields
}
AccountsClient is a client for working with accounts.
func (*AccountsClient) Delete ¶
func (c *AccountsClient) Delete(ctx context.Context) error
Delete removes an account by ID.
func (*AccountsClient) Get ¶
func (c *AccountsClient) Get(ctx context.Context) (*api.AccountResponse, error)
Get returns details for an account by ID.
func (*AccountsClient) Update ¶
func (c *AccountsClient) Update(ctx context.Context, data api.AccountUpdate) error
Update modifies an existing account by ID.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) AccountMemberships ¶
AccountMemberships is a factory that initializes and returns a AccountMembershipsClient.
func (*Client) AccountRoles ¶
AccountRoles is a factory that initializes and returns a AccountRolesClient.
func (*Client) Collections ¶
func (c *Client) Collections() (api.CollectionsClient, error)
Collections returns an CollectionsClient.
func (*Client) ServiceAccounts ¶
func (*Client) WorkspaceAccess ¶
func (c *Client) WorkspaceAccess(accountID uuid.UUID, workspaceID uuid.UUID) (api.WorkspaceAccessClient, error)
WorkspaceAccess is a factory that initializes and returns a WorkspaceAccessClient.
func (*Client) WorkspaceRoles ¶
WorkspaceRoles is a factory that initializes and returns a WorkspaceRolesClient.
func (*Client) Workspaces ¶
Workspaces returns a WorkspacesClient.
type CollectionsClient ¶
type CollectionsClient struct {
// contains filtered or unexported fields
}
func (*CollectionsClient) GetWorkerMetadataViews ¶
func (c *CollectionsClient) GetWorkerMetadataViews(ctx context.Context) (api.WorkerTypeByPackage, error)
GetWorkerMetadataViews returns a map of worker metadata views by prefect package name. This endpoint serves base job configurations for the primary worker types.
type Option ¶
func WithAPIKey ¶
WithAPIKey configures the API Key to use to authenticate to Prefect.
func WithClient ¶
WithClient configures the underlying http.Client used to send requests.
func WithDefaults ¶
WithDefaults configures the default account and workspace ID.
func WithEndpoint ¶
WithEndpoint configures the client to communicate with a self-hosted Prefect server or Prefect Cloud.
type ServiceAccountsClient ¶
type ServiceAccountsClient struct {
// contains filtered or unexported fields
}
func (*ServiceAccountsClient) Create ¶
func (sa *ServiceAccountsClient) Create(ctx context.Context, request api.ServiceAccountCreateRequest) (*api.ServiceAccount, error)
func (*ServiceAccountsClient) Delete ¶
func (sa *ServiceAccountsClient) Delete(ctx context.Context, botID string) error
func (*ServiceAccountsClient) Get ¶
func (sa *ServiceAccountsClient) Get(ctx context.Context, botID string) (*api.ServiceAccount, error)
func (*ServiceAccountsClient) List ¶
func (sa *ServiceAccountsClient) List(ctx context.Context, names []string) ([]*api.ServiceAccount, error)
func (*ServiceAccountsClient) RotateKey ¶
func (sa *ServiceAccountsClient) RotateKey(ctx context.Context, serviceAccountID string, data api.ServiceAccountRotateKeyRequest) (*api.ServiceAccount, error)
func (*ServiceAccountsClient) Update ¶
func (sa *ServiceAccountsClient) Update(ctx context.Context, botID string, request api.ServiceAccountUpdateRequest) error
type TeamsClient ¶
type TeamsClient struct {
// contains filtered or unexported fields
}
type VariablesClient ¶
type VariablesClient struct {
// contains filtered or unexported fields
}
VariablesClient is a client for working with variables.
func (*VariablesClient) Create ¶
func (c *VariablesClient) Create(ctx context.Context, data api.VariableCreate) (*api.Variable, error)
Create returns details for a new variable.
func (*VariablesClient) List ¶
func (c *VariablesClient) List(ctx context.Context, filter api.VariableFilter) ([]api.Variable, error)
List returns a list of variables matching filter criteria.
func (*VariablesClient) Update ¶
func (c *VariablesClient) Update(ctx context.Context, variableID uuid.UUID, data api.VariableUpdate) error
Update modifies an existing variable by ID.
type WorkPoolsClient ¶
type WorkPoolsClient struct {
// contains filtered or unexported fields
}
WorkPoolsClient is a client for working with work pools.
func (*WorkPoolsClient) Create ¶
func (c *WorkPoolsClient) Create(ctx context.Context, data api.WorkPoolCreate) (*api.WorkPool, error)
Create returns details for a new work pool.
func (*WorkPoolsClient) Delete ¶
func (c *WorkPoolsClient) Delete(ctx context.Context, name string) error
Delete removes a work pool by name.
func (*WorkPoolsClient) List ¶
func (c *WorkPoolsClient) List(ctx context.Context, filter api.WorkPoolFilter) ([]*api.WorkPool, error)
List returns a list of work pools matching filter criteria.
func (*WorkPoolsClient) Update ¶
func (c *WorkPoolsClient) Update(ctx context.Context, name string, data api.WorkPoolUpdate) error
Update modifies an existing work pool by name.
type WorkspaceAccessClient ¶
type WorkspaceAccessClient struct {
// contains filtered or unexported fields
}
func (*WorkspaceAccessClient) Delete ¶
func (c *WorkspaceAccessClient) Delete(ctx context.Context, accessorType string, accessID uuid.UUID, accessorID uuid.UUID) error
DeleteUserAccess deletes a service account's workspace access via accessID.
type WorkspaceRolesClient ¶
type WorkspaceRolesClient struct {
// contains filtered or unexported fields
}
func (*WorkspaceRolesClient) Create ¶
func (c *WorkspaceRolesClient) Create(ctx context.Context, data api.WorkspaceRoleUpsert) (*api.WorkspaceRole, error)
Create creates a new workspace role.
func (*WorkspaceRolesClient) Get ¶
func (c *WorkspaceRolesClient) Get(ctx context.Context, id uuid.UUID) (*api.WorkspaceRole, error)
Get returns a workspace role by ID.
func (*WorkspaceRolesClient) List ¶
func (c *WorkspaceRolesClient) List(ctx context.Context, roleNames []string) ([]*api.WorkspaceRole, error)
List returns a list of workspace roles, based on the provided filter.
func (*WorkspaceRolesClient) Update ¶
func (c *WorkspaceRolesClient) Update(ctx context.Context, workspaceRoleID uuid.UUID, data api.WorkspaceRoleUpsert) error
Update modifies an existing workspace role by ID.
type WorkspacesClient ¶
type WorkspacesClient struct {
// contains filtered or unexported fields
}
WorkspacesClient is a client for working with Workspaces.
func (*WorkspacesClient) Create ¶
func (c *WorkspacesClient) Create(ctx context.Context, data api.WorkspaceCreate) (*api.Workspace, error)
Create returns details for a new Workspace.
func (*WorkspacesClient) List ¶
func (c *WorkspacesClient) List(ctx context.Context, handleNames []string) ([]*api.Workspace, error)
List returns a list of Workspaces, based on the provided list of handle names.
func (*WorkspacesClient) Update ¶
func (c *WorkspacesClient) Update(ctx context.Context, workspaceID uuid.UUID, data api.WorkspaceUpdate) error
Update modifies an existing Workspace by ID.