Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddCommandToMain

func AddCommandToMain(appContext context.Context, cmd *cobra.Command, roles []string)

    # THE MAIN COMMAND GETS A SUPPLY OF ENV VARS TO WORK WITH (WHEN it gets deployed by ai-provisioner / deployment server within DSP) # # Security stuff # - JWT_ISSUER the token ISSUER that will be used to validate all provided tokens # (i.e. https://auth.tiki-dsp.io/auth/realms/tiki) # # - OAUTH_CLIENT_ID the client that will be used to validate all provided tokens # (i.e. ai-examples-python-dev-web-py36) #

    goland:noinspection GoUnusedExportedFunction

    func MainCommandFromContext

    func MainCommandFromContext(ctx context.Context) *cobra.Command

    func NewContextWithMainCommand

    func NewContextWithMainCommand(ctx context.Context, mainCommand *cobra.Command) context.Context

      goland:noinspection GoUnusedExportedFunction

      Types

      This section is empty.

      Directories

      Path Synopsis