base

package
v1.2.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RFC3339NanoFixed  = "2006-01-02T15:04:05.000000000Z07:00"
	RFC3339MilliFixed = "2006-01-02T15:04:05.000Z07:00"
)

Variables

View Source
var (
	OmitUser    = "OMIT_USER"
	OmitProject = "OMIT_PROJECT"
)
View Source
var Module = fx.Module(
	"rig-cli",
	clientModule,
	fx.Provide(func() (*cmd_config.Config, error) {
		return cmd_config.NewConfig("")
	}),
	fx.Provide(zap.NewDevelopment),
	fx.Provide(getContext),
	fx.Provide(func(c *cmd_config.Context) *cmd_config.Auth {
		return c.GetAuth()
	}),
	fx.Provide(func(c *cmd_config.Context) *cmd_config.Service {
		return c.GetService()
	}),
	fx.Provide(func() context.Context { return context.Background() }),
	fx.Provide(func() (*client.Client, error) {
		return client.NewClientWithOpts(
			client.WithHostFromEnv(),
			client.WithAPIVersionNegotiation(),
		)
	}),
)

Functions

func CheckAuth added in v1.1.3

func CheckAuth(cmd *cobra.Command, rc rig.Client, cfg *cmd_config.Config) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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