authconnectionconnect

package
v1.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// AuthConnectionServiceCreateAuthConnectionProcedure is the fully-qualified name of the
	// AuthConnectionService's CreateAuthConnection RPC.
	AuthConnectionServiceCreateAuthConnectionProcedure = "/api.v1alpha1.org.authconnection.AuthConnectionService/CreateAuthConnection"
	// AuthConnectionServiceListAuthConnectionIdsProcedure is the fully-qualified name of the
	// AuthConnectionService's ListAuthConnectionIds RPC.
	AuthConnectionServiceListAuthConnectionIdsProcedure = "/api.v1alpha1.org.authconnection.AuthConnectionService/ListAuthConnectionIds"
	// AuthConnectionServiceGetAuthConnectionSettingsProcedure is the fully-qualified name of the
	// AuthConnectionService's GetAuthConnectionSettings RPC.
	AuthConnectionServiceGetAuthConnectionSettingsProcedure = "/api.v1alpha1.org.authconnection.AuthConnectionService/GetAuthConnectionSettings"
	// AuthConnectionServiceGetAuthConnectionProcedure is the fully-qualified name of the
	// AuthConnectionService's GetAuthConnection RPC.
	AuthConnectionServiceGetAuthConnectionProcedure = "/api.v1alpha1.org.authconnection.AuthConnectionService/GetAuthConnection"
	// AuthConnectionServiceDeleteAuthConnectionProcedure is the fully-qualified name of the
	// AuthConnectionService's DeleteAuthConnection RPC.
	AuthConnectionServiceDeleteAuthConnectionProcedure = "/api.v1alpha1.org.authconnection.AuthConnectionService/DeleteAuthConnection"
	// AuthConnectionServiceUpdateAuthConnectionSecretProcedure is the fully-qualified name of the
	// AuthConnectionService's UpdateAuthConnectionSecret RPC.
	AuthConnectionServiceUpdateAuthConnectionSecretProcedure = "/api.v1alpha1.org.authconnection.AuthConnectionService/UpdateAuthConnectionSecret"
	// AuthConnectionServiceUpdateAuthConnectionGroupsProcedure is the fully-qualified name of the
	// AuthConnectionService's UpdateAuthConnectionGroups RPC.
	AuthConnectionServiceUpdateAuthConnectionGroupsProcedure = "/api.v1alpha1.org.authconnection.AuthConnectionService/UpdateAuthConnectionGroups"
)

These constants are the fully-qualified names of the RPCs defined in this package. They're exposed at runtime as Spec.Procedure and as the final two segments of the HTTP route.

Note that these are different from the fully-qualified method names used by google.golang.org/protobuf/reflect/protoreflect. To convert from these constants to reflection-formatted method names, remove the leading slash and convert the remaining slash to a period.

View Source
const (
	// AuthConnectionServiceName is the fully-qualified name of the AuthConnectionService service.
	AuthConnectionServiceName = "api.v1alpha1.org.authconnection.AuthConnectionService"
)

Variables

This section is empty.

Functions

func NewAuthConnectionServiceHandler

