Documentation ¶
Index ¶
Constants ¶
View Source
const ( EipDeleteReason = "delete eip" EipAddOrUpdateReason = "add/update eip" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IPAM ¶
type IPAM struct { client.Client record.EventRecorder // contains filtered or unexported fields }
var (
IPAMAllocator *IPAM
)
func (*IPAM) UnAssignIP ¶
func (i *IPAM) UnAssignIP(args IPAMArgs, peek bool) (IPAMResult, error)
type IPAMArgs ¶
type IPAMArgs struct { // Service.Namespace + Service.Name // Required Key string // The IP address specified by the service Addr string // The Eip name specified by the service // Not available right now. Eip string // The Protocol specified by the service // Required Protocol string Unalloc bool }
func (*IPAMArgs) ShouldUnAssignIP ¶
func (i *IPAMArgs) ShouldUnAssignIP(result IPAMResult) bool
Compare the parameters and results to determine if the IP address should be retrieved.
type IPAMResult ¶
func (*IPAMResult) Assigned ¶
func (i *IPAMResult) Assigned() bool
Called when the service is updated or created.
func (*IPAMResult) Clean ¶
func (i *IPAMResult) Clean()
Click to show internal directories.
Click to hide internal directories.