auth0

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Mar 10, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package auth0 is a generated GoMock package.

Package auth0 is a generated GoMock package.

Package auth0 is a generated GoMock package.

Package auth0 is a generated GoMock package.

Index

Constants

This section is empty.

Variables

View Source
var (
	Bool         = auth0.Bool
	BoolValue    = auth0.BoolValue
	String       = auth0.String
	StringValue  = auth0.StringValue
	Int          = auth0.Int
	IntValue     = auth0.IntValue
	Float64      = auth0.Float64
	Float64Value = auth0.Float64Value
	Time         = auth0.Time
	TimeValue    = auth0.TimeValue
)

Alias all the helper methods so we can keep just typing `auth0.Bool` and the compiler can autocomplete our internal package.

Functions

This section is empty.

Types

type API

type API struct {
	Action          ActionAPI
	ActionVersion   ActionVersionAPI
	ActionExecution ActionExecutionAPI
	ActionBinding   ActionBindingAPI
	Client          ClientAPI
	Log             LogAPI
	ResourceServer  ResourceServerAPI
}

API mimics `management.Management`s general interface, except it refers to the interfaces instead of the concrete structs.

func NewAPI

func NewAPI(m *management.Management) *API

type ActionAPI

type ActionAPI interface {
	Create(a *management.Action) error
	Read(id string) (*management.Action, error)
	Update(id string, a *management.Action) error
	Delete(id string, opts ...management.RequestOption) error
	List(opts ...management.RequestOption) (c *management.ActionList, err error)
}

type ActionBindingAPI

type ActionBindingAPI interface {
	Create(triggerID management.TriggerID, action *management.Action) (ab *management.ActionBinding, err error)
	List(triggerID management.TriggerID, opts ...management.RequestOption) (c *management.ActionBindingList, err error)
	Update(triggerID management.TriggerID, v []*management.ActionBinding) (list *management.ActionBindingList, err error)
}

type ActionExecutionAPI

type ActionExecutionAPI interface {
	Read(id string) (*management.ActionExecution, error)
}

type ActionVersionAPI

type ActionVersionAPI interface {
	Create(actionID string, v *management.ActionVersion) error
	Read(actionID string, id string) (*management.ActionVersion, error)
	UpsertDraft(actionID string, v *management.ActionVersion) error
	ReadDraft(actionID string) (*management.ActionVersion, error)
	Delete(actionID string, id string, opts ...management.RequestOption) error
	List(actionID string, opts ...management.RequestOption) (c *management.ActionVersionList, err error)
	Test(actionID string, id string, payload management.Object) (management.Object, error)
	Deploy(actionID string, id string) (*management.ActionVersion, error)
}

type ClientAPI

type ClientAPI interface {
	// Create a new client application.
	Create(c *management.Client, opts ...management.RequestOption) (err error)

	// Read a client by its id.
	Read(id string, opts ...management.RequestOption) (c *management.Client, err error)

	// List all client applications.
	List(opts ...management.RequestOption) (c *management.ClientList, err error)

	// Update a client.
	Update(id string, c *management.Client, opts ...management.RequestOption) (err error)

	// RotateSecret rotates a client secret.
	RotateSecret(id string, opts ...management.RequestOption) (c *management.Client, err error)

	// Delete a client and all its related assets (like rules, connections, etc)
	// given its id.
	Delete(id string, opts ...management.RequestOption) error
}

type LogAPI

type LogAPI interface {
	// Retrieves the data related to the log entry identified by id. This returns a
	// single log entry representation as specified in the schema.
	Read(id string, opts ...management.RequestOption) (l *management.Log, err error)

	// List all log entries that match the specified search criteria (or lists all
	// log entries if no criteria are used). Set custom search criteria using the
	// `q` parameter, or search from a specific log id ("search from checkpoint").
	//
	// For more information on all possible event types, their respective acronyms
	// and descriptions, Log Data Event Listing.
	List(opts ...management.RequestOption) (l []*management.Log, err error)

	// Search is an alias for List
	Search(opts ...management.RequestOption) ([]*management.Log, error)
}

type MockActionsAPI

type MockActionsAPI struct {
	// contains filtered or unexported fields
}

MockActionsAPI is a mock of ActionsAPI interface

