Documentation
¶
Index ¶
- Constants
- type Service
- func (s *Service) CreateInstance(scope *scope.MachineScope) (*compute.Instance, error)
- func (s *Service) DeleteFirewalls() error
- func (s *Service) DeleteInstanceGroups() error
- func (s *Service) DeleteLoadbalancers() error
- func (s *Service) DeleteNetwork() error
- func (s *Service) EnsureInstanceGroupMember(zone, name string, i *compute.Instance) error
- func (s *Service) GetInstanceGroupMembers(zone, name string) ([]*compute.InstanceWithNamedPorts, error)
- func (s *Service) GetOrCreateInstanceGroup(zone, name string) (*compute.InstanceGroup, error)
- func (s *Service) GetZones() ([]string, error)
- func (s *Service) InstanceIfExists(scope *scope.MachineScope) (*compute.Instance, error)
- func (s *Service) ReconcileFirewalls() error
- func (s *Service) ReconcileInstanceGroups() error
- func (s *Service) ReconcileLoadbalancers() error
- func (s *Service) ReconcileNetwork() error
- func (s *Service) TerminateInstanceAndWait(scope *scope.MachineScope) error
- func (s *Service) UpdateBackendServices() error
Constants ¶
View Source
const ( APIServerLoadBalancerProtocol = "TCP" APIServerLoadBalancerHealthCheckProtocol = "SSL" APIServerLoadBalancerProxyHeader = "NONE" APIServerLoadBalancerScheme = "EXTERNAL" APIServerLoadBalancerIPVersion = "IPV4" APIServerLoadBalancerBackendPortName = "apiserver" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the gcp client.
func NewService ¶
func NewService(scope *scope.ClusterScope) *Service
NewService returns a new service given the gcp api client.
func (*Service) CreateInstance ¶
func (s *Service) CreateInstance(scope *scope.MachineScope) (*compute.Instance, error)
CreateInstance runs a GCE instance.
func (*Service) DeleteFirewalls ¶
func (*Service) DeleteInstanceGroups ¶
func (*Service) DeleteLoadbalancers ¶
func (*Service) DeleteNetwork ¶
func (*Service) EnsureInstanceGroupMember ¶
func (*Service) GetInstanceGroupMembers ¶
func (*Service) GetOrCreateInstanceGroup ¶
func (*Service) InstanceIfExists ¶
func (s *Service) InstanceIfExists(scope *scope.MachineScope) (*compute.Instance, error)
InstanceIfExists returns the existing instance or nothing if it doesn't exist.
func (*Service) ReconcileFirewalls ¶
func (*Service) ReconcileInstanceGroups ¶
func (*Service) ReconcileLoadbalancers ¶
ReconcileLoadbalancers reconciles the api server load balancer.
func (*Service) ReconcileNetwork ¶
InstanceIfExists returns the existing instance or nothing if it doesn't exist.
func (*Service) TerminateInstanceAndWait ¶
func (s *Service) TerminateInstanceAndWait(scope *scope.MachineScope) error
func (*Service) UpdateBackendServices ¶
Click to show internal directories.
Click to hide internal directories.