Documentation ¶
Overview ¶
* Copyright © 2018 Prateek Malhotra <someone1@gmail.com> * * 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. * * Based on https://github.com/ory/hydra/blob/master/jwk/manager_sql.go
Index ¶
- type DatastoreManager
- func (d *DatastoreManager) AddKey(ctx context.Context, set string, key *jose.JSONWebKey) error
- func (d *DatastoreManager) AddKeySet(ctx context.Context, set string, keys *jose.JSONWebKeySet) error
- func (d *DatastoreManager) DeleteKey(ctx context.Context, set, kid string) error
- func (d *DatastoreManager) DeleteKeySet(ctx context.Context, set string) error
- func (d *DatastoreManager) GetKey(ctx context.Context, set, kid string) (*jose.JSONWebKeySet, error)
- func (d *DatastoreManager) GetKeySet(ctx context.Context, set string) (*jose.JSONWebKeySet, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatastoreManager ¶
func NewDatastoreManager ¶
func (*DatastoreManager) AddKey ¶
func (d *DatastoreManager) AddKey(ctx context.Context, set string, key *jose.JSONWebKey) error
func (*DatastoreManager) AddKeySet ¶
func (d *DatastoreManager) AddKeySet(ctx context.Context, set string, keys *jose.JSONWebKeySet) error
func (*DatastoreManager) DeleteKey ¶
func (d *DatastoreManager) DeleteKey(ctx context.Context, set, kid string) error
func (*DatastoreManager) DeleteKeySet ¶
func (d *DatastoreManager) DeleteKeySet(ctx context.Context, set string) error