authzadminv1alphaconnect

package
v0.0.0-...-9fa10a5 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClientAdminServiceCreateClientProcedure is the fully-qualified name of the ClientAdminService's
	// CreateClient RPC.
	ClientAdminServiceCreateClientProcedure = "/blocky.authz.admin.v1alpha.ClientAdminService/CreateClient"
	// ClientAdminServiceListClientProcedure is the fully-qualified name of the ClientAdminService's
	// ListClient RPC.
	ClientAdminServiceListClientProcedure = "/blocky.authz.admin.v1alpha.ClientAdminService/ListClient"
	// ClientAdminServiceGetClientProcedure is the fully-qualified name of the ClientAdminService's
	// GetClient RPC.
	ClientAdminServiceGetClientProcedure = "/blocky.authz.admin.v1alpha.ClientAdminService/GetClient"
	// ClientAdminServiceUpdateClientProcedure is the fully-qualified name of the ClientAdminService's
	// UpdateClient RPC.
	ClientAdminServiceUpdateClientProcedure = "/blocky.authz.admin.v1alpha.ClientAdminService/UpdateClient"
	// ClientAdminServiceDeleteClientProcedure is the fully-qualified name of the ClientAdminService's
	// DeleteClient RPC.
	ClientAdminServiceDeleteClientProcedure = "/blocky.authz.admin.v1alpha.ClientAdminService/DeleteClient"
	// ClientAdminServiceCreateClientResourcePermissionProcedure is the fully-qualified name of the
	// ClientAdminService's CreateClientResourcePermission RPC.
	ClientAdminServiceCreateClientResourcePermissionProcedure = "/blocky.authz.admin.v1alpha.ClientAdminService/CreateClientResourcePermission"
	// ClientAdminServiceListClientResourcePermissionsProcedure is the fully-qualified name of the
	// ClientAdminService's ListClientResourcePermissions RPC.
	ClientAdminServiceListClientResourcePermissionsProcedure = "/blocky.authz.admin.v1alpha.ClientAdminService/ListClientResourcePermissions"
)

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 (
	// InstanceAdminServiceUpdateInstanceProcedure is the fully-qualified name of the
	// InstanceAdminService's UpdateInstance RPC.
	InstanceAdminServiceUpdateInstanceProcedure = "/blocky.authz.admin.v1alpha.InstanceAdminService/UpdateInstance"
	// InstanceAdminServiceGetInstanceProcedure is the fully-qualified name of the
	// InstanceAdminService's GetInstance RPC.
	InstanceAdminServiceGetInstanceProcedure = "/blocky.authz.admin.v1alpha.InstanceAdminService/GetInstance"
)

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 (
	// KeyAdminServiceCreateKeyCoreProcedure is the fully-qualified name of the KeyAdminService's
	// CreateKeyCore RPC.
	KeyAdminServiceCreateKeyCoreProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/CreateKeyCore"
	// KeyAdminServiceGetKeyCoreProcedure is the fully-qualified name of the KeyAdminService's
	// GetKeyCore RPC.
	KeyAdminServiceGetKeyCoreProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/GetKeyCore"
	// KeyAdminServiceListKeyCoresProcedure is the fully-qualified name of the KeyAdminService's
	// ListKeyCores RPC.
	KeyAdminServiceListKeyCoresProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/ListKeyCores"
	// KeyAdminServiceListKeyCoreKeysProcedure is the fully-qualified name of the KeyAdminService's
	// ListKeyCoreKeys RPC.
	KeyAdminServiceListKeyCoreKeysProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/ListKeyCoreKeys"
	// KeyAdminServiceUpdateKeyCoreProcedure is the fully-qualified name of the KeyAdminService's
	// UpdateKeyCore RPC.
	KeyAdminServiceUpdateKeyCoreProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/UpdateKeyCore"
	// KeyAdminServiceRotateKeyProcedure is the fully-qualified name of the KeyAdminService's RotateKey
	// RPC.
	KeyAdminServiceRotateKeyProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/RotateKey"
	// KeyAdminServiceGetKeyProcedure is the fully-qualified name of the KeyAdminService's GetKey RPC.
	KeyAdminServiceGetKeyProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/GetKey"
	// KeyAdminServiceListKeysProcedure is the fully-qualified name of the KeyAdminService's ListKeys
	// RPC.
	KeyAdminServiceListKeysProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/ListKeys"
	// KeyAdminServiceRevokeKeyProcedure is the fully-qualified name of the KeyAdminService's RevokeKey
	// RPC.
	KeyAdminServiceRevokeKeyProcedure = "/blocky.authz.admin.v1alpha.KeyAdminService/RevokeKey"
)

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 (
	// ResourceAdminServiceCreateResourceManagerProcedure is the fully-qualified name of the
	// ResourceAdminService's CreateResourceManager RPC.
	ResourceAdminServiceCreateResourceManagerProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/CreateResourceManager"
	// ResourceAdminServiceGetResourceManagerProcedure is the fully-qualified name of the
	// ResourceAdminService's GetResourceManager RPC.
	ResourceAdminServiceGetResourceManagerProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/GetResourceManager"
	// ResourceAdminServiceListResourceManagersProcedure is the fully-qualified name of the
	// ResourceAdminService's ListResourceManagers RPC.
	ResourceAdminServiceListResourceManagersProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/ListResourceManagers"
	// ResourceAdminServiceUpdateResourceManagerProcedure is the fully-qualified name of the
	// ResourceAdminService's UpdateResourceManager RPC.
	ResourceAdminServiceUpdateResourceManagerProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/UpdateResourceManager"
	// ResourceAdminServiceDeleteResourceManagerProcedure is the fully-qualified name of the
	// ResourceAdminService's DeleteResourceManager RPC.
	ResourceAdminServiceDeleteResourceManagerProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/DeleteResourceManager"
	// ResourceAdminServiceAliasResourceManagerProcedure is the fully-qualified name of the
	// ResourceAdminService's AliasResourceManager RPC.
	ResourceAdminServiceAliasResourceManagerProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/AliasResourceManager"
	// ResourceAdminServiceCreateResourcePermissionProcedure is the fully-qualified name of the
	// ResourceAdminService's CreateResourcePermission RPC.
	ResourceAdminServiceCreateResourcePermissionProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/CreateResourcePermission"
	// ResourceAdminServiceListResourcePermissionProcedure is the fully-qualified name of the
	// ResourceAdminService's ListResourcePermission RPC.
	ResourceAdminServiceListResourcePermissionProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/ListResourcePermission"
	// ResourceAdminServiceGetResourcePermissionProcedure is the fully-qualified name of the
	// ResourceAdminService's GetResourcePermission RPC.
	ResourceAdminServiceGetResourcePermissionProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/GetResourcePermission"
	// ResourceAdminServiceUpdateResourcePermissionProcedure is the fully-qualified name of the
	// ResourceAdminService's UpdateResourcePermission RPC.
	ResourceAdminServiceUpdateResourcePermissionProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/UpdateResourcePermission"
	// ResourceAdminServiceDeleteResourcePermissionProcedure is the fully-qualified name of the
	// ResourceAdminService's DeleteResourcePermission RPC.
	ResourceAdminServiceDeleteResourcePermissionProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/DeleteResourcePermission"
	// ResourceAdminServiceAliasResourcePermissionProcedure is the fully-qualified name of the
	// ResourceAdminService's AliasResourcePermission RPC.
	ResourceAdminServiceAliasResourcePermissionProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/AliasResourcePermission"
	// ResourceAdminServiceListResourcePermissionUserConsentsProcedure is the fully-qualified name of
	// the ResourceAdminService's ListResourcePermissionUserConsents RPC.
	ResourceAdminServiceListResourcePermissionUserConsentsProcedure = "/blocky.authz.admin.v1alpha.ResourceAdminService/ListResourcePermissionUserConsents"
)

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 (
	// UserContentAdminServiceCreateUserConsentProcedure is the fully-qualified name of the
	// UserContentAdminService's CreateUserConsent RPC.
	UserContentAdminServiceCreateUserConsentProcedure = "/blocky.authz.admin.v1alpha.UserContentAdminService/CreateUserConsent"
	// UserContentAdminServiceGetUserConsentProcedure is the fully-qualified name of the
	// UserContentAdminService's GetUserConsent RPC.
	UserContentAdminServiceGetUserConsentProcedure = "/blocky.authz.admin.v1alpha.UserContentAdminService/GetUserConsent"
	// UserContentAdminServiceListUserConsentsProcedure is the fully-qualified name of the
	// UserContentAdminService's ListUserConsents RPC.
	UserContentAdminServiceListUserConsentsProcedure = "/blocky.authz.admin.v1alpha.UserContentAdminService/ListUserConsents"
	// UserContentAdminServiceUpdateUserConsentProcedure is the fully-qualified name of the
	// UserContentAdminService's UpdateUserConsent RPC.
	UserContentAdminServiceUpdateUserConsentProcedure = "/blocky.authz.admin.v1alpha.UserContentAdminService/UpdateUserConsent"
	// UserContentAdminServiceDeleteUserConsentProcedure is the fully-qualified name of the
	// UserContentAdminService's DeleteUserConsent RPC.
	UserContentAdminServiceDeleteUserConsentProcedure = "/blocky.authz.admin.v1alpha.UserContentAdminService/DeleteUserConsent"
)

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 (
	// ClientAdminServiceName is the fully-qualified name of the ClientAdminService service.
	ClientAdminServiceName = "blocky.authz.admin.v1alpha.ClientAdminService"
)
View Source
const (
	// InstanceAdminServiceName is the fully-qualified name of the InstanceAdminService service.
	InstanceAdminServiceName = "blocky.authz.admin.v1alpha.InstanceAdminService"
)
View Source
const (
	// KeyAdminServiceName is the fully-qualified name of the KeyAdminService service.
	KeyAdminServiceName = "blocky.authz.admin.v1alpha.KeyAdminService"
)
View Source
const (
	// ResourceAdminServiceName is the fully-qualified name of the ResourceAdminService service.
	ResourceAdminServiceName = "blocky.authz.admin.v1alpha.ResourceAdminService"
)
View Source
const (
	// UserContentAdminServiceName is the fully-qualified name of the UserContentAdminService service.
	UserContentAdminServiceName = "blocky.authz.admin.v1alpha.UserContentAdminService"
)

