Documentation ¶
Overview ¶
Package allowlistcfg contains code to work with ip_allowlist.cfg.
Index ¶
- func Get(ctx context.Context) (*configspb.IPAllowlistConfig, error)
- func GetMetadata(ctx context.Context) (*config.Meta, error)
- func SetConfig(ctx context.Context, cfg *configspb.IPAllowlistConfig) error
- func SetConfigWithMetadata(ctx context.Context, cfg *configspb.IPAllowlistConfig, 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.IPAllowlistConfig, error)
Get returns the config stored in context.
func GetMetadata ¶
GetMetadata returns the config's metadata stored in context.
func SetConfig ¶
func SetConfig(ctx context.Context, cfg *configspb.IPAllowlistConfig) error
SetConfig installs the cfg into the context ctx.
func SetConfigWithMetadata ¶
func SetConfigWithMetadata(ctx context.Context, cfg *configspb.IPAllowlistConfig, 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.