Documentation
¶
Overview ¶
Copyright 2022 Evan Hazlett
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Evan Hazlett ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Evan Hazlett ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Evan Hazlett ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Evan Hazlett ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Evan Hazlett ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Evan Hazlett ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Copyright 2022 Evan Hazlett ¶
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Index ¶
- type Postgres
- func (p *Postgres) ChangePassword(ctx context.Context, account *api.Account, password []byte) error
- func (p *Postgres) CreateAPIToken(ctx context.Context, apiToken *api.APIToken) error
- func (p *Postgres) CreateAccount(ctx context.Context, account *api.Account) error
- func (p *Postgres) CreateNamespace(ctx context.Context, namespace *api.Namespace) (string, error)
- func (p *Postgres) CreateQueueWorkflow(ctx context.Context, workflow *api.Workflow) error
- func (p *Postgres) CreateServiceToken(ctx context.Context, serviceToken *api.ServiceToken) error
- func (p *Postgres) CreateWorkflow(ctx context.Context, workflow *api.Workflow) error
- func (p *Postgres) DeleteAPIToken(ctx context.Context, token string) error
- func (p *Postgres) DeleteAccount(ctx context.Context, username string) error
- func (p *Postgres) DeleteNamespace(ctx context.Context, id string) error
- func (p *Postgres) DeleteQueueWorkflow(ctx context.Context, id string) error
- func (p *Postgres) DeleteServiceToken(ctx context.Context, token string) error
- func (p *Postgres) DeleteWorkflow(ctx context.Context, id string) error
- func (p *Postgres) GetAPIToken(ctx context.Context, token string) (*api.APIToken, error)
- func (p *Postgres) GetAPITokens(ctx context.Context) ([]*api.APIToken, error)
- func (p *Postgres) GetAccount(ctx context.Context, username string) (*api.Account, error)
- func (p *Postgres) GetAccountByID(ctx context.Context, id string) (*api.Account, error)
- func (p *Postgres) GetAccounts(ctx context.Context) ([]*api.Account, error)
- func (p *Postgres) GetAuthenticatorKey(ctx context.Context, a auth.Authenticator, key string) ([]byte, error)
- func (p *Postgres) GetAuthenticatorKeys(ctx context.Context, a auth.Authenticator, prefix string) ([][]byte, error)
- func (p *Postgres) GetNamespace(ctx context.Context, id string) (*api.Namespace, error)
- func (p *Postgres) GetNamespaces(ctx context.Context) ([]*api.Namespace, error)
- func (p *Postgres) GetNextQueueWorkflow(ctx context.Context, queueType string, scope *api.ProcessorScope) (*api.Workflow, error)
- func (p *Postgres) GetServiceToken(ctx context.Context, token string) (*api.ServiceToken, error)
- func (p *Postgres) GetServiceTokens(ctx context.Context) ([]*api.ServiceToken, error)
- func (p *Postgres) GetWorkflow(ctx context.Context, id string) (*api.Workflow, error)
- func (p *Postgres) GetWorkflows(ctx context.Context) ([]*api.Workflow, error)
- func (p *Postgres) SetAuthenticatorKey(ctx context.Context, a auth.Authenticator, key string, value []byte, ...) error
- func (p *Postgres) UpdateAPIToken(ctx context.Context, apiToken *api.APIToken) error
- func (p *Postgres) UpdateAccount(ctx context.Context, account *api.Account) error
- func (p *Postgres) UpdateNamespace(ctx context.Context, namespace *api.Namespace) error
- func (p *Postgres) UpdateServiceToken(ctx context.Context, serviceToken *api.ServiceToken) error
- func (p *Postgres) UpdateWorkflow(ctx context.Context, workflow *api.Workflow) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}