api

package
v6.38.0 Latest Latest
Warning

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

Go to latest
Published: Feb 1, 2023 License: Apache-2.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewBothAuthServiceCLICommand added in v6.18.0

func NewBothAuthServiceCLICommand() *cobra.Command

func NewBothAuthServiceCLICommandWithClientProvider added in v6.18.0

func NewBothAuthServiceCLICommandWithClientProvider(clientProvider CLIBothAuthServiceClientProvider) *cobra.Command

func NewCookieAuthServiceCLICommand added in v6.18.0

func NewCookieAuthServiceCLICommand() *cobra.Command

func NewCookieAuthServiceCLICommandWithClientProvider added in v6.18.0

func NewCookieAuthServiceCLICommandWithClientProvider(clientProvider CLICookieAuthServiceClientProvider) *cobra.Command

func NewHeaderAuthServiceCLICommand added in v6.18.0

func NewHeaderAuthServiceCLICommand() *cobra.Command

func NewHeaderAuthServiceCLICommandWithClientProvider added in v6.18.0

func NewHeaderAuthServiceCLICommandWithClientProvider(clientProvider CLIHeaderAuthServiceClientProvider) *cobra.Command

func NewSomeHeaderAuthServiceCLICommand added in v6.18.0

func NewSomeHeaderAuthServiceCLICommand() *cobra.Command

func NewSomeHeaderAuthServiceCLICommandWithClientProvider added in v6.18.0

func NewSomeHeaderAuthServiceCLICommandWithClientProvider(clientProvider CLISomeHeaderAuthServiceClientProvider) *cobra.Command

func RegisterRoutesBothAuthService

func RegisterRoutesBothAuthService(router wrouter.Router, impl BothAuthService, routerParams ...wrouter.RouteParam) error

RegisterRoutesBothAuthService registers handlers for the BothAuthService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.

func RegisterRoutesCookieAuthService

func RegisterRoutesCookieAuthService(router wrouter.Router, impl CookieAuthService, routerParams ...wrouter.RouteParam) error

RegisterRoutesCookieAuthService registers handlers for the CookieAuthService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.

func RegisterRoutesHeaderAuthService

func RegisterRoutesHeaderAuthService(router wrouter.Router, impl HeaderAuthService, routerParams ...wrouter.RouteParam) error

RegisterRoutesHeaderAuthService registers handlers for the HeaderAuthService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.

func RegisterRoutesSomeHeaderAuthService

func RegisterRoutesSomeHeaderAuthService(router wrouter.Router, impl SomeHeaderAuthService, routerParams ...wrouter.RouteParam) error

RegisterRoutesSomeHeaderAuthService registers handlers for the SomeHeaderAuthService endpoints with a witchcraft wrouter. This should typically be called in a witchcraft server's InitFunc. impl provides an implementation of each endpoint, which can assume the request parameters have been parsed in accordance with the Conjure specification.

Types

type BothAuthService

type BothAuthService interface {
	Default(ctx context.Context, authHeader bearertoken.Token) (string, error)
	Cookie(ctx context.Context, cookieToken bearertoken.Token) error
	None(ctx context.Context) error
	WithArg(ctx context.Context, authHeader bearertoken.Token, argArg string) error
}

type BothAuthServiceCLICommand added in v6.18.0

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

type BothAuthServiceClient

type BothAuthServiceClient interface {
	Default(ctx context.Context, authHeader bearertoken.Token) (string, error)
	Cookie(ctx context.Context, cookieToken bearertoken.Token) error
	None(ctx context.Context) error
	WithArg(ctx context.Context, authHeader bearertoken.Token, argArg string) error
}

func NewBothAuthServiceClient

func NewBothAuthServiceClient(client httpclient.Client) BothAuthServiceClient

type BothAuthServiceClientWithAuth

type BothAuthServiceClientWithAuth interface {
	Default(ctx context.Context) (string, error)
	Cookie(ctx context.Context) error
	None(ctx context.Context) error
	WithArg(ctx context.Context, argArg string) error
}

func NewBothAuthServiceClientWithAuth

func NewBothAuthServiceClientWithAuth(client BothAuthServiceClient, authHeader bearertoken.Token, cookieToken bearertoken.Token) BothAuthServiceClientWithAuth

type CLIBothAuthServiceClientProvider added in v6.18.0

type CLIBothAuthServiceClientProvider interface {
	Get(ctx context.Context, flags *pflag.FlagSet) (BothAuthServiceClient, error)
}

func NewDefaultCLIBothAuthServiceClientProvider added in v6.18.0

func NewDefaultCLIBothAuthServiceClientProvider() CLIBothAuthServiceClientProvider

type CLIConfig added in v6.18.0

type CLIConfig struct {
	Client httpclient.ClientConfig `yaml:",inline"`
}

type CLICookieAuthServiceClientProvider added in v6.18.0

