osm

package
v0.29.1 Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 35 Imported by: 5

Documentation

Index

Constants

View Source
const (
	SecretMountPath = "/etc/osm"
	CaCertFileName  = "ca.crt"
)

Variables

This section is empty.

Functions

func CheckBucketAccess

func CheckBucketAccess(client kubernetes.Interface, spec api.Backend, namespace string) error

func GetConfigPath

func GetConfigPath(cmd *cobra.Command) string

func NewOSMSecret

func NewOSMSecret(kc kubernetes.Interface, name, namespace string, spec api.Backend) (*core.Secret, error)

func WriteOSMConfig

func WriteOSMConfig(kc kubernetes.Interface, namespace string, spec api.Backend, filename string) error

Types

type Context

type Context struct {
	Name     string         `json:"name"`
	Provider string         `json:"provider"`
	Config   stow.ConfigMap `json:"config"`
}

func NewOSMContext

func NewOSMContext(client kubernetes.Interface, spec api.Backend, namespace string) (*Context, error)

type OSMConfig

type OSMConfig struct {
	Contexts       []*Context `json:"contexts"`
	CurrentContext string     `json:"current-context"`
}

func LoadConfig

func LoadConfig(configPath string) (*OSMConfig, error)

func (*OSMConfig) Context

func (config *OSMConfig) Context(cliCtx string) (*Context, error)

func (*OSMConfig) Dial

func (config *OSMConfig) Dial(cliCtx string) (stow.Location, error)

func (*OSMConfig) Save

func (config *OSMConfig) Save(configPath string) error

Jump to

Keyboard shortcuts

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