sakura

package
v0.0.0-...-f9dcb43 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ProviderName is name of CCM provider
	ProviderName string = "sakuracloud"

	// ControllerName is name of CCM for logging
	ControllerName string = "sakura-cloud-controller-manager"
)
View Source
const (
	// TagsKubernetesResource is a marker tag indicating that resource is part of k8s cluster
	TagsKubernetesResource = "@k8s"

	// TagsClusterID is tag name for mark ClusterID
	TagsClusterID = TagsKubernetesResource + ".ClusterID"
)

Variables

View Source
var TagsLoadBalancerServiceName = fmt.Sprintf("%s.Service", TagsKubernetesResource)

TagsLoadBalancerServiceName is tag name indicating that resource is part of k8s cluster service

Functions

This section is empty.

Types

type Config

type Config struct {
	AccessToken         string `json:"accessToken" yaml:"accessToken" split_words:"true"`
	AccessTokenSecret   string `json:"accessTokenSecret" yaml:"accessTokenSecret" split_words:"true"`
	Zone                string `json:"zone" yaml:"zone" split_words:"true"`
	RetryMax            int    `json:"retryMax" yaml:"retryMax" split_words:"true"`
	RetryIntervalSec    int    `json:"retryIntervalSec" yaml:"retryIntervalSec" split_words:"true"`
	APIRootURL          string `json:"apiRootURL" yaml:"apiRootURL" split_words:"true"`
	TraceMode           bool   `json:"traceMode" yaml:"traceMode" split_words:"true"`
	DisableLoadBalancer bool   `json:"disableLoadBalancer" yaml:"disableLoadBalancer" split_words:"true"`

	ClusterID string `json:"clusterID" yaml:"clusterID" split_words:"true"`
}

Config represents CCM configuration includes sacloud API client configuration

func (*Config) Validate

func (c *Config) Validate() error

Validate returns error if CCM config is invalid

Jump to

Keyboard shortcuts

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