api

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

package api contains the definitions of the struct for the miactl configuration

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthConfig

type AuthConfig struct {
	ClientID          string `yaml:"client-id,omitempty"`        //nolint:tagliatelle
	ClientSecret      string `yaml:"client-secret,omitempty"`    //nolint:tagliatelle
	JWTKeyID          string `yaml:"key-id,omitempty"`           //nolint:tagliatelle
	JWTPrivateKeyData string `yaml:"private-key-data,omitempty"` //nolint:tagliatelle
}

func (*AuthConfig) DeepCopy

func (in *AuthConfig) DeepCopy() *AuthConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new AuthConfig.

func (*AuthConfig) DeepCopyInto

func (in *AuthConfig) DeepCopyInto(out *AuthConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type Config

type Config struct {
	Contexts       map[string]*ContextConfig `yaml:"contexts"`
	CurrentContext string                    `yaml:"current-context"` //nolint:tagliatelle
	Auth           map[string]*AuthConfig    `yaml:"credentials"`     //nolint:tagliatelle
}

func NewConfig

func NewConfig() *Config

func (*Config) DeepCopy

func (in *Config) DeepCopy() *Config

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Config.

func (*Config) DeepCopyInto

func (in *Config) DeepCopyInto(out *Config)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type ContextConfig

type ContextConfig struct {
	Endpoint              string `yaml:"endpoint"`
	CertificateAuthority  string `yaml:"certificate-authority,omitempty"`    //nolint:tagliatelle
	InsecureSkipTLSVerify bool   `yaml:"insecure-skip-tls-verify,omitempty"` //nolint:tagliatelle
	CompanyID             string `yaml:"company-id,omitempty"`               //nolint:tagliatelle
	ProjectID             string `yaml:"project-id,omitempty"`               //nolint:tagliatelle
	AuthName              string `yaml:"credential,omitempty"`               //nolint:tagliatelle
	Environment           string `yaml:"environment,omitempty"`
}

func (*ContextConfig) DeepCopy

func (in *ContextConfig) DeepCopy() *ContextConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new ContextConfig.

func (*ContextConfig) DeepCopyInto

func (in *ContextConfig) DeepCopyInto(out *ContextConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

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