edgegrid

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 9

Documentation

Overview

Package edgegrid contains code for manipulating edgegrid access settings

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEdgegridConfig

func GetEdgegridConfig(c *cli.Context) (*edgegrid.Config, error)

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

func GetSession(ctx context.Context) session.Session

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

func InitializeSession(c *cli.Context) (session.Session, error)

InitializeSession prepares a session.Session interface based on edgerc config

func WithSession

func WithSession(ctx context.Context, session session.Session) context.Context

WithSession puts a session.Session in context

Types

This section is empty.

Jump to

Keyboard shortcuts

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