type CLICookieAuthServiceClientProvider interface {
	Get(ctx context.Context, flags *pflag.FlagSet) (CookieAuthServiceClient, error)
}

func NewDefaultCLICookieAuthServiceClientProvider added in v6.18.0

func NewDefaultCLICookieAuthServiceClientProvider() CLICookieAuthServiceClientProvider

type CLIHeaderAuthServiceClientProvider added in v6.18.0

type CLIHeaderAuthServiceClientProvider interface {
	Get(ctx context.Context, flags *pflag.FlagSet) (HeaderAuthServiceClient, error)
}

func NewDefaultCLIHeaderAuthServiceClientProvider added in v6.18.0

func NewDefaultCLIHeaderAuthServiceClientProvider() CLIHeaderAuthServiceClientProvider

type CLISomeHeaderAuthServiceClientProvider added in v6.18.0

type CLISomeHeaderAuthServiceClientProvider interface {
	Get(ctx context.Context, flags *pflag.FlagSet) (SomeHeaderAuthServiceClient, error)
}

func NewDefaultCLISomeHeaderAuthServiceClientProvider added in v6.18.0

func NewDefaultCLISomeHeaderAuthServiceClientProvider() CLISomeHeaderAuthServiceClientProvider

type CookieAuthService

type CookieAuthService interface {
	Cookie(ctx context.Context, cookieToken bearertoken.Token) error
}

type CookieAuthServiceCLICommand added in v6.18.0

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

type CookieAuthServiceClient

type CookieAuthServiceClient interface {
	Cookie(ctx context.Context, cookieToken bearertoken.Token) error
}

func NewCookieAuthServiceClient

func NewCookieAuthServiceClient(client httpclient.Client) CookieAuthServiceClient

type CookieAuthServiceClientWithAuth

type CookieAuthServiceClientWithAuth interface {
	Cookie(ctx context.Context) error
}

func NewCookieAuthServiceClientWithAuth

func NewCookieAuthServiceClientWithAuth(client CookieAuthServiceClient, cookieToken bearertoken.Token) CookieAuthServiceClientWithAuth

func NewCookieAuthServiceClientWithTokenProvider

func NewCookieAuthServiceClientWithTokenProvider(client CookieAuthServiceClient, tokenProvider httpclient.TokenProvider) CookieAuthServiceClientWithAuth

type HeaderAuthService

type HeaderAuthService interface {
	Default(ctx context.Context, authHeader bearertoken.Token) (string, error)
	Binary(ctx context.Context, authHeader bearertoken.Token) (io.ReadCloser, error)
	BinaryOptional(ctx context.Context, authHeader bearertoken.Token) (*io.ReadCloser, error)
}

type HeaderAuthServiceCLICommand added in v6.18.0

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

type HeaderAuthServiceClient

type HeaderAuthServiceClient interface {
	Default(ctx context.Context, authHeader bearertoken.Token) (string, error)
	Binary(ctx context.Context, authHeader bearertoken.Token) (io.ReadCloser, error)
	BinaryOptional(ctx context.Context, authHeader bearertoken.Token) (*io.ReadCloser, error)
}

func NewHeaderAuthServiceClient

func NewHeaderAuthServiceClient(client httpclient.Client) HeaderAuthServiceClient

type HeaderAuthServiceClientWithAuth

type HeaderAuthServiceClientWithAuth interface {
	Default(ctx context.Context) (string, error)
	Binary(ctx context.Context) (io.ReadCloser, error)
	BinaryOptional(ctx context.Context) (*io.ReadCloser, error)
}

func NewHeaderAuthServiceClientWithAuth

func NewHeaderAuthServiceClientWithAuth(client HeaderAuthServiceClient, authHeader bearertoken.Token) HeaderAuthServiceClientWithAuth

func NewHeaderAuthServiceClientWithTokenProvider

func NewHeaderAuthServiceClientWithTokenProvider(client HeaderAuthServiceClient, tokenProvider httpclient.TokenProvider) HeaderAuthServiceClientWithAuth

type SomeHeaderAuthService

type SomeHeaderAuthService interface {
	Default(ctx context.Context, authHeader bearertoken.Token) (string, error)
	None(ctx context.Context) error
}

type SomeHeaderAuthServiceCLICommand added in v6.18.0

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

type SomeHeaderAuthServiceClient

type SomeHeaderAuthServiceClient interface {
	Default(ctx context.Context, authHeader bearertoken.Token) (string, error)
	None(ctx context.Context) error
}

func NewSomeHeaderAuthServiceClient

func NewSomeHeaderAuthServiceClient(client httpclient.Client) SomeHeaderAuthServiceClient

type SomeHeaderAuthServiceClientWithAuth

type SomeHeaderAuthServiceClientWithAuth interface {
	Default(ctx context.Context) (string, error)
	None(ctx context.Context) error
}

Jump to

Keyboard shortcuts

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