Documentation ¶
Overview ¶
Package importscfg contains code to work with imports.cfg.
Index ¶
- func Get(ctx context.Context) (*configspb.GroupImporterConfig, error)
- func GetWithMetadata(ctx context.Context) (*configspb.GroupImporterConfig, *config.Meta, error)
- func IsAuthorizedUploader(ctx context.Context, email, tarballName string) (bool, error)
- func SetConfig(ctx context.Context, cfg *configspb.GroupImporterConfig) error
- func SetConfigWithMetadata(ctx context.Context, cfg *configspb.GroupImporterConfig, meta *config.Meta) error
- func Update(ctx context.Context) (*config.Meta, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Get ¶
func Get(ctx context.Context) (*configspb.GroupImporterConfig, error)
Get returns the config stored in context.
func GetWithMetadata ¶
GetWithMetadata returns the config and its metadata stored in context.
func IsAuthorizedUploader ¶
IsAuthorizedUploader returns whether the email is authorized to upload the specified tarball.
func SetConfig ¶
func SetConfig(ctx context.Context, cfg *configspb.GroupImporterConfig) error
SetConfig installs the cfg into the context ctx.
func SetConfigWithMetadata ¶
func SetConfigWithMetadata(ctx context.Context, cfg *configspb.GroupImporterConfig, meta *config.Meta) error
SetConfigWithMetadata installs the cfg with the given metadata into the context ctx.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.