server

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ListenAndServe

func ListenAndServe(ctx context.Context, opts *Options) error

Types

type CognitoClient

type CognitoClient interface {
	DeleteUserPoolClient(
		ctx context.Context,
		params *cognito.DeleteUserPoolClientInput,
		optFns ...func(*cognito.Options),
	) (*cognito.DeleteUserPoolClientOutput, error)

	CreateUserPoolClient(
		ctx context.Context,
		params *cognito.CreateUserPoolClientInput,
		optFns ...func(*cognito.Options),
	) (*cognito.CreateUserPoolClientOutput, error)

	UpdateUserPoolClient(
		ctx context.Context,
		params *cognito.UpdateUserPoolClientInput,
		optFns ...func(*cognito.Options),
	) (*cognito.UpdateUserPoolClientOutput, error)

	CreateResourceServer(
		ctx context.Context,
		params *cognito.CreateResourceServerInput,
		optFns ...func(*cognito.Options),
	) (*cognito.CreateResourceServerOutput, error)

	DescribeResourceServer(
		ctx context.Context,
		params *cognito.DescribeResourceServerInput,
		optFns ...func(*cognito.Options),
	) (*cognito.DescribeResourceServerOutput, error)

	UpdateResourceServer(
		ctx context.Context,
		params *cognito.UpdateResourceServerInput,
		optFns ...func(*cognito.Options),
	) (*cognito.UpdateResourceServerOutput, error)
}

type Options

type Options struct {
	Port            string
	CognitoUserPool string
	ResourceServer  string
}

func (*Options) AddToFlags

func (o *Options) AddToFlags(flag *pflag.FlagSet)

func (*Options) Validate

func (o *Options) Validate() error

type StrictServerHandler

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

func NewStrictServerHandler

func NewStrictServerHandler(opts *Options, cognitoClient CognitoClient) *StrictServerHandler

func (*StrictServerHandler) CreateOAuthApplication

CreateOAuthApplication creates a client in Cognito

func (*StrictServerHandler) DeleteOAuthApplication

DeleteOAuthApplication deletes an application by ID.

Directories

Path Synopsis
Package mock_server is a generated GoMock package.
Package mock_server is a generated GoMock package.

Jump to

Keyboard shortcuts

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