Variables

This section is empty.

Functions

func NewClientAdminServiceHandler

func NewClientAdminServiceHandler(svc ClientAdminServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewClientAdminServiceHandler 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.

func NewInstanceAdminServiceHandler

func NewInstanceAdminServiceHandler(svc InstanceAdminServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewInstanceAdminServiceHandler 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.

func NewKeyAdminServiceHandler

func NewKeyAdminServiceHandler(svc KeyAdminServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewKeyAdminServiceHandler 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.

func NewResourceAdminServiceHandler

func NewResourceAdminServiceHandler(svc ResourceAdminServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewResourceAdminServiceHandler 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.

func NewUserContentAdminServiceHandler

func NewUserContentAdminServiceHandler(svc UserContentAdminServiceHandler, opts ...connect_go.HandlerOption) (string, http.Handler)

NewUserContentAdminServiceHandler 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 ClientAdminServiceClient

type ClientAdminServiceClient interface {
	// Creates a new authorization client with the specified name,
	// and returns the new client.
	// A newly created client will have a secret generated.
	CreateClient(context.Context, *connect_go.Request[v1alpha.CreateClientRequest]) (*connect_go.Response[v1alpha.Client], error)
	// Lists authorization clients matching the specified filter.
	ListClient(context.Context, *connect_go.Request[v1alpha.ListClientRequest]) (*connect_go.Response[v1alpha.ListClientResponse], error)
	// Gets an authorization client by its identifier.
	GetClient(context.Context, *connect_go.Request[v1alpha.GetClientRequest]) (*connect_go.Response[v1alpha.Client], error)
	// Updates an authorization client, and returns the updated client.
	UpdateClient(context.Context, *connect_go.Request[v1alpha.UpdateClientRequest]) (*connect_go.Response[v1alpha.Client], error)
	// Deletes an authorization client.
	DeleteClient(context.Context, *connect_go.Request[v1alpha.DeleteClientRequest]) (*connect_go.Response[emptypb.Empty], error)
	// CreateClientResourcePermission adds a client the permission to use given resource,
	// defined by the resource permission.
	CreateClientResourcePermission(context.Context, *connect_go.Request[v1alpha.CreateClientResourcePermissionRequest]) (*connect_go.Response[v1alpha.ClientResourcePermission], error)
	ListClientResourcePermissions(context.Context, *connect_go.Request[v1alpha.ListClientResourcePermissionsRequest]) (*connect_go.Response[v1alpha.ListClientResourcePermissionsResponse], error)
}

ClientAdminServiceClient is a client for the blocky.authz.admin.v1alpha.ClientAdminService service.

func NewClientAdminServiceClient

func NewClientAdminServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ClientAdminServiceClient

NewClientAdminServiceClient constructs a client for the blocky.authz.admin.v1alpha.ClientAdminService 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 ClientAdminServiceHandler

type ClientAdminServiceHandler interface {
	// Creates a new authorization client with the specified name,
	// and returns the new client.
	// A newly created client will have a secret generated.
	CreateClient(context.Context, *connect_go.Request[v1alpha.CreateClientRequest]) (*connect_go.Response[v1alpha.Client], error)
	// Lists authorization clients matching the specified filter.
	ListClient(context.Context, *connect_go.Request[v1alpha.ListClientRequest]) (*connect_go.Response[v1alpha.ListClientResponse], error)
	// Gets an authorization client by its identifier.
	GetClient(context.Context, *connect_go.Request[v1alpha.GetClientRequest]) (*connect_go.Response[v1alpha.Client], error)
	// Updates an authorization client, and returns the updated client.
	UpdateClient(context.Context, *connect_go.Request[v1alpha.UpdateClientRequest]) (*connect_go.Response[v1alpha.Client], error)
	// Deletes an authorization client.
	DeleteClient(context.Context, *connect_go.Request[v1alpha.DeleteClientRequest]) (*connect_go.Response[emptypb.Empty], error)
	// CreateClientResourcePermission adds a client the permission to use given resource,
	// defined by the resource permission.
	CreateClientResourcePermission(context.Context, *connect_go.Request[v1alpha.CreateClientResourcePermissionRequest]) (*connect_go.Response[v1alpha.ClientResourcePermission], error)
	ListClientResourcePermissions(context.Context, *connect_go.Request[v1alpha.ListClientResourcePermissionsRequest]) (*connect_go.Response[v1alpha.ListClientResourcePermissionsResponse], error)
}

ClientAdminServiceHandler is an implementation of the blocky.authz.admin.v1alpha.ClientAdminService service.

type InstanceAdminServiceClient

type InstanceAdminServiceClient interface {
	// Patch an existing instance of an Authorization service.
	UpdateInstance(context.Context, *connect_go.Request[v1alpha.UpdateInstanceRequest]) (*connect_go.Response[v1alpha.Instance], error)
	// Gets the details of an instance of an Authorization service.
	GetInstance(context.Context, *connect_go.Request[v1alpha.GetInstanceRequest]) (*connect_go.Response[v1alpha.Instance], error)
}

InstanceAdminServiceClient is a client for the blocky.authz.admin.v1alpha.InstanceAdminService service.

func NewInstanceAdminServiceClient

func NewInstanceAdminServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) InstanceAdminServiceClient

NewInstanceAdminServiceClient constructs a client for the blocky.authz.admin.v1alpha.InstanceAdminService 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 InstanceAdminServiceHandler

type InstanceAdminServiceHandler interface {
	// Patch an existing instance of an Authorization service.
	UpdateInstance(context.Context, *connect_go.Request[v1alpha.UpdateInstanceRequest]) (*connect_go.Response[v1alpha.Instance], error)
	// Gets the details of an instance of an Authorization service.
	GetInstance(context.Context, *connect_go.Request[v1alpha.GetInstanceRequest]) (*connect_go.Response[v1alpha.Instance], error)
}

InstanceAdminServiceHandler is an implementation of the blocky.authz.admin.v1alpha.InstanceAdminService service.

type KeyAdminServiceClient

type KeyAdminServiceClient interface {
	// CreateKeyCore creates a new authorization key.
	// New key is neither active nor used in a set.
	CreateKeyCore(context.Context, *connect_go.Request[v1alpha.CreateKeyCoreRequest]) (*connect_go.Response[v1alpha.KeyCore], error)
	// GetKeyCore returns the specified authorization key.
	GetKeyCore(context.Context, *connect_go.Request[v1alpha.GetKeyCoreRequest]) (*connect_go.Response[v1alpha.KeyCore], error)
	// ListKeyCores lists authorization keys that matches given request.
	ListKeyCores(context.Context, *connect_go.Request[v1alpha.ListKeyCoresRequest]) (*connect_go.Response[v1alpha.ListKeyCoresResponse], error)
	// ListKeyCoreKeys lists authorization keys that matches given request.
	ListKeyCoreKeys(context.Context, *connect_go.Request[v1alpha.ListKeyCoreKeysRequest]) (*connect_go.Response[v1alpha.ListKeyCoreKeysResponse], error)
	// UpdateKeyCore updates the specified authorization key.
	UpdateKeyCore(context.Context, *connect_go.Request[v1alpha.UpdateKeyCoreRequest]) (*connect_go.Response[v1alpha.KeyCore], error)
	// Creates a new key revision and rotates the key.
	RotateKey(context.Context, *connect_go.Request[v1alpha.RotateKeyRequest]) (*connect_go.Response[v1alpha.Key], error)
	// GetKey returns the specified key revision.
	GetKey(context.Context, *connect_go.Request[v1alpha.GetKeyRequest]) (*connect_go.Response[v1alpha.Key], error)
	// ListKeys lists authorization keys that matches given request.
	ListKeys(context.Context, *connect_go.Request[v1alpha.ListKeysRequest]) (*connect_go.Response[v1alpha.ListKeysResponse], error)
	// RevokeKey revokes an authorization key revision.
	// Once revoked the key revision is no longer valid for signing and verification.
	// If revoked key was the only active signing key, the system will not accept
	// any new requests until a new key is created and activated.
	RevokeKey(context.Context, *connect_go.Request[v1alpha.RevokeKeyRequest]) (*connect_go.Response[v1alpha.Key], error)
}

KeyAdminServiceClient is a client for the blocky.authz.admin.v1alpha.KeyAdminService service.

func NewKeyAdminServiceClient

func NewKeyAdminServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) KeyAdminServiceClient

NewKeyAdminServiceClient constructs a client for the blocky.authz.admin.v1alpha.KeyAdminService 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 KeyAdminServiceHandler

type KeyAdminServiceHandler interface {
	// CreateKeyCore creates a new authorization key.
	// New key is neither active nor used in a set.
	CreateKeyCore(context.Context, *connect_go.Request[v1alpha.CreateKeyCoreRequest]) (*connect_go.Response[v1alpha.KeyCore], error)
	// GetKeyCore returns the specified authorization key.
	GetKeyCore(context.Context, *connect_go.Request[v1alpha.GetKeyCoreRequest]) (*connect_go.Response[v1alpha.KeyCore], error)
	// ListKeyCores lists authorization keys that matches given request.
	ListKeyCores(context.Context, *connect_go.Request[v1alpha.ListKeyCoresRequest]) (*connect_go.Response[v1alpha.ListKeyCoresResponse], error)
	// ListKeyCoreKeys lists authorization keys that matches given request.
	ListKeyCoreKeys(context.Context, *connect_go.Request[v1alpha.ListKeyCoreKeysRequest]) (*connect_go.Response[v1alpha.ListKeyCoreKeysResponse], error)
	// UpdateKeyCore updates the specified authorization key.
	UpdateKeyCore(context.Context, *connect_go.Request[v1alpha.UpdateKeyCoreRequest]) (*connect_go.Response[v1alpha.KeyCore], error)
	// Creates a new key revision and rotates the key.
	RotateKey(context.Context, *connect_go.Request[v1alpha.RotateKeyRequest]) (*connect_go.Response[v1alpha.Key], error)
	// GetKey returns the specified key revision.
	GetKey(context.Context, *connect_go.Request[v1alpha.GetKeyRequest]) (*connect_go.Response[v1alpha.Key], error)
	// ListKeys lists authorization keys that matches given request.
	ListKeys(context.Context, *connect_go.Request[v1alpha.ListKeysRequest]) (*connect_go.Response[v1alpha.ListKeysResponse], error)
	// RevokeKey revokes an authorization key revision.
	// Once revoked the key revision is no longer valid for signing and verification.
	// If revoked key was the only active signing key, the system will not accept
	// any new requests until a new key is created and activated.
	RevokeKey(context.Context, *connect_go.Request[v1alpha.RevokeKeyRequest]) (*connect_go.Response[v1alpha.Key], error)
}

KeyAdminServiceHandler is an implementation of the blocky.authz.admin.v1alpha.KeyAdminService service.

type ResourceAdminServiceClient

type ResourceAdminServiceClient interface {
	// Creates a new resource manager within given project.
	CreateResourceManager(context.Context, *connect_go.Request[v1alpha.CreateResourceManagerRequest]) (*connect_go.Response[v1alpha.ResourceManager], error)
	// Gets a resource manager.
	GetResourceManager(context.Context, *connect_go.Request[v1alpha.GetResourceManagerRequest]) (*connect_go.Response[v1alpha.ResourceManager], error)
	// Gets a list of resource managers.
	ListResourceManagers(context.Context, *connect_go.Request[v1alpha.ListResourceManagersRequest]) (*connect_go.Response[v1alpha.ListResourceManagersResponse], error)
	// Updates an existing resource manager with new information.
	UpdateResourceManager(context.Context, *connect_go.Request[v1alpha.UpdateResourceManagerRequest]) (*connect_go.Response[v1alpha.ResourceManager], error)
	// Deletes a resource manager along with all its dependent permissions.
	DeleteResourceManager(context.Context, *connect_go.Request[v1alpha.DeleteResourceRequest]) (*connect_go.Response[emptypb.Empty], error)
	// Creates an alias for a resource manager.
	// If the alias already exists, the former aliased resource manager
	// will have no alias.
	AliasResourceManager(context.Context, *connect_go.Request[v1alpha.AliasResourceRequest]) (*connect_go.Response[v1alpha.ResourceManager], error)
	// Creates a new authorization resource permission.
	CreateResourcePermission(context.Context, *connect_go.Request[v1alpha.CreateResourcePermissionRequest]) (*connect_go.Response[v1alpha.ResourcePermission], error)
	// Lists authorization resource permissions that are registered with the service.
	ListResourcePermission(context.Context, *connect_go.Request[v1alpha.ListResourcePermissionRequest]) (*connect_go.Response[v1alpha.ListResourcePermissionResponse], error)
	// Gets an existing resource permission.
	GetResourcePermission(context.Context, *connect_go.Request[v1alpha.GetResourcePermissionRequest]) (*connect_go.Response[v1alpha.ResourcePermission], error)
	// Updates an existing authorization resource permission with new information.
	UpdateResourcePermission(context.Context, *connect_go.Request[v1alpha.UpdateResourcePermissionRequest]) (*connect_go.Response[v1alpha.ResourcePermission], error)
	// Deletes an authorization resource permission.
	DeleteResourcePermission(context.Context, *connect_go.Request[v1alpha.DeleteResourcePermissionRequest]) (*connect_go.Response[emptypb.Empty], error)
	// Creates an alias for an authorization resource permission.
	// If the alias already exists, the former aliased resource permission will have
	// no alias.
	AliasResourcePermission(context.Context, *connect_go.Request[v1alpha.AliasResourcePermissionRequest]) (*connect_go.Response[v1alpha.ResourcePermission], error)
	// Lists user consents associated with given resource permission.
	ListResourcePermissionUserConsents(context.Context, *connect_go.Request[v1alpha.ListResourcePermissionUserConsentsRequest]) (*connect_go.Response[v1alpha.ListResourcePermissionUserConsentsResponse], error)
}

ResourceAdminServiceClient is a client for the blocky.authz.admin.v1alpha.ResourceAdminService service.

func NewResourceAdminServiceClient

func NewResourceAdminServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) ResourceAdminServiceClient

NewResourceAdminServiceClient constructs a client for the blocky.authz.admin.v1alpha.ResourceAdminService 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 ResourceAdminServiceHandler

type ResourceAdminServiceHandler interface {
	// Creates a new resource manager within given project.
	CreateResourceManager(context.Context, *connect_go.Request[v1alpha.CreateResourceManagerRequest]) (*connect_go.Response[v1alpha.ResourceManager], error)
	// Gets a resource manager.
	GetResourceManager(context.Context, *connect_go.Request[v1alpha.GetResourceManagerRequest]) (*connect_go.Response[v1alpha.ResourceManager], error)
	// Gets a list of resource managers.
	ListResourceManagers(context.Context, *connect_go.Request[v1alpha.ListResourceManagersRequest]) (*connect_go.Response[v1alpha.ListResourceManagersResponse], error)
	// Updates an existing resource manager with new information.
	UpdateResourceManager(context.Context, *connect_go.Request[v1alpha.UpdateResourceManagerRequest]) (*connect_go.Response[v1alpha.ResourceManager], error)
	// Deletes a resource manager along with all its dependent permissions.
	DeleteResourceManager(context.Context, *connect_go.Request[v1alpha.DeleteResourceRequest]) (*connect_go.Response[emptypb.Empty], error)
	// Creates an alias for a resource manager.
	// If the alias already exists, the former aliased resource manager
	// will have no alias.
	AliasResourceManager(context.Context, *connect_go.Request[v1alpha.AliasResourceRequest]) (*connect_go.Response[v1alpha.ResourceManager], error)
	// Creates a new authorization resource permission.
	CreateResourcePermission(context.Context, *connect_go.Request[v1alpha.CreateResourcePermissionRequest]) (*connect_go.Response[v1alpha.ResourcePermission], error)
	// Lists authorization resource permissions that are registered with the service.
	ListResourcePermission(context.Context, *connect_go.Request[v1alpha.ListResourcePermissionRequest]) (*connect_go.Response[v1alpha.ListResourcePermissionResponse], error)
	// Gets an existing resource permission.
	GetResourcePermission(context.Context, *connect_go.Request[v1alpha.GetResourcePermissionRequest]) (*connect_go.Response[v1alpha.ResourcePermission], error)
	// Updates an existing authorization resource permission with new information.
	UpdateResourcePermission(context.Context, *connect_go.Request[v1alpha.UpdateResourcePermissionRequest]) (*connect_go.Response[v1alpha.ResourcePermission], error)
	// Deletes an authorization resource permission.
	DeleteResourcePermission(context.Context, *connect_go.Request[v1alpha.DeleteResourcePermissionRequest]) (*connect_go.Response[emptypb.Empty], error)
	// Creates an alias for an authorization resource permission.
	// If the alias already exists, the former aliased resource permission will have
	// no alias.
	AliasResourcePermission(context.Context, *connect_go.Request[v1alpha.AliasResourcePermissionRequest]) (*connect_go.Response[v1alpha.ResourcePermission], error)
	// Lists user consents associated with given resource permission.
	ListResourcePermissionUserConsents(context.Context, *connect_go.Request[v1alpha.ListResourcePermissionUserConsentsRequest]) (*connect_go.Response[v1alpha.ListResourcePermissionUserConsentsResponse], error)
}

ResourceAdminServiceHandler is an implementation of the blocky.authz.admin.v1alpha.ResourceAdminService service.

type UnimplementedClientAdminServiceHandler

type UnimplementedClientAdminServiceHandler struct{}

UnimplementedClientAdminServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedInstanceAdminServiceHandler

type UnimplementedInstanceAdminServiceHandler struct{}

UnimplementedInstanceAdminServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedKeyAdminServiceHandler

type UnimplementedKeyAdminServiceHandler struct{}

UnimplementedKeyAdminServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedResourceAdminServiceHandler

type UnimplementedResourceAdminServiceHandler struct{}

UnimplementedResourceAdminServiceHandler returns CodeUnimplemented from all methods.

type UnimplementedUserContentAdminServiceHandler

type UnimplementedUserContentAdminServiceHandler struct{}

UnimplementedUserContentAdminServiceHandler returns CodeUnimplemented from all methods.

type UserContentAdminServiceClient

type UserContentAdminServiceClient interface {
	// Creates a new user consent on resource permission for specific client.
	CreateUserConsent(context.Context, *connect_go.Request[v1alpha.CreateUserConsentRequest]) (*connect_go.Response[v1alpha.UserConsent], error)
	// Gets the user consent on resource permission.
	GetUserConsent(context.Context, *connect_go.Request[v1alpha.GetUserConsentRequest]) (*connect_go.Response[v1alpha.UserConsent], error)
	// ListUserConsents lists all user consents for the given project.
	ListUserConsents(context.Context, *connect_go.Request[v1alpha.ListUserConsentsRequest]) (*connect_go.Response[v1alpha.ListUserConsentsResponse], error)
	// Updates the user consent on resource permission.
	UpdateUserConsent(context.Context, *connect_go.Request[v1alpha.UpdateUserConsentRequest]) (*connect_go.Response[v1alpha.UserConsent], error)
	// Deletes the user consent on resource permission.
	// The user consent will be deleted regardless of whether it is being used by
	// any other resources.
	DeleteUserConsent(context.Context, *connect_go.Request[v1alpha.DeleteUserConsentRequest]) (*connect_go.Response[emptypb.Empty], error)
}

UserContentAdminServiceClient is a client for the blocky.authz.admin.v1alpha.UserContentAdminService service.

func NewUserContentAdminServiceClient

func NewUserContentAdminServiceClient(httpClient connect_go.HTTPClient, baseURL string, opts ...connect_go.ClientOption) UserContentAdminServiceClient

NewUserContentAdminServiceClient constructs a client for the blocky.authz.admin.v1alpha.UserContentAdminService 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 UserContentAdminServiceHandler

type UserContentAdminServiceHandler interface {
	// Creates a new user consent on resource permission for specific client.
	CreateUserConsent(context.Context, *connect_go.Request[v1alpha.CreateUserConsentRequest]) (*connect_go.Response[v1alpha.UserConsent], error)
	// Gets the user consent on resource permission.
	GetUserConsent(context.Context, *connect_go.Request[v1alpha.GetUserConsentRequest]) (*connect_go.Response[v1alpha.UserConsent], error)
	// ListUserConsents lists all user consents for the given project.
	ListUserConsents(context.Context, *connect_go.Request[v1alpha.ListUserConsentsRequest]) (*connect_go.Response[v1alpha.ListUserConsentsResponse], error)
	// Updates the user consent on resource permission.
	UpdateUserConsent(context.Context, *connect_go.Request[v1alpha.UpdateUserConsentRequest]) (*connect_go.Response[v1alpha.UserConsent], error)
	// Deletes the user consent on resource permission.
	// The user consent will be deleted regardless of whether it is being used by
	// any other resources.
	DeleteUserConsent(context.Context, *connect_go.Request[v1alpha.DeleteUserConsentRequest]) (*connect_go.Response[emptypb.Empty], error)
}

UserContentAdminServiceHandler is an implementation of the blocky.authz.admin.v1alpha.UserContentAdminService service.

Jump to

Keyboard shortcuts

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