Help us shape the future of Go! Take the 2026 Go Developer Survey

client

package
v0.0.81 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package client contains the configuration for the minder cli

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RegisterMinderClientFlags

func RegisterMinderClientFlags(v *viper.Viper, flags *pflag.FlagSet) error

RegisterMinderClientFlags registers the flags for the minder cli

Types

type Config

type Config struct {
	GRPCClientConfig config.GRPCClientConfig `mapstructure:"grpc_server" yaml:"grpc_server" json:"grpc_server"`
	Identity         IdentityConfigWrapper   `mapstructure:"identity" yaml:"identity" json:"identity"`
	// Project is the current project
	Project string `mapstructure:"project" yaml:"project" json:"project"`
}

Config is the configuration for the minder cli

type IdentityConfig

type IdentityConfig struct {
	// IssuerUrl is the base URL where the identity server is running
	IssuerUrl string `mapstructure:"issuer_url" default:"https://auth.stacklok.com" yaml:"issuer_url" json:"issuer_url"`

	// ClientId is the client ID that identifies the server client ID
	ClientId string `mapstructure:"client_id" default:"minder-cli" yaml:"client_id" json:"client_id"`
}

IdentityConfig is the configuration for the identity provider used by minder-cli

type IdentityConfigWrapper

type IdentityConfigWrapper struct {
	CLI IdentityConfig `mapstructure:"cli" yaml:"cli" json:"cli"`
}

IdentityConfigWrapper is the configuration wrapper for the identity provider used by minder-cli

Jump to

Keyboard shortcuts

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