Versions in this module Expand all Collapse all v0 v0.1.2 Mar 15, 2024 v0.1.1 Mar 15, 2024 Changes in this version + type Rules struct + EtherType int + ID int + Not bool + Or bool + Type string + Value int v0.1.0 Mar 15, 2024 Changes in this version + type Client struct + BaseURL string + Insecure bool + Token string + func NewClient(baseURL string, token string, insecure bool) *Client + func (c *Client) CreateNetwork() (Network, error) + func (c *Client) DeleteNetwork(networkID string) error + func (c *Client) DeleteNetworkMember(networkID string, memberID string) error + func (c *Client) GetNetwork(networkID string) (Network, error) + func (c *Client) GetNetworkList() ([]Network, error) + func (c *Client) GetNetworkMember(networkID string, memberID string) (NetworkMember, error) + func (c *Client) GetNetworkMemberList(networkID string) ([]NetworkMember, error) + func (c *Client) MakeDeleteRequest(url string) error + func (c *Client) MakeGetRequest(url string) ([]byte, error) + func (c *Client) MakePostRequest(url string, data io.Reader) ([]byte, error) + func (c *Client) UpdateNetwork(networkID string, network UpdateNetwork) (Network, error) + func (c *Client) UpdateNetworkMember(networkID string, memberID string, member UpdateNetworkMember) (NetworkMember, error) + type Network struct + AuthorizedMemberCount int + CapabilitiesByName struct{} + Clock int64 + Config *NetworkConfig + Description string + ID string + OnlineMemberCount int + OwnerID string + RulesSource string + TagsByName struct{ ... } + TotalMemberCount int + Type string + UI struct{ ... } + type NetworkConfig struct + AuthTokens string + Capabilities []string + CreationTime int64 + DNS struct{ ... } + EnableBroadcast bool + ID string + IPAssignmentPools []struct{ ... } + LastModified int64 + Mtu int + MulticastLimit int + Name string + Private bool + RemoteTraceLevel int + RemoteTraceTarget interface{} + Routes []struct{ ... } + Rules []struct{ ... } + SsoConfig struct{ ... } + Tags []struct{ ... } + V4AssignMode struct{ ... } + V6AssignMode struct{ ... } + type NetworkMember struct + ClientVersion string + Clock int64 + Config struct{ ... } + ControllerID string + Description string + Hidden bool + ID string + LastOnline int64 + LastSeen int64 + Name string + NetworkID string + NodeID string + PhysicalAddress string + PhysicalLocation string + ProtocolVersion int + SupportsRulesEngine bool + Type string + type UpdateNetwork struct + CapabilitiesByName struct{} + Config NetworkConfig + Description string + OwnerID string + Permissions struct{ ... } + RulesSource string + TagsByName struct{} + type UpdateNetworkMember struct + Config struct{ ... } + Description string + Hidden bool + Name string