storage

package
v0.0.0-...-987a2ef Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2020 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package storage defines an interface, which all osin-storage implementations are going to support.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	osin.Client

	// GetName
	GetName() string

	// CopyFrom
	CopyFrom(Client)
}

Client ...

type Storage

type Storage interface {
	osin.Storage

	// CreateClient stores the client in the database and returns an error if something went wrong.
	SaveClient(client Client) error

	// RemoveClient removes a client (identified by id) from the database. Returns an error if something went wrong.
	RemoveClient(id string) error
}

Storage extends github.com/openshift/osin.Storage with create, update and delete methods for clients.

Directories

Path Synopsis
Package pg is a osin storage implementation for postgres.
Package pg is a osin storage implementation for postgres.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL