Documentation ¶
Overview ¶
Package edgegrid contains code for manipulating edgegrid access settings
Index ¶
- func GetEdgegridConfig(c *cli.Context) (*edgegrid.Config, error)
- func GetEdgercPath(c *cli.Context) string
- func GetEdgercSection(c *cli.Context) string
- func GetSession(ctx context.Context) session.Session
- func InitializeSession(c *cli.Context) (session.Session, error)
- func WithSession(ctx context.Context, session session.Session) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetEdgegridConfig ¶
GetEdgegridConfig gets configuration from .edgerc file
func GetEdgercPath ¶
func GetEdgercPath(c *cli.Context) string
GetEdgercPath returns the location of edgerc credential file or "~/.edgerc" if not found
func GetEdgercSection ¶
func GetEdgercSection(c *cli.Context) string
GetEdgercSection returns the section in edgerc credential file or "default" if not found
func GetSession ¶
GetSession retrieves a session.Session from context It panics if session is not found, as we should ensure that session is always in context - if it is not, then it is an implementation error
func InitializeSession ¶
InitializeSession prepares a session.Session interface based on edgerc config
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.