admin

package
v0.284.1 Latest Latest
Warning

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

Go to latest
Published: Jul 10, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdminService

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

func NewAdminService

func NewAdminService(cm *cf.Manager[cf.Configuration], sm *cf.Manager[cf.Secrets]) *AdminService

func (*AdminService) ConfigGet

ConfigGet returns the configuration value for a given ref string.

func (*AdminService) ConfigList

ConfigList returns the list of configuration values, optionally filtered by module.

func (*AdminService) ConfigSet

ConfigSet sets the configuration at the given ref to the provided value.

func (*AdminService) ConfigUnset

ConfigUnset unsets the config value at the given ref.

func (*AdminService) Ping

func (*AdminService) SecretGet

SecretGet returns the secret value for a given ref string.

func (*AdminService) SecretSet

SecretSet sets the secret at the given ref to the provided value.

func (*AdminService) SecretUnset

SecretUnset unsets the secret value at the given ref.

func (*AdminService) SecretsList

SecretsList returns the list of secrets, optionally filtered by module.

type Client added in v0.246.0

Client standardizes an common interface between the AdminService as accessed via gRPC and a purely-local variant that doesn't require a running controller to access.

func NewClient added in v0.246.0

func NewClient(ctx context.Context, adminClient ftlv1connect.AdminServiceClient, endpoint *url.URL) (Client, error)

NewClient takes the service client and endpoint flag received by the cmd interface and returns an appropriate interface for the cmd library to use.

If the controller is not present AND endpoint is local, then inject a purely-local implementation of the interface so that the user does not need to spin up a controller just to run the `ftl config/secret` commands. Otherwise, return back the gRPC client.

Jump to

Keyboard shortcuts

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