Documentation ¶
Index ¶
- Constants
- func IsInvalidCloudconfigExtensionName(err error) bool
- func IsInvalidConfig(err error) bool
- func IsMalformedCloudConfigKey(err error) bool
- func IsMissingCloudConfigKey(err error) bool
- func IsSecretsRetrievalFailed(err error) bool
- type CloudConfigExtension
- type Config
- type Event
- type LoadBalancerInput
- type MasterCloudConfigExtension
- type Service
- type SmallCloudconfigConfig
- type TLSassets
- type WorkerCloudConfigExtension
Constants ¶
View Source
const ( ClusterListAPIEndpoint string = "/apis/cluster.giantswarm.io/v1/awses" ClusterWatchAPIEndpoint string = "/apis/cluster.giantswarm.io/v1/watch/awses" )
Variables ¶
This section is empty.
Functions ¶
func IsInvalidCloudconfigExtensionName ¶
asserts invalidCloudconfigExtensionNameError.
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
func IsMalformedCloudConfigKey ¶
IsMalformedCloudConfigKey asserts malformedCloudConfigKeyError.
func IsMissingCloudConfigKey ¶
IsMissingCloudConfigKey asserts missingCloudConfigKeyError.
func IsSecretsRetrievalFailed ¶
IsSecretsRetrievalFailed asserts secretsRetrievalFailedError.
Types ¶
type CloudConfigExtension ¶
type CloudConfigExtension struct { AwsInfo awstpr.Spec TLSAssets *certificatetpr.CompactTLSAssets }
func (*CloudConfigExtension) Units ¶
func (c *CloudConfigExtension) Units() ([]cloudconfig.UnitAsset, error)
type Config ¶
type Config struct { // Dependencies. CertWatcher *certkit.Service K8sClient kubernetes.Interface Logger micrologger.Logger // Settings. AwsConfig awsutil.Config PubKeyFile string }
Config represents the configuration used to create a version service.
func DefaultConfig ¶
func DefaultConfig() Config
DefaultConfig provides a default configuration to create a new service by best effort.
type Event ¶
type Event struct { Type string Object *awstpr.CustomObject }
type LoadBalancerInput ¶
type LoadBalancerInput struct { // Name is the ELB name. It must be unique within a region. Name string // Clients are the AWS clients. Clients awsutil.Clients // Cluster is the cluster TPO. Cluster awstpr.CustomObject // InstanceIDs are the IDs of the instances that should be registered with the ELB. InstanceIDs []string // PortsToOpen are the ports the ELB should listen to and forward on. PortsToOpen awsresources.PortPairs // SecurityGroupID is the ID of the security group that will be assigned to the ELB. SecurityGroupID string // SubnetID is the ID of the subnet the ELB will be placed in. SubnetID string }
type MasterCloudConfigExtension ¶
type MasterCloudConfigExtension struct {
CloudConfigExtension
}
func NewMasterCloudConfigExtension ¶
func NewMasterCloudConfigExtension(awsSpec awstpr.Spec, tlsAssets *certificatetpr.CompactTLSAssets) *MasterCloudConfigExtension
func (*MasterCloudConfigExtension) Files ¶
func (m *MasterCloudConfigExtension) Files() ([]cloudconfig.FileAsset, error)
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service implements the version service interface.
func (*Service) SmallCloudconfig ¶
func (s *Service) SmallCloudconfig(config SmallCloudconfigConfig) (string, error)
type SmallCloudconfigConfig ¶
type TLSassets ¶
type TLSassets struct { APIServerCA []byte APIServerKey []byte APIServerCrt []byte WorkerCA []byte WorkerKey []byte WorkerCrt []byte ServiceAccountCA []byte ServiceAccountKey []byte ServiceAccountCrt []byte CalicoClientCA []byte CalicoClientKey []byte CalicoClientCrt []byte EtcdServerCA []byte EtcdServerKey []byte EtcdServerCrt []byte }
type WorkerCloudConfigExtension ¶
type WorkerCloudConfigExtension struct {
CloudConfigExtension
}
func NewWorkerCloudConfigExtension ¶
func NewWorkerCloudConfigExtension(awsSpec awstpr.Spec, tlsAssets *certificatetpr.CompactTLSAssets) *WorkerCloudConfigExtension
func (*WorkerCloudConfigExtension) Files ¶
func (w *WorkerCloudConfigExtension) Files() ([]cloudconfig.FileAsset, error)
Click to show internal directories.
Click to hide internal directories.