Documentation ¶
Index ¶
- func Logger(c *gin.Context)
- type Action
- type Api
- type Base
- type Certificate
- type Condition
- type ForwardAction
- type Listener
- type Options
- type RedirectAction
- type Rule
- type Service
- func (s *Service) AddListenerRule(listenerId string, rule *Rule) error
- func (s *Service) AddTargetGroupAttachment(targetGroupId string, attachment *TargetGroupAttachment) error
- func (s *Service) CreateCertificate(certificate *Certificate) (*Certificate, error)
- func (s *Service) CreateListener(listener *Listener) (*Listener, error)
- func (s *Service) CreateTargetGroup(group *TargetGroup) (*TargetGroup, error)
- func (s *Service) DeleteCertificate(certificateId string) error
- func (s *Service) DestroyListener(listenerId string) error
- func (s *Service) DestroyTargetGroup(targetGroupId string) error
- func (s *Service) GetCertificate(certificateId string) (*Certificate, error)
- func (s *Service) GetListener(listenerId string) (*Listener, error)
- func (s *Service) GetTargetGroup(targetGroupId string) (*TargetGroup, error)
- func (s *Service) Init() error
- func (s *Service) ListCertificates() ([]*Certificate, error)
- func (s *Service) ListListeners() ([]*Listener, error)
- func (s *Service) ListTargetGroups() ([]*TargetGroup, error)
- func (s *Service) RemoveTargetGroupAttachment(targetGroupId string, attachmentId string) error
- func (s *Service) SetChannel(channel chan struct{})
- func (s *Service) UpdateCertificate(certificate *Certificate) (*Certificate, error)
- func (s *Service) UpdateListener(listener *Listener) (*Listener, error)
- func (s *Service) UpdateTargetGroup(group *TargetGroup) (*TargetGroup, error)
- type Stickiness
- type TargetGroup
- type TargetGroupAttachment
- type TargetGroupForwardAction
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Action ¶
type Action struct { Type string `json:"type"` Forward ForwardAction `json:"forward,omitempty" gorm:"embedded;embeddedPrefix:forward_"` Redirect RedirectAction `json:"redirect,omitempty" gorm:"embedded;embeddedPrefix:redirect_"` }
type Base ¶
type Certificate ¶
type ForwardAction ¶
type ForwardAction struct { TargetGroup TargetGroupForwardAction `json:"target_group" gorm:"embedded;embedddedPrefix:target_group_"` Stickiness Stickiness `json:"stickiness,omitempty" gorm:"embedded;embeddedPrefix:stickiness_"` }
type Listener ¶
type Listener struct { Base Name string `json:"name"` IpAddress string `json:"ip_address" gorm:"index:hostname,unique"` Port uint16 `json:"port" gorm:"index:hostname,unique"` Protocol string `json:"protocol,omitempty"` Type string `json:"type"` Enabled bool `json:"enabled,omitempty"` SslCertificateID string `json:"ssl_certificate_id,omitempty"` SslCertificate *Certificate `json:"ssl_certificate,omitempty"` Rules []Rule `json:"rules"` }
type RedirectAction ¶
type Service ¶
func (*Service) AddListenerRule ¶
func (*Service) AddTargetGroupAttachment ¶
func (s *Service) AddTargetGroupAttachment(targetGroupId string, attachment *TargetGroupAttachment) error
func (*Service) CreateCertificate ¶
func (s *Service) CreateCertificate(certificate *Certificate) (*Certificate, error)
func (*Service) CreateListener ¶
func (*Service) CreateTargetGroup ¶
func (s *Service) CreateTargetGroup(group *TargetGroup) (*TargetGroup, error)
func (*Service) DeleteCertificate ¶
func (*Service) DestroyListener ¶
func (*Service) DestroyTargetGroup ¶
func (*Service) GetCertificate ¶
func (s *Service) GetCertificate(certificateId string) (*Certificate, error)
func (*Service) GetTargetGroup ¶
func (s *Service) GetTargetGroup(targetGroupId string) (*TargetGroup, error)
func (*Service) ListCertificates ¶
func (s *Service) ListCertificates() ([]*Certificate, error)
func (*Service) ListListeners ¶
func (*Service) ListTargetGroups ¶
func (s *Service) ListTargetGroups() ([]*TargetGroup, error)
func (*Service) RemoveTargetGroupAttachment ¶
func (*Service) SetChannel ¶
func (s *Service) SetChannel(channel chan struct{})
SetChannel configures the event channel to emit create / update /delete events onto
func (*Service) UpdateCertificate ¶
func (s *Service) UpdateCertificate(certificate *Certificate) (*Certificate, error)
func (*Service) UpdateListener ¶
func (*Service) UpdateTargetGroup ¶
func (s *Service) UpdateTargetGroup(group *TargetGroup) (*TargetGroup, error)
type Stickiness ¶
type TargetGroup ¶
type TargetGroup struct { Base Name string `json:"name"` Enabled bool `json:"enabled,omitempty"` Attachments []TargetGroupAttachment `json:"attachments"` }
type TargetGroupAttachment ¶
Click to show internal directories.
Click to hide internal directories.