func NewMockActionsAPI

func NewMockActionsAPI(ctrl *gomock.Controller) *MockActionsAPI

NewMockActionsAPI creates a new mock instance

func (*MockActionsAPI) Create

func (m *MockActionsAPI) Create(a *management.Action) error

Create mocks base method

func (*MockActionsAPI) Delete

func (m *MockActionsAPI) Delete(id string, opts ...management.RequestOption) error

Delete mocks base method

func (*MockActionsAPI) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockActionsAPI) List

List mocks base method

func (*MockActionsAPI) Read

func (m *MockActionsAPI) Read(id string) (*management.Action, error)

Read mocks base method

func (*MockActionsAPI) Update

func (m *MockActionsAPI) Update(id string, a *management.Action) error

Update mocks base method

type MockActionsAPIMockRecorder

type MockActionsAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockActionsAPIMockRecorder is the mock recorder for MockActionsAPI

func (*MockActionsAPIMockRecorder) Create

func (mr *MockActionsAPIMockRecorder) Create(a interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockActionsAPIMockRecorder) Delete

func (mr *MockActionsAPIMockRecorder) Delete(id interface{}, opts ...interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockActionsAPIMockRecorder) List

func (mr *MockActionsAPIMockRecorder) List(opts ...interface{}) *gomock.Call

List indicates an expected call of List

func (*MockActionsAPIMockRecorder) Read

func (mr *MockActionsAPIMockRecorder) Read(id interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockActionsAPIMockRecorder) Update

func (mr *MockActionsAPIMockRecorder) Update(id, a interface{}) *gomock.Call

Update indicates an expected call of Update

type MockClientAPI

type MockClientAPI struct {
	// contains filtered or unexported fields
}

MockClientAPI is a mock of ClientAPI interface

func NewMockClientAPI

func NewMockClientAPI(ctrl *gomock.Controller) *MockClientAPI

NewMockClientAPI creates a new mock instance

func (*MockClientAPI) Create

Create mocks base method

func (*MockClientAPI) Delete

func (m *MockClientAPI) Delete(id string, opts ...management.RequestOption) error

Delete mocks base method

func (*MockClientAPI) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockClientAPI) List

List mocks base method

func (*MockClientAPI) Read

Read mocks base method

func (*MockClientAPI) RotateSecret

func (m *MockClientAPI) RotateSecret(id string, opts ...management.RequestOption) (*management.Client, error)

RotateSecret mocks base method

func (*MockClientAPI) Update

func (m *MockClientAPI) Update(id string, c *management.Client, opts ...management.RequestOption) error

Update mocks base method

type MockClientAPIMockRecorder

type MockClientAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockClientAPIMockRecorder is the mock recorder for MockClientAPI

func (*MockClientAPIMockRecorder) Create

func (mr *MockClientAPIMockRecorder) Create(c interface{}, opts ...interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockClientAPIMockRecorder) Delete

func (mr *MockClientAPIMockRecorder) Delete(id interface{}, opts ...interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockClientAPIMockRecorder) List

func (mr *MockClientAPIMockRecorder) List(opts ...interface{}) *gomock.Call

List indicates an expected call of List

func (*MockClientAPIMockRecorder) Read

func (mr *MockClientAPIMockRecorder) Read(id interface{}, opts ...interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockClientAPIMockRecorder) RotateSecret

func (mr *MockClientAPIMockRecorder) RotateSecret(id interface{}, opts ...interface{}) *gomock.Call

RotateSecret indicates an expected call of RotateSecret

func (*MockClientAPIMockRecorder) Update

func (mr *MockClientAPIMockRecorder) Update(id, c interface{}, opts ...interface{}) *gomock.Call

Update indicates an expected call of Update

type MockLogAPI

type MockLogAPI struct {
	// contains filtered or unexported fields
}

MockLogAPI is a mock of LogAPI interface

func NewMockLogAPI

func NewMockLogAPI(ctrl *gomock.Controller) *MockLogAPI

NewMockLogAPI creates a new mock instance

func (*MockLogAPI) EXPECT

func (m *MockLogAPI) EXPECT() *MockLogAPIMockRecorder

