cloudx

package
v0.1.29 Latest Latest
Warning

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

Go to latest
Published: May 4, 2022 License: Apache-2.0 Imports: 46 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	PortFlag               = "port"
	OpenFlag               = "open"
	WithoutJWTFlag         = "no-jwt"
	CookieDomainFlag       = "cookie-domain"
	DefaultRedirectURLFlag = "default-redirect-url"
	ServiceURL             = "sdk-url"
)
View Source
const PasswordReader = "password_reader"

Variables

View Source
var ErrNoConfig = errors.New("no ory configuration file present")
View Source
var ErrNoConfigQuiet = errors.New("please run `ory auth` to initialize your configuration or remove the `--quiet` flag")

Functions

func ContextWithClient

func ContextWithClient(ctx context.Context) context.Context

func NewAuthCmd

func NewAuthCmd() *cobra.Command

func NewAuthLogoutCmd

func NewAuthLogoutCmd() *cobra.Command

func NewCreateCmd

func NewCreateCmd() *cobra.Command

func NewCreateProjectCmd

func NewCreateProjectCmd() *cobra.Command

func NewDeleteCmd

func NewDeleteCmd(parent *cobra.Command) *cobra.Command

func NewDeleteIdentityCmd

func NewDeleteIdentityCmd(parent *cobra.Command) *cobra.Command

func NewGetCmd

func NewGetCmd(parent *cobra.Command) *cobra.Command

func NewGetIdentityCmd

func NewGetIdentityCmd(parent *cobra.Command) *cobra.Command

func NewGetKratosConfigCmd

func NewGetKratosConfigCmd() *cobra.Command

func NewGetProjectCmd

func NewGetProjectCmd() *cobra.Command

func NewImportCmd

func NewImportCmd(parent *cobra.Command) *cobra.Command

func NewImportIdentityCmd

func NewImportIdentityCmd(parent *cobra.Command) *cobra.Command

func NewListCmd

func NewListCmd(parent *cobra.Command) *cobra.Command

func NewListIdentityCmd

func NewListIdentityCmd(parent *cobra.Command) *cobra.Command

func NewListProjectsCmd

func NewListProjectsCmd() *cobra.Command

func NewPatchCmd

func NewPatchCmd() *cobra.Command

func NewPatchKratosConfigCmd

func NewPatchKratosConfigCmd() *cobra.Command

func NewProjectsPatchCmd

func NewProjectsPatchCmd() *cobra.Command

func NewProjectsUpdateCmd

func NewProjectsUpdateCmd() *cobra.Command

func NewProxyCommand

func NewProxyCommand(self string, version string) *cobra.Command

func NewRootCommand

func NewRootCommand(parent *cobra.Command, project string, version string) *cobra.Command

func NewTunnelCommand

func NewTunnelCommand(self string, version string) *cobra.Command

func NewUpdateCmd

func NewUpdateCmd() *cobra.Command

func NewUpdateIdentityConfigCmd

func NewUpdateIdentityConfigCmd() *cobra.Command

func NewValidateCmd

func NewValidateCmd() *cobra.Command

func PrintOpenAPIError

func PrintOpenAPIError(cmd *cobra.Command, err error) error

func ReadConfigFile

func ReadConfigFile(source string) (json.RawMessage, error)

func ReadConfigFiles

func ReadConfigFiles(files []string) ([]json.RawMessage, error)

func RegisterConfigFlag

func RegisterConfigFlag(f *pflag.FlagSet)

func RegisterProjectFlag

func RegisterProjectFlag(f *flag.FlagSet)

func RegisterYesFlag

func RegisterYesFlag(f *pflag.FlagSet)

Types

type AuthContext

type AuthContext struct {
	Version         string       `json:"version"`
	SessionToken    string       `json:"session_token"`
	SelectedProject uuid.UUID    `json:"selected_project"`
	IdentityTraits  AuthIdentity `json:"session_identity_traits"`
}

func (*AuthContext) Columns

func (i *AuthContext) Columns() []string

func (*AuthContext) Header

func (*AuthContext) Header() []string

func (*AuthContext) ID

func (i *AuthContext) ID() string

func (*AuthContext) Interface

func (i *AuthContext) Interface() interface{}

type AuthIdentity

type AuthIdentity struct {
	ID    uuid.UUID
	Email string `json:"email"`
}

type AuthProject

type AuthProject struct {
	ID   uuid.UUID `json:"id"`
	Slug string    `json:"slug"`
}

type SnakeCharmer

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

func NewSnakeCharmer

func NewSnakeCharmer(cmd *cobra.Command) (*SnakeCharmer, error)

NewSnakeCharmer creates a new SnakeCharmer instance which handles cobra CLI commands.

func (*SnakeCharmer) Authenticate

func (h *SnakeCharmer) Authenticate() (*AuthContext, error)

func (*SnakeCharmer) CreateProject

func (h *SnakeCharmer) CreateProject(name string) (*cloud.Project, error)

func (*SnakeCharmer) EnsureContext

func (h *SnakeCharmer) EnsureContext() (*AuthContext, error)

func (*SnakeCharmer) GetProject

func (h *SnakeCharmer) GetProject(id string) (*cloud.Project, error)

func (*SnakeCharmer) ListProjects

func (h *SnakeCharmer) ListProjects() ([]cloud.Project, error)

func (*SnakeCharmer) PatchProject

func (h *SnakeCharmer) PatchProject(id string, raw []json.RawMessage, add, replace, del []string) (*cloud.SuccessfulProjectUpdate, error)

func (*SnakeCharmer) PrintUpdateProjectWarnings

func (h *SnakeCharmer) PrintUpdateProjectWarnings(p *client.SuccessfulProjectUpdate) error

func (*SnakeCharmer) SetDefaultProject

func (h *SnakeCharmer) SetDefaultProject(id string) error

func (*SnakeCharmer) SignOut

func (h *SnakeCharmer) SignOut() error

func (*SnakeCharmer) Stdin

func (h *SnakeCharmer) Stdin() *bufio.Reader

func (*SnakeCharmer) UpdateProject

func (h *SnakeCharmer) UpdateProject(id string, name string, configs []json.RawMessage) (*cloud.SuccessfulProjectUpdate, error)

func (*SnakeCharmer) WriteConfig

func (h *SnakeCharmer) WriteConfig(c *AuthContext) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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