func NewAuthConnectionServiceHandler(svc AuthConnectionServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewAuthConnectionServiceHandler builds an HTTP handler from the service implementation. It returns the path on which to mount the handler and the handler itself.

By default, handlers support the Connect, gRPC, and gRPC-Web protocols with the binary Protobuf and JSON codecs. They also support gzip compression.

Types

type AuthConnectionServiceClient

type AuthConnectionServiceClient interface {
	// CreateAuthConnection creates a new auth0 connection.
	CreateAuthConnection(context.Context, *connect_go.Request[authconnection.CreateAuthConnectionRequest]) (*connect_go.Response[authconnection.CreateAuthConnectionResponse], error)
	// ListAuthConnectionIds returns the IDs of all authconnections belonging to the current org.
	ListAuthConnectionIds(context.Context, *connect_go.Request[authconnection.ListAuthConnectionIdsRequest]) (*connect_go.Response[authconnection.ListAuthConnectionIdsResponse], error)
	// GetAuthConnectionSettings gets auth connection settings.
	// DEPRECATED: use GetAuthConnection
	GetAuthConnectionSettings(context.Context, *connect_go.Request[authconnection.GetAuthConnectionSettingsRequest]) (*connect_go.Response[authconnection.GetAuthConnectionSettingsResponse], error)
	// GetAuthConnection gets an existing auth connection.
	GetAuthConnection(context.Context, *connect_go.Request[authconnection.GetAuthConnectionRequest]) (*connect_go.Response[authconnection.GetAuthConnectionResponse], error)
	// DeleteAuthConnection removes the current orgs auth settings.
	DeleteAuthConnection(context.Context, *connect_go.Request[authconnection.DeleteAuthConnectionRequest]) (*connect_go.Response[authconnection.DeleteAuthConnectionResponse], error)
	// UpdateAuthConnectionSecret updates a connections secret.
	UpdateAuthConnectionSecret(context.Context, *connect_go.Request[authconnection.UpdateAuthConnectionSecretRequest]) (*connect_go.Response[authconnection.UpdateAuthConnectionSecretResponse], error)
	// UpdateAuthConnectionGroups updates a connections groups.
	UpdateAuthConnectionGroups(context.Context, *connect_go.Request[authconnection.UpdateAuthConnectionGroupsRequest]) (*connect_go.Response[authconnection.UpdateAuthConnectionGroupsResponse], error)
}

AuthConnectionServiceClient is a client for the api.v1alpha1.org.authconnection.AuthConnectionService service.

func NewAuthConnectionServiceClient

func NewAuthConnectionServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) AuthConnectionServiceClient

NewAuthConnectionServiceClient constructs a client for the api.v1alpha1.org.authconnection.AuthConnectionService service. By default, it uses the Connect protocol with the binary Protobuf Codec, asks for gzipped responses, and sends uncompressed requests. To use the gRPC or gRPC-Web protocols, supply the connect.WithGRPC() or connect.WithGRPCWeb() options.

The URL supplied here should be the base URL for the Connect or gRPC server (for example, http://api.acme.com or https://acme.com/grpc).

type AuthConnectionServiceHandler

type AuthConnectionServiceHandler interface {
	// CreateAuthConnection creates a new auth0 connection.
	CreateAuthConnection(context.Context, *connect_go.Request[authconnection.CreateAuthConnectionRequest]) (*connect_go.Response[authconnection.CreateAuthConnectionResponse], error)
	// ListAuthConnectionIds returns the IDs of all authconnections belonging to the current org.
	ListAuthConnectionIds(context.Context, *connect_go.Request[authconnection.ListAuthConnectionIdsRequest]) (*connect_go.Response[authconnection.ListAuthConnectionIdsResponse], error)
	// GetAuthConnectionSettings gets auth connection settings.
	// DEPRECATED: use GetAuthConnection
	GetAuthConnectionSettings(context.Context, *connect_go.Request[authconnection.GetAuthConnectionSettingsRequest]) (*connect_go.Response[authconnection.GetAuthConnectionSettingsResponse], error)
	// GetAuthConnection gets an existing auth connection.
	GetAuthConnection(context.Context, *connect_go.Request[authconnection.GetAuthConnectionRequest]) (*connect_go.Response[authconnection.GetAuthConnectionResponse], error)
	// DeleteAuthConnection removes the current orgs auth settings.
	DeleteAuthConnection(context.Context, *connect_go.Request[authconnection.DeleteAuthConnectionRequest]) (*connect_go.Response[authconnection.DeleteAuthConnectionResponse], error)
	// UpdateAuthConnectionSecret updates a connections secret.
	UpdateAuthConnectionSecret(context.Context, *connect_go.Request[authconnection.UpdateAuthConnectionSecretRequest]) (*connect_go.Response[authconnection.UpdateAuthConnectionSecretResponse], error)
	// UpdateAuthConnectionGroups updates a connections groups.
	UpdateAuthConnectionGroups(context.Context, *connect_go.Request[authconnection.UpdateAuthConnectionGroupsRequest]) (*connect_go.Response[authconnection.UpdateAuthConnectionGroupsResponse], error)
}

AuthConnectionServiceHandler is an implementation of the api.v1alpha1.org.authconnection.AuthConnectionService service.

type UnimplementedAuthConnectionServiceHandler

type UnimplementedAuthConnectionServiceHandler struct{}

UnimplementedAuthConnectionServiceHandler returns CodeUnimplemented from all methods.

Jump to

Keyboard shortcuts

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