EXPECT returns an object that allows the caller to indicate expected use

func (*MockLogAPI) List

func (m *MockLogAPI) List(opts ...management.RequestOption) ([]*management.Log, error)

List mocks base method

func (*MockLogAPI) Read

func (m *MockLogAPI) Read(id string, opts ...management.RequestOption) (*management.Log, error)

Read mocks base method

func (*MockLogAPI) Search

func (m *MockLogAPI) Search(opts ...management.RequestOption) ([]*management.Log, error)

Search mocks base method

type MockLogAPIMockRecorder

type MockLogAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockLogAPIMockRecorder is the mock recorder for MockLogAPI

func (*MockLogAPIMockRecorder) List

func (mr *MockLogAPIMockRecorder) List(opts ...interface{}) *gomock.Call

List indicates an expected call of List

func (*MockLogAPIMockRecorder) Read

func (mr *MockLogAPIMockRecorder) Read(id interface{}, opts ...interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockLogAPIMockRecorder) Search

func (mr *MockLogAPIMockRecorder) Search(opts ...interface{}) *gomock.Call

Search indicates an expected call of Search

type MockResourceServerAPI

type MockResourceServerAPI struct {
	// contains filtered or unexported fields
}

MockResourceServerAPI is a mock of ResourceServerAPI interface

func NewMockResourceServerAPI

func NewMockResourceServerAPI(ctrl *gomock.Controller) *MockResourceServerAPI

NewMockResourceServerAPI creates a new mock instance

func (*MockResourceServerAPI) Create

Create mocks base method

func (*MockResourceServerAPI) Delete

Delete mocks base method

func (*MockResourceServerAPI) EXPECT

EXPECT returns an object that allows the caller to indicate expected use

func (*MockResourceServerAPI) List

List mocks base method

func (*MockResourceServerAPI) Read

Read mocks base method

func (*MockResourceServerAPI) Stream

Stream mocks base method

func (*MockResourceServerAPI) Update

Update mocks base method

type MockResourceServerAPIMockRecorder

type MockResourceServerAPIMockRecorder struct {
	// contains filtered or unexported fields
}

MockResourceServerAPIMockRecorder is the mock recorder for MockResourceServerAPI

func (*MockResourceServerAPIMockRecorder) Create

func (mr *MockResourceServerAPIMockRecorder) Create(rs interface{}, opts ...interface{}) *gomock.Call

Create indicates an expected call of Create

func (*MockResourceServerAPIMockRecorder) Delete

func (mr *MockResourceServerAPIMockRecorder) Delete(id interface{}, opts ...interface{}) *gomock.Call

Delete indicates an expected call of Delete

func (*MockResourceServerAPIMockRecorder) List

func (mr *MockResourceServerAPIMockRecorder) List(opts ...interface{}) *gomock.Call

List indicates an expected call of List

func (*MockResourceServerAPIMockRecorder) Read

func (mr *MockResourceServerAPIMockRecorder) Read(id interface{}, opts ...interface{}) *gomock.Call

Read indicates an expected call of Read

func (*MockResourceServerAPIMockRecorder) Stream

func (mr *MockResourceServerAPIMockRecorder) Stream(fn interface{}, opts ...interface{}) *gomock.Call

Stream indicates an expected call of Stream

func (*MockResourceServerAPIMockRecorder) Update

func (mr *MockResourceServerAPIMockRecorder) Update(id, rs interface{}, opts ...interface{}) *gomock.Call

Update indicates an expected call of Update

type ResourceServerAPI

type ResourceServerAPI interface {
	// Create a resource server.
	Create(rs *management.ResourceServer, opts ...management.RequestOption) (err error)

	// Read retrieves a resource server by its id or audience.
	Read(id string, opts ...management.RequestOption) (rs *management.ResourceServer, err error)

	// Update a resource server.
	Update(id string, rs *management.ResourceServer, opts ...management.RequestOption) (err error)

	// Delete a resource server.
	Delete(id string, opts ...management.RequestOption) (err error)

	// List all resource server.
	List(opts ...management.RequestOption) (rl *management.ResourceServerList, err error)

	// Stream is a helper method which handles pagination
	Stream(fn func(s *management.ResourceServer), opts ...management.RequestOption) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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