Documentation ¶
Overview ¶
Package context contains context details needed by the app to execute
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CoreAgentContext ¶
type CoreAgentContext struct {
// contains filtered or unexported fields
}
CoreAgentContext defines a type that carries context specific data such as the logger.
func (*CoreAgentContext) AppConfig ¶
func (c *CoreAgentContext) AppConfig() *appconfig.SsmagentConfig
AppConfig returns app config
func (*CoreAgentContext) Identity ¶
func (c *CoreAgentContext) Identity() identity.IAgentIdentity
Identity returns identity object
func (*CoreAgentContext) With ¶
func (c *CoreAgentContext) With(logContext string) ICoreAgentContext
With updates the contextSlice that changes the log prefix
type ICoreAgentContext ¶
type ICoreAgentContext interface { Log() log.T AppConfig() *appconfig.SsmagentConfig Identity() identity.IAgentIdentity With(context string) ICoreAgentContext }
ICoreAgentContext defines a type that carries context specific data such as the logger.
func NewCoreAgentContext ¶
func NewCoreAgentContext(logger log.T, ssmAppconfig *appconfig.SsmagentConfig, agentIdentity identity.IAgentIdentity) (ICoreAgentContext, error)
NewCoreAgentContext creates and returns a new core agent context
Click to show internal directories.
Click to hide internal directories.