Documentation ¶
Index ¶
- Constants
- Variables
- func Contains(slice []string, item string) bool
- func Difference(a, b []string) []string
- func DifferenceSlice(a, b [][]string) [][]string
- func ExpandStringList(configured []interface{}) []string
- func ReadFile(local_filepath string) (string, string, error)
- type APIRequest
- type APIResp
- type ARMPeer
- type AWSPeer
- type AWSTgw
- type AWSTgwAPIResp
- type AWSTgwList
- type Account
- type AccountListResp
- type AccountResult
- type AccountUser
- type AccountUserEdit
- type AccountUserListResp
- type AlgorithmInfo
- type AllVpcPoolVpcListResp
- type ArmPeerAPIResp
- type AttachedVPCDetail
- type AviatrixVersion
- type AwsPeerAPIResp
- type AwsTgwVpcAttachment
- type AwsTgwVpnConn
- type AwsTgwVpnConnCreateResp
- type AwsTgwVpnConnEdit
- type AwsTgwVpnConnResp
- type CIDRMember
- type Client
- func (c *Client) AddTags(tags *Tags) error
- func (c *Client) AttachAviatrixTransitGWToAWSTgw(awsTgw *AWSTgw, gateway *Gateway, SecurityDomainName string) error
- func (c *Client) AttachGws(fqdn *FQDN) error
- func (c *Client) AttachTagToGw(fqdn *FQDN, gateway *Gateway) error
- func (c *Client) AttachTransitGWForHybrid(gateway *TransitVpc) error
- func (c *Client) AttachUsers(profile *Profile) error
- func (c *Client) AttachVpcToAWSTgw(awsTgw *AWSTgw, vpcSolo VPCSolo, SecurityDomainName string) error
- func (c *Client) ControllerVersionValidation(supportedVersion string) error
- func (c *Client) CreateARMPeer(armPeer *ARMPeer) error
- func (c *Client) CreateAWSPeer(awsPeer *AWSPeer) (string, error)
- func (c *Client) CreateAWSTgw(awsTgw *AWSTgw) error
- func (c *Client) CreateAccount(account *Account) error
- func (c *Client) CreateAccountUser(user *AccountUser) error
- func (c *Client) CreateAwsTgwVpcAttachment(awsTgwVpcAttachment *AwsTgwVpcAttachment) error
- func (c *Client) CreateAwsTgwVpnConn(awsTgwVpnConn *AwsTgwVpnConn) (string, error)
- func (c *Client) CreateDomainConnection(awsTgw *AWSTgw, sourceDomain string, destinationDomain string) error
- func (c *Client) CreateFQDN(fqdn *FQDN) error
- func (c *Client) CreateFirewallTag(firewall_tag *FirewallTag) error
- func (c *Client) CreateGateway(gateway *Gateway) error
- func (c *Client) CreateProfile(profile *Profile) error
- func (c *Client) CreateSecurityDomain(securityDomain *SecurityDomain) error
- func (c *Client) CreateSite2Cloud(site2cloud *Site2Cloud) error
- func (c *Client) CreateTransPeer(transPeer *TransPeer) error
- func (c *Client) CreateTransitGatewayPeering(transitGatewayPeering *TransitGatewayPeering) error
- func (c *Client) CreateTunnel(tunnel *Tunnel) error
- func (c *Client) CreateVGWConn(vgwConn *VGWConn) error
- func (c *Client) CreateVPNUser(vpnUser *VPNUser) error
- func (c *Client) CreateVpc(vpc *Vpc) error
- func (c *Client) Delete(path string, i interface{}) (*http.Response, error)
- func (c *Client) DeleteARMPeer(armPeer *ARMPeer) error
- func (c *Client) DeleteAWSPeer(awsPeer *AWSPeer) error
- func (c *Client) DeleteAWSTgw(awsTgw *AWSTgw) error
- func (c *Client) DeleteAccount(account *Account) error
- func (c *Client) DeleteAccountUser(user *AccountUser) error
- func (c *Client) DeleteAwsTgwVpcAttachment(awsTgwVpcAttachment *AwsTgwVpcAttachment) error
- func (c *Client) DeleteAwsTgwVpnConn(awsTgwVpnConn *AwsTgwVpnConn) error
- func (c *Client) DeleteDomainConnection(awsTgw *AWSTgw, sourceDomain string, destinationDomain string) error
- func (c *Client) DeleteFQDN(fqdn *FQDN) error
- func (c *Client) DeleteFirewallTag(firewall_tag *FirewallTag) error
- func (c *Client) DeleteGateway(gateway *Gateway) error
- func (c *Client) DeleteProfile(profile *Profile) error
- func (c *Client) DeleteSecurityDomain(securityDomain *SecurityDomain) error
- func (c *Client) DeleteSite2Cloud(site2cloud *Site2Cloud) error
- func (c *Client) DeleteTags(tags *Tags) error
- func (c *Client) DeleteTransPeer(transPeer *TransPeer) error
- func (c *Client) DeleteTransitGatewayPeering(transitGatewayPeering *TransitGatewayPeering) error
- func (c *Client) DeleteTunnel(tunnel *Tunnel) error
- func (c *Client) DeleteVGWConn(vgwConn *VGWConn) error
- func (c *Client) DeleteVPNUser(vpnUser *VPNUser) error
- func (c *Client) DeleteVpc(vpc *Vpc) error
- func (c *Client) DetachAviatrixTransitGWFromAWSTgw(awsTgw *AWSTgw, gateway *Gateway, SecurityDomainName string) error
- func (c *Client) DetachGws(fqdn *FQDN, gwList []string) error
- func (c *Client) DetachTransitGWForHybrid(gateway *TransitVpc) error
- func (c *Client) DetachUsers(profile *Profile) error
- func (c *Client) DetachVpcFromAWSTgw(awsTgw *AWSTgw, vpcID string) error
- func (c *Client) DisableAdvertiseTransitCidr(vgwConn *VGWConn) error
- func (c *Client) DisableBgpManualSpokeAdvertisedNetworks(vgwConn *VGWConn) error
- func (c *Client) DisableConnectedTransit(gateway *TransitVpc) error
- func (c *Client) DisableDeadPeerDetection(site2cloud *Site2Cloud) error
- func (c *Client) DisableExceptionRule() error
- func (c *Client) DisableGatewayFireNetInterfaces(gateway *TransitVpc) error
- func (c *Client) DisableHttpAccess() error
- func (c *Client) DisableSNat(gateway *Gateway) error
- func (c *Client) DisableSecurityGroupManagement() error
- func (c *Client) DisableSingleAZGateway(gateway *Gateway) error
- func (c *Client) Do(verb string, req interface{}) (*http.Response, []byte, error)
- func (c *Client) EnableAdvertiseTransitCidr(vgwConn *VGWConn) error
- func (c *Client) EnableConnectedTransit(gateway *TransitVpc) error
- func (c *Client) EnableDeadPeerDetection(site2cloud *Site2Cloud) error
- func (c *Client) EnableExceptionRule() error
- func (c *Client) EnableGatewayFireNetInterfaces(gateway *TransitVpc) error
- func (c *Client) EnableHaSpokeVpc(spoke *SpokeVpc) error
- func (c *Client) EnableHaTransitVpc(gateway *TransitVpc) error
- func (c *Client) EnableHttpAccess() error
- func (c *Client) EnableNatGateway(gateway *Gateway) error
- func (c *Client) EnablePeeringHaGateway(gateway *Gateway) error
- func (c *Client) EnableSNat(gateway *Gateway) error
- func (c *Client) EnableSecurityGroupManagement(account string) error
- func (c *Client) EnableSingleAZGateway(gateway *Gateway) error
- func (c *Client) Get(path string, i interface{}) (*http.Response, error)
- func (c *Client) GetARMPeer(armPeer *ARMPeer) (*ARMPeer, error)
- func (c *Client) GetAWSPeer(awsPeer *AWSPeer) (*AWSPeer, error)
- func (c *Client) GetAWSTgw(awsTgw *AWSTgw) (*AWSTgw, error)
- func (c *Client) GetAccount(account *Account) (*Account, error)
- func (c *Client) GetAccountUser(user *AccountUser) (*AccountUser, error)
- func (c *Client) GetAwsTgwDetail(awsTgw *AWSTgw) (*AWSTgw, error)
- func (c *Client) GetAwsTgwDomain(awsTgw *AWSTgw, sDM string) error
- func (c *Client) GetAwsTgwDomainAttachedVpc(awsTgwVpcAttachment *AwsTgwVpcAttachment) (*AwsTgwVpcAttachment, error)
- func (c *Client) GetAwsTgwVpcAttachment(awsTgwVpcAttachment *AwsTgwVpcAttachment) (*AwsTgwVpcAttachment, error)
- func (c *Client) GetAwsTgwVpnConn(awsTgwVpnConn *AwsTgwVpnConn) (*AwsTgwVpnConn, error)
- func (c *Client) GetCurrentVersion() (string, *AviatrixVersion, error)
- func (c *Client) GetExceptionRuleStatus() (bool, error)
- func (c *Client) GetFQDNTag(fqdn *FQDN) (*FQDN, error)
- func (c *Client) GetFirewallTag(firewall_tag *FirewallTag) (*FirewallTag, error)
- func (c *Client) GetGateway(gateway *Gateway) (*Gateway, error)
- func (c *Client) GetGatewayDetail(gateway *Gateway) (*GatewayDetail, error)
- func (c *Client) GetGwFilterTagList(fqdn *FQDN) (*FQDN, error)
- func (c *Client) GetHttpAccessEnabled() (string, error)
- func (c *Client) GetLatestVersion() (string, error)
- func (c *Client) GetPolicy(firewall *Firewall) (*Firewall, error)
- func (c *Client) GetProfile(profile *Profile) (*Profile, error)
- func (c *Client) GetProfileBasePolicy(profile *Profile) (*Profile, error)
- func (c *Client) GetSecurityDomain(securityDomain *SecurityDomain) (string, error)
- func (c *Client) GetSecurityGroupManagementStatus() (*SecurityGroupInfo, error)
- func (c *Client) GetSite2Cloud(site2cloud *Site2Cloud) (*Site2Cloud, error)
- func (c *Client) GetSite2CloudConnDetail(site2cloud *Site2Cloud) (*Site2Cloud, error)
- func (c *Client) GetSplitTunnel(splitTunnel *SplitTunnel) (*SplitTunnelUnit, error)
- func (c *Client) GetTags(tags *Tags) ([]string, error)
- func (c *Client) GetTransPeer(transPeer *TransPeer) (*TransPeer, error)
- func (c *Client) GetTransitGatewayPeering(transitGatewayPeering *TransitGatewayPeering) error
- func (c *Client) GetTransitGwFromVpcID(gateway *Gateway) (*Gateway, error)
- func (c *Client) GetTunnel(tunnel *Tunnel) (*Tunnel, error)
- func (c *Client) GetVGWConn(vgwConn *VGWConn) (*VGWConn, error)
- func (c *Client) GetVGWConnDetail(vgwConn *VGWConn) (*VGWConn, error)
- func (c *Client) GetVPNUser(vpnUser *VPNUser) (*VPNUser, error)
- func (c *Client) GetVpc(vpc *Vpc) (*Vpc, error)
- func (c *Client) GetVpnUserAccelerator() ([]string, error)
- func (c *Client) IsVpcAttachedToTgw(awsTgw *AWSTgw, vpcSolo *VPCSolo) (bool, error)
- func (c *Client) LaunchSpokeVpc(spoke *SpokeVpc) error
- func (c *Client) LaunchTransitVpc(gateway *TransitVpc) error
- func (c *Client) ListDomains(fqdn *FQDN) (*FQDN, error)
- func (c *Client) ListFQDNTags() ([]*FQDN, error)
- func (c *Client) ListGws(fqdn *FQDN) ([]string, error)
- func (c *Client) ListTgwDetails(awsTgw *AWSTgw) (*AWSTgw, error)
- func (c *Client) Login() error
- func (c *Client) ModifySplitTunnel(splitTunnel *SplitTunnel) error
- func (c *Client) Post(path string, i interface{}) (*http.Response, error)
- func (c *Client) Pre32Upgrade() error
- func (c *Client) Put(path string, i interface{}) (*http.Response, error)
- func (c *Client) Request(verb string, path string, i interface{}) (*http.Response, error)
- func (c *Client) SetBasePolicy(firewall *Firewall) error
- func (c *Client) SetBgpManualSpokeAdvertisedNetworks(vgwConn *VGWConn) error
- func (c *Client) SetVpnGatewayAuthentication(gateway *VpnGatewayAuth) error
- func (c *Client) Site2CloudAlgorithmCheck(site2cloud *Site2Cloud) error
- func (c *Client) SpokeJoinTransit(spoke *SpokeVpc) error
- func (c *Client) SpokeLeaveTransit(spoke *SpokeVpc) error
- func (c *Client) UpdateARMPeer(armPeer *ARMPeer) error
- func (c *Client) UpdateAWSPeer(awsPeer *AWSPeer) error
- func (c *Client) UpdateAWSTgw(awsTgw *AWSTgw) error
- func (c *Client) UpdateAccount(account *Account) error
- func (c *Client) UpdateAccountUserObject(user *AccountUserEdit) error
- func (c *Client) UpdateAwsTgwVpcAttachment(awsTgwVpcAttachment *AwsTgwVpcAttachment) error
- func (c *Client) UpdateDomains(fqdn *FQDN) error
- func (c *Client) UpdateFQDNMode(fqdn *FQDN) error
- func (c *Client) UpdateFQDNStatus(fqdn *FQDN) error
- func (c *Client) UpdateFirewallTag(firewall_tag *FirewallTag) error
- func (c *Client) UpdateGateway(gateway *Gateway) error
- func (c *Client) UpdateMaxVpnConn(gateway *Gateway) error
- func (c *Client) UpdatePolicy(firewall *Firewall) error
- func (c *Client) UpdateProfilePolicy(profile *Profile) error
- func (c *Client) UpdateSecurityDomain(securityDomain *SecurityDomain) error
- func (c *Client) UpdateSite2Cloud(site2cloud *EditSite2Cloud) error
- func (c *Client) UpdateSourceIPFilters(fqdn *FQDN, gateway *Gateway, sourceIPs []string) error
- func (c *Client) UpdateTransPeer(transPeer *TransPeer) error
- func (c *Client) UpdateTransitGatewayPeering(transitGatewayPeering *TransitGatewayPeering) error
- func (c *Client) UpdateTunnel(tunnel *Tunnel) error
- func (c *Client) UpdateVGWConn(vgwConn *VGWConn) error
- func (c *Client) UpdateVpc(vpc *Vpc) error
- func (c *Client) UpdateVpnCidr(gateway *Gateway) error
- func (c *Client) UpdateVpnUserAccelerator(xlr *VpnUserXlr) error
- func (c *Client) Upgrade(version *Version) error
- func (c *Client) UploadGcloudProjectCredentialsFile(account *Account) error
- func (c *Client) ValidateAWSTgwDomains(domainsAll []string, domainConnAll [][]string, attachedVPCAll [][]string) ([]string, [][]string, [][]string, error)
- func (c *Client) ValidatePolicy(policy *Policy) error
- func (c *Client) ValidateProfileRule(profileRule *ProfileRule) error
- type ConnectionDetail
- type ControllerHttpAccessResp
- type DomainListResp
- type EditSite2Cloud
- type EditSite2CloudConnDetail
- type FQDN
- type Filters
- type Firewall
- type FirewallResp
- type FirewallTag
- type FirewallTagResp
- type Gateway
- type GatewayDetail
- type GatewayDetailApiResp
- type GatewayListResp
- type GetAwsTgwVpnConnVpnIdResp
- type GetFqdnExceptionRuleResp
- type GetSecurityGroupManagementResp
- type GwFilterTag
- type GwSourceIP
- type LoginResp
- type Policy
- type Profile
- type ProfileBasePolicyResp
- type ProfilePolicyListResp
- type ProfilePolicyListRule
- type ProfileRule
- type ProfileUserListResp
- type ResultListResp
- type ResultListSourceIPResp
- type RouteDomainAPIResp
- type RouteDomainDetail
- type RoutesInRouteTable
- type SecurityDomain
- type SecurityDomainAPIResp
- type SecurityDomainList
- type SecurityDomainRule
- type SecurityGroupInfo
- type Site2Cloud
- type Site2CloudConnDetailList
- type Site2CloudConnDetailResp
- type Site2CloudConnList
- type Site2CloudResp
- type SplitTunnel
- type SplitTunnelResp
- type SplitTunnelUnit
- type SpokeVpc
- type SubnetInfo
- type TGWInfoList
- type TGWInfoResp
- type TagAPIResp
- type Tags
- type TgwInfoDetail
- type TransPeer
- type TransPeerListResp
- type TransitGatewayPeering
- type TransitGatewayPeeringAPIResp
- type TransitGwFireNetInterfaces
- type TransitGwFireNetInterfacesResp
- type TransitVpc
- type Tunnel
- type TunnelInfo
- type TunnelListResp
- type TunnelResult
- type UpgradeResp
- type VGWConn
- type VGWConnBgpManualSpokeAdvertisedNetworksResp
- type VGWConnDetail
- type VGWConnDetailResp
- type VGWConnEnableAdvertiseTransitCidrResp
- type VGWConnList
- type VGWConnListResp
- type VPCInfo
- type VPCList
- type VPCSolo
- type VPNUser
- type VPNUserInfo
- type VPNUserListResp
- type VPNUserResp
- type Version
- type VersionInfo
- type VersionInfoResp
- type Vpc
- type VpcEdit
- type VpcResp
- type VpnGatewayAuth
- type VpnUserXlr
- type VpnUserXlrAPIResp
Constants ¶
const Phase1AuthDefault = "SHA-1"
const Phase1DhGroupDefault = "2"
const Phase1EncryptionDefault = "AES-256-CBC"
const Phase2AuthDefault = "HMAC-SHA-1"
const Phase2DhGroupDefault = "2"
const Phase2EncryptionDefault = "AES-256-CBC"
const SslServerPoolDefault = "192.168.44.0/24"
Variables ¶
var ErrNotFound = fmt.Errorf("ErrNotFound")
Functions ¶
func Difference ¶
difference returns the elements in a that aren't in b
func DifferenceSlice ¶
DifferenceSlice returns the one-dimension elements in two-dimension slice a that aren't in two-dimension b
func ExpandStringList ¶
func ExpandStringList(configured []interface{}) []string
Types ¶
type APIRequest ¶
type APIRequest struct { CID string `form:"CID,omitempty" json:"CID" url:"CID"` Action string `form:"action,omitempty" json:"action" url:"action"` }
APIRequest represents the basic fields for any request
type ARMPeer ¶ added in v1.8.26
type ARMPeer struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` AccountName1 string `form:"req_account_name,omitempty"` AccountName2 string `form:"acc_account_name,omitempty"` VNet1 string `form:"req_vpc_id,omitempty"` VNet2 string `form:"acc_vpc_id,omitempty"` Region1 string `form:"req_region,omitempty"` Region2 string `form:"acc_region,omitempty"` VNetCidr1 []string VNetCidr2 []string }
ARMPeer simple struct to hold arm_peer details
type AWSPeer ¶
type AWSPeer struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` AccountName1 string `form:"peer1_account_name,omitempty"` AccountName2 string `form:"peer2_account_name,omitempty"` VpcID1 string `form:"peer1_vpc_id,omitempty"` VpcID2 string `form:"peer2_vpc_id,omitempty"` Region1 string `form:"peer1_region,omitempty"` Region2 string `form:"peer2_region,omitempty"` RtbList1 string `form:"peer1_rtb_id,omitempty"` RtbList2 string `form:"peer2_rtb_id,omitempty"` }
AWSPeer simple struct to hold aws_peer details
type AWSTgw ¶
type AWSTgw struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` Name string `form:"tgw_name,omitempty"` AccountName string `form:"account_name,omitempty"` Region string `form:"region,omitempty"` AwsSideAsNumber string `form:"aws_side_asn,omitempty"` AttachedAviatrixTransitGW []string `form:"attached_aviatrix_transit_gateway,omitempty"` SecurityDomains []SecurityDomainRule `form:"security_domains,omitempty"` ManageVpcAttachment string }
AwsTGW simple struct to hold aws_tgw details
type AWSTgwAPIResp ¶
type AWSTgwList ¶
type Account ¶
type Account struct { CID string `form:"CID,omitempty"` Action string `form:"action,omitempty"` AccountName string `form:"account_name,omitempty" json:"account_name,omitempty"` CloudType int `form:"cloud_type,omitempty" json:"cloud_type,omitempty"` AwsAccountNumber string `form:"aws_account_number,omitempty" json:"account_number,omitempty"` AwsIam string `form:"aws_iam,omitempty" json:"aws_iam,omitempty"` AwsAccessKey string `form:"aws_access_key,omitempty" json:"account_access_key,omitempty"` AwsSecretKey string `form:"aws_secret_key,omitempty" json:"account_secret_access_key,omitempty"` AwsRoleApp string `form:"aws_role_arn,omitempty" json:"aws_role_arn,omitempty"` AwsRoleEc2 string `form:"aws_role_ec2,omitempty" json:"aws_role_ec2,omitempty"` AzureSubscriptionId string `form:"azure_subscription_id,omitempty" json:"azure_subscription_id,omitempty"` ArmSubscriptionId string `form:"arm_subscription_id,omitempty" json:"arm_subscription_id,omitempty"` ArmApplicationEndpoint string `form:"arm_application_endpoint,omitempty" json:"arm_ad_tenant_id,omitempty"` ArmApplicationClientId string `form:"arm_application_client_id,omitempty" json:"arm_ad_client_id,omitempty"` ArmApplicationClientSecret string `form:"arm_application_client_secret,omitempty" json:"arm_ad_client_secret,omitempty"` AwsgovAccountNumber string `form:"awsgov_account_number,omitempty" json:"awsgov_account_number,omitempty"` AwsgovAccessKey string `form:"awsgov_access_key,omitempty" json:"awsgov_access_key,omitempty"` AwsgovSecretKey string `form:"awsgov_secret_key,omitempty" json:"awsgov_secret_key,omitempty"` AwsgovCloudtrailBucket string `form:"awsgov_cloudtrail_bucket,omitempty" json:"awsgov_cloudtrail_bucket,omitempty"` AzurechinaSubscriptionId string `form:"azurechina_subscription_id,omitempty" json:"azurechina_subscription_id,omitempty"` AwschinaAccountNumber string `form:"awschina_account_number,omitempty" json:"awschina_account_number,omitempty"` AwschinaAccessKey string `form:"awschina_access_key,omitempty" json:"awschinacloud_access_key,omitempty"` AwschinaSecretKey string `form:"awschina_secret_key,omitempty" json:"awschinacloud_secret_key,omitempty"` ArmChinaSubscriptionId string `form:"arm_china_subscription_id,omitempty" json:"arm_china_subscription_id,omitempty"` ArmChinaApplicationEndpoint string `form:"arm_china_application_endpoint,omitempty" json:"arm_china_application_endpoint,omitempty"` ArmChinaApplicationClientId string `form:"arm_china_application_client_id,omitempty" json:"arm_china_application_client_id,omitempty"` ArmChinaApplicationClientSecret string `form:"arm_china_application_client_secret,omitempty" json:"arm_china_application_client_secret,omitempty"` GcloudProjectCredentialsFilename string `form:"filename,omitempty"` GcloudProjectCredentialsContents string `form:"contents,omitempty"` GcloudProjectCredentialsFilepathLocal string `form:"gcloud_project_credentials_local,omitempty"` GcloudProjectCredentialsFilepathController string `form:"gcloud_project_credentials,omitempty"` GcloudProjectName string `form:"gcloud_project_name,omitempty" json:"project,omitempty"` }
type AccountListResp ¶
type AccountListResp struct { Return bool `json:"return"` Results AccountResult `json:"results"` Reason string `json:"reason"` }
type AccountResult ¶
type AccountResult struct {
AccountList []Account `json:"account_list"`
}
type AccountUser ¶
type AccountUser struct { CID string `form:"CID,omitempty"` Action string `form:"action,omitempty"` UserName string `form:"username,omitempty" json:"user_name,omitempty"` AccountName string `form:"account_name,omitempty" json:"acct_names,omitempty"` Email string `form:"email,omitempty" json:"user_email,omitempty"` Password string `form:"password,omitempty" json:"password,omitempty"` }
type AccountUserEdit ¶
type AccountUserEdit struct { CID string `form:"CID,omitempty"` Action string `form:"action,omitempty"` UserName string `form:"username,omitempty" json:"user_name,omitempty"` AccountName string `form:"account_name,omitempty" json:"account_name,omitempty"` Email string `form:"email,omitempty" json:"email,omitempty"` What string `form:"what,omitempty" json:"what,omitempty"` OldPassword string `form:"old_password,omitempty" json:"old_password,omitempty"` NewPassword string `form:"new_password,omitempty" json:"new_password,omitempty"` }
type AccountUserListResp ¶
type AccountUserListResp struct { Return bool `json:"return"` AccountUserList []AccountUser `json:"results"` Reason string `json:"reason"` }
type AlgorithmInfo ¶ added in v1.9.28
type AlgorithmInfo struct { Phase1Auth []string `json:"ph1_auth,omitempty"` Phase1DhGroups []string `json:"ph1_dh,omitempty"` Phase1Encrption []string `json:"ph1_encr,omitempty"` Phase2Auth []string `json:"ph2_auth,omitempty"` Phase2DhGroups []string `json:"ph2_dh,omitempty"` Phase2Encrption []string `json:"ph2_encr,omitempty"` }
type AllVpcPoolVpcListResp ¶ added in v1.7.18
type AllVpcPoolVpcListResp struct {
AllVpcPoolVpcList []VpcEdit `json:"all_vpc_pool_vpc_list, omitempty"`
}
type ArmPeerAPIResp ¶ added in v1.8.26
type AttachedVPCDetail ¶
type AttachedVPCDetail struct { TgwName string `json:"tgw_name"` Region string `json:"region"` VPCName string `json:"vpc_name"` AttachmentId string `json:"attachment_id"` RouteDomain string `json:"route_domain"` VPCCidr []string `json:"vpc_cidr"` VPCId string `json:"vpc_id"` AccountName string `json:"account_name"` }
type AviatrixVersion ¶
func ParseVersion ¶ added in v1.11.16
func ParseVersion(version string) (string, *AviatrixVersion, error)
type AwsPeerAPIResp ¶
type AwsTgwVpcAttachment ¶
type AwsTgwVpcAttachment struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` TgwName string `form:"tgw_name"` Region string `form:"region"` SecurityDomainName string `form:"security_domain_name"` VpcAccountName string `form:"vpc_account_name"` VpcID string `form:"vpc_id"` }
type AwsTgwVpnConn ¶ added in v1.11.16
type AwsTgwVpnConn struct { Action string `form:"action,omitempty"` TgwName string `form:"tgw_name,omitempty"` RouteDomainName string `form:"route_domain_name,omitempty"` CID string `form:"CID,omitempty"` ConnName string `form:"connection_name,omitempty"` PublicIP string `form:"public_ip,omitempty"` OnpremASN string `form:"onprem_asn,omitempty"` RemoteCIDR string `form:"remote_cidr,omitempty"` VpnID string `form:"vpn_id,omitempty"` InsideIpCIDRTun1 string `form:"inside_ip_cidr_tun_1,omitempty"` InsideIpCIDRTun2 string `form:"inside_ip_cidr_tun_2,omitempty"` }
VGWConn simple struct to hold VGW Connection details
type AwsTgwVpnConnCreateResp ¶ added in v1.11.16
type AwsTgwVpnConnEdit ¶ added in v1.11.16
type AwsTgwVpnConnEdit struct { TgwName string `json:"tgw_name,omitempty"` RouteDomainName string `json:"associated_route_domain_name,omitempty"` ConnName string `json:"vpc_name,omitempty"` PublicIP string `json:"public_ip,omitempty"` OnpremASN string `json:"aws_side_asn,omitempty"` RemoteCIDR []string `json:"remote_cidrs,omitempty"` VpnID string `json:"vpc_id,omitempty"` InsideIpCIDRTun1 string `json:"inside_ip_cidr_tun_1,omitempty"` InsideIpCIDRTun2 string `json:"inside_ip_cidr_tun_2,omitempty"` }
type AwsTgwVpnConnResp ¶ added in v1.11.16
type AwsTgwVpnConnResp struct { Return bool `json:"return"` Results []AwsTgwVpnConnEdit `json:"results"` Reason string `json:"reason"` }
type CIDRMember ¶
type Client ¶
type Client struct { HTTPClient *http.Client Username string Password string CID string ControllerIP string // contains filtered or unexported fields }
Client for accessing the Aviatrix Controller
func NewClient ¶
func NewClient(username string, password string, controllerIP string, HTTPClient *http.Client) (*Client, error)
NewClient creates a Client object using the arguments provided. Arguments:
username - the controller username password - the controller password controllerIP - the controller IP/host HTTPClient - the http client object
Returns:
Client - the newly created client error - if any
See Also:
init()
func (*Client) AttachAviatrixTransitGWToAWSTgw ¶
func (*Client) AttachTagToGw ¶ added in v1.6.29
func (*Client) AttachTransitGWForHybrid ¶
func (c *Client) AttachTransitGWForHybrid(gateway *TransitVpc) error
func (*Client) AttachUsers ¶
func (*Client) AttachVpcToAWSTgw ¶
func (*Client) ControllerVersionValidation ¶ added in v1.6.29
func (*Client) CreateARMPeer ¶ added in v1.8.26
func (*Client) CreateAWSTgw ¶
func (*Client) CreateAccount ¶
func (*Client) CreateAccountUser ¶
func (c *Client) CreateAccountUser(user *AccountUser) error
func (*Client) CreateAwsTgwVpcAttachment ¶
func (c *Client) CreateAwsTgwVpcAttachment(awsTgwVpcAttachment *AwsTgwVpcAttachment) error
func (*Client) CreateAwsTgwVpnConn ¶ added in v1.11.16
func (c *Client) CreateAwsTgwVpnConn(awsTgwVpnConn *AwsTgwVpnConn) (string, error)
func (*Client) CreateDomainConnection ¶
func (*Client) CreateFQDN ¶
func (*Client) CreateFirewallTag ¶
func (c *Client) CreateFirewallTag(firewall_tag *FirewallTag) error
func (*Client) CreateGateway ¶
func (*Client) CreateProfile ¶
func (*Client) CreateSecurityDomain ¶
func (c *Client) CreateSecurityDomain(securityDomain *SecurityDomain) error
func (*Client) CreateSite2Cloud ¶
func (c *Client) CreateSite2Cloud(site2cloud *Site2Cloud) error
func (*Client) CreateTransPeer ¶
func (*Client) CreateTransitGatewayPeering ¶
func (c *Client) CreateTransitGatewayPeering(transitGatewayPeering *TransitGatewayPeering) error
func (*Client) CreateTunnel ¶
func (*Client) CreateVGWConn ¶
func (*Client) CreateVPNUser ¶
func (*Client) DeleteARMPeer ¶ added in v1.8.26
func (*Client) DeleteAWSPeer ¶
func (*Client) DeleteAWSTgw ¶
func (*Client) DeleteAccount ¶
func (*Client) DeleteAccountUser ¶
func (c *Client) DeleteAccountUser(user *AccountUser) error
func (*Client) DeleteAwsTgwVpcAttachment ¶
func (c *Client) DeleteAwsTgwVpcAttachment(awsTgwVpcAttachment *AwsTgwVpcAttachment) error
func (*Client) DeleteAwsTgwVpnConn ¶ added in v1.11.16
func (c *Client) DeleteAwsTgwVpnConn(awsTgwVpnConn *AwsTgwVpnConn) error
func (*Client) DeleteDomainConnection ¶
func (*Client) DeleteFQDN ¶
func (*Client) DeleteFirewallTag ¶
func (c *Client) DeleteFirewallTag(firewall_tag *FirewallTag) error
func (*Client) DeleteGateway ¶
func (*Client) DeleteProfile ¶
func (*Client) DeleteSecurityDomain ¶
func (c *Client) DeleteSecurityDomain(securityDomain *SecurityDomain) error
func (*Client) DeleteSite2Cloud ¶
func (c *Client) DeleteSite2Cloud(site2cloud *Site2Cloud) error
func (*Client) DeleteTags ¶
func (*Client) DeleteTransPeer ¶
func (*Client) DeleteTransitGatewayPeering ¶
func (c *Client) DeleteTransitGatewayPeering(transitGatewayPeering *TransitGatewayPeering) error
func (*Client) DeleteTunnel ¶
func (*Client) DeleteVGWConn ¶
func (*Client) DeleteVPNUser ¶
func (*Client) DetachAviatrixTransitGWFromAWSTgw ¶
func (*Client) DetachTransitGWForHybrid ¶
func (c *Client) DetachTransitGWForHybrid(gateway *TransitVpc) error
func (*Client) DetachUsers ¶
func (*Client) DetachVpcFromAWSTgw ¶
func (*Client) DisableAdvertiseTransitCidr ¶ added in v1.9.28
func (*Client) DisableBgpManualSpokeAdvertisedNetworks ¶ added in v1.9.28
func (*Client) DisableConnectedTransit ¶
func (c *Client) DisableConnectedTransit(gateway *TransitVpc) error
func (*Client) DisableDeadPeerDetection ¶ added in v1.9.28
func (c *Client) DisableDeadPeerDetection(site2cloud *Site2Cloud) error
func (*Client) DisableExceptionRule ¶ added in v1.6.29
func (*Client) DisableGatewayFireNetInterfaces ¶ added in v1.9.28
func (c *Client) DisableGatewayFireNetInterfaces(gateway *TransitVpc) error
func (*Client) DisableHttpAccess ¶ added in v1.6.29
func (*Client) DisableSNat ¶
func (*Client) DisableSecurityGroupManagement ¶ added in v1.6.29
func (*Client) DisableSingleAZGateway ¶
func (*Client) Do ¶
Do performs the HTTP request. Arguments:
verb - GET, PUT, POST, DELETE, etc req - the query string (for GET) or body for others
Returns:
http.Response - the HTTP response object (body is closed) []byte - the body string as a byte array error - if any
func (*Client) EnableAdvertiseTransitCidr ¶ added in v1.9.28
func (*Client) EnableConnectedTransit ¶
func (c *Client) EnableConnectedTransit(gateway *TransitVpc) error
func (*Client) EnableDeadPeerDetection ¶ added in v1.9.28
func (c *Client) EnableDeadPeerDetection(site2cloud *Site2Cloud) error
func (*Client) EnableExceptionRule ¶ added in v1.6.29
func (*Client) EnableGatewayFireNetInterfaces ¶ added in v1.9.28
func (c *Client) EnableGatewayFireNetInterfaces(gateway *TransitVpc) error
func (*Client) EnableHaSpokeVpc ¶
func (*Client) EnableHaTransitVpc ¶
func (c *Client) EnableHaTransitVpc(gateway *TransitVpc) error
func (*Client) EnableHttpAccess ¶ added in v1.6.29
func (*Client) EnableNatGateway ¶
func (*Client) EnablePeeringHaGateway ¶
func (*Client) EnableSNat ¶
func (*Client) EnableSecurityGroupManagement ¶ added in v1.6.29
func (*Client) EnableSingleAZGateway ¶
func (*Client) GetARMPeer ¶ added in v1.8.26
func (*Client) GetAccountUser ¶
func (c *Client) GetAccountUser(user *AccountUser) (*AccountUser, error)
func (*Client) GetAwsTgwDomainAttachedVpc ¶
func (c *Client) GetAwsTgwDomainAttachedVpc(awsTgwVpcAttachment *AwsTgwVpcAttachment) (*AwsTgwVpcAttachment, error)
func (*Client) GetAwsTgwVpcAttachment ¶
func (c *Client) GetAwsTgwVpcAttachment(awsTgwVpcAttachment *AwsTgwVpcAttachment) (*AwsTgwVpcAttachment, error)
func (*Client) GetAwsTgwVpnConn ¶ added in v1.11.16
func (c *Client) GetAwsTgwVpnConn(awsTgwVpnConn *AwsTgwVpnConn) (*AwsTgwVpnConn, error)
func (*Client) GetCurrentVersion ¶
func (c *Client) GetCurrentVersion() (string, *AviatrixVersion, error)
func (*Client) GetExceptionRuleStatus ¶ added in v1.6.29
func (*Client) GetFirewallTag ¶
func (c *Client) GetFirewallTag(firewall_tag *FirewallTag) (*FirewallTag, error)
func (*Client) GetGatewayDetail ¶ added in v1.9.28
func (c *Client) GetGatewayDetail(gateway *Gateway) (*GatewayDetail, error)
func (*Client) GetGwFilterTagList ¶ added in v1.6.29
func (*Client) GetHttpAccessEnabled ¶ added in v1.6.29
func (*Client) GetLatestVersion ¶ added in v1.6.29
func (*Client) GetProfileBasePolicy ¶
func (*Client) GetSecurityDomain ¶
func (c *Client) GetSecurityDomain(securityDomain *SecurityDomain) (string, error)
func (*Client) GetSecurityGroupManagementStatus ¶ added in v1.6.29
func (c *Client) GetSecurityGroupManagementStatus() (*SecurityGroupInfo, error)
func (*Client) GetSite2Cloud ¶
func (c *Client) GetSite2Cloud(site2cloud *Site2Cloud) (*Site2Cloud, error)
func (*Client) GetSite2CloudConnDetail ¶ added in v1.7.18
func (c *Client) GetSite2CloudConnDetail(site2cloud *Site2Cloud) (*Site2Cloud, error)
func (*Client) GetSplitTunnel ¶
func (c *Client) GetSplitTunnel(splitTunnel *SplitTunnel) (*SplitTunnelUnit, error)
func (*Client) GetTransPeer ¶
func (*Client) GetTransitGatewayPeering ¶
func (c *Client) GetTransitGatewayPeering(transitGatewayPeering *TransitGatewayPeering) error
func (*Client) GetTransitGwFromVpcID ¶
func (*Client) GetVGWConnDetail ¶ added in v1.7.18
func (*Client) GetVpnUserAccelerator ¶ added in v1.11.16
func (*Client) IsVpcAttachedToTgw ¶
func (*Client) LaunchSpokeVpc ¶
func (*Client) LaunchTransitVpc ¶
func (c *Client) LaunchTransitVpc(gateway *TransitVpc) error
func (*Client) ListFQDNTags ¶
func (*Client) Login ¶
Login to the Aviatrix controller with the username/password provided in the client structure. Arguments:
None
Returns:
error - if any
func (*Client) ModifySplitTunnel ¶
func (c *Client) ModifySplitTunnel(splitTunnel *SplitTunnel) error
func (*Client) Pre32Upgrade ¶
func (*Client) Request ¶
Request makes an HTTP request with the given interface being encoded as form data.
func (*Client) SetBasePolicy ¶
func (*Client) SetBgpManualSpokeAdvertisedNetworks ¶ added in v1.9.28
func (*Client) SetVpnGatewayAuthentication ¶
func (c *Client) SetVpnGatewayAuthentication(gateway *VpnGatewayAuth) error
func (*Client) Site2CloudAlgorithmCheck ¶ added in v1.9.28
func (c *Client) Site2CloudAlgorithmCheck(site2cloud *Site2Cloud) error
func (*Client) SpokeJoinTransit ¶
func (*Client) SpokeLeaveTransit ¶
func (*Client) UpdateARMPeer ¶ added in v1.8.26
func (*Client) UpdateAWSPeer ¶
func (*Client) UpdateAWSTgw ¶
func (*Client) UpdateAccount ¶
func (*Client) UpdateAccountUserObject ¶
func (c *Client) UpdateAccountUserObject(user *AccountUserEdit) error
func (*Client) UpdateAwsTgwVpcAttachment ¶
func (c *Client) UpdateAwsTgwVpcAttachment(awsTgwVpcAttachment *AwsTgwVpcAttachment) error
func (*Client) UpdateDomains ¶
func (*Client) UpdateFQDNMode ¶
Change default mode to 'white' or 'black'
func (*Client) UpdateFQDNStatus ¶
change state to 'enabled' or 'disabled'
func (*Client) UpdateFirewallTag ¶
func (c *Client) UpdateFirewallTag(firewall_tag *FirewallTag) error
func (*Client) UpdateGateway ¶
func (*Client) UpdateMaxVpnConn ¶ added in v1.14.15
func (*Client) UpdatePolicy ¶
func (*Client) UpdateProfilePolicy ¶
func (*Client) UpdateSecurityDomain ¶
func (c *Client) UpdateSecurityDomain(securityDomain *SecurityDomain) error
func (*Client) UpdateSite2Cloud ¶
func (c *Client) UpdateSite2Cloud(site2cloud *EditSite2Cloud) error
func (*Client) UpdateSourceIPFilters ¶ added in v1.6.29
func (*Client) UpdateTransPeer ¶
func (*Client) UpdateTransitGatewayPeering ¶
func (c *Client) UpdateTransitGatewayPeering(transitGatewayPeering *TransitGatewayPeering) error
func (*Client) UpdateTunnel ¶
func (*Client) UpdateVGWConn ¶
func (*Client) UpdateVpnCidr ¶
func (*Client) UpdateVpnUserAccelerator ¶ added in v1.11.16
func (c *Client) UpdateVpnUserAccelerator(xlr *VpnUserXlr) error
func (*Client) UploadGcloudProjectCredentialsFile ¶
func (*Client) ValidateAWSTgwDomains ¶
func (*Client) ValidatePolicy ¶
func (*Client) ValidateProfileRule ¶
func (c *Client) ValidateProfileRule(profileRule *ProfileRule) error
type ConnectionDetail ¶ added in v1.7.18
type ConnectionDetail struct { ConnName []string `json:"name"` GwName []string `json:"gw_name"` VPCId []string `json:"vpc_id"` BgpVGWId []string `json:"bgp_vgw_id"` BgpLocalAsNum []string `json:"bgp_local_asn_number"` AdvertiseTransitCidr string `json:"advertise_transit_cidr"` BgpManualSpokeAdvertiseCidrs [][]string `json:"bgp_manual_spoke_advertise_cidrs"` }
type ControllerHttpAccessResp ¶ added in v1.6.29
type ControllerHttpAccessResp struct { Return bool `json:"return"` Result string `json:"results"` Reason string `json:"reason"` }
Controller Http Access enabled get result struct
type DomainListResp ¶
type EditSite2Cloud ¶
type EditSite2Cloud struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` VpcID string `form:"vpc_id,omitempty"` ConnName string `form:"conn_name"` GwName string `form:"primary_cloud_gateway_name,omitempty"` NetworkType string `form:"network_type,omitempty"` CloudSubnetCidr string `form:"cloud_subnet_cidr,omitempty"` }
type EditSite2CloudConnDetail ¶ added in v1.7.18
type EditSite2CloudConnDetail struct { VpcID []string `json:"vpc_id,omitempty"` TunnelName []string `json:"name,omitempty"` ConnType string `json:"type,omitempty"` TunnelType []string `json:"tunnel_type,omitempty"` GwName []string `json:"gw_name,omitempty"` BackupGwName []string `json:"backup_gateway_name,omitempty"` RemoteGwIP []string `json:"remote_gateway_ip,omitempty"` RemoteGwIP2 []string `json:"backup_remote_gateway_ip,omitempty"` Tunnels []TunnelInfo `json:"tunnels,omitempty"` RemoteSubnet string `json:"real_remote_cidr,omitempty"` LocalSubnet string `json:"real_local_cidr,omitempty"` RemoteCidr string `json:"remote_cidr,omitempty"` LocalCidr string `json:"local_cidr,omitempty"` HAEnabled string `json:"ha_status,omitempty"` PeerType string `json:"peer_type,omitempty"` RemoteSubnetVirtual string `json:"virt_remote_cidr,omitempty"` LocalSubnetVirtual string `json:"virt_local_cidr,omitempty"` Algorithm AlgorithmInfo `json:"algorithm,omitempty"` RouteTableList []string `json:"rtbls,omitempty"` SslServerPool []string `json:"ssl_server_pool,omitempty"` DeadPeerDetectionConfig string `json:"dpd_config,omitempty"` }
type FQDN ¶
type FQDN struct { FQDNTag string `form:"tag_name,omitempty" json:"tag_name,omitempty"` Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` FQDNStatus string `form:"status,omitempty" json:"status,omitempty"` FQDNMode string `form:"color,omitempty" json:"color,omitempty"` GwFilterTagList []GwFilterTag `form:"gw_name,omitempty" json:"gw_name,omitempty"` DomainList []*Filters `form:"domain_names[],omitempty" json:"domain_names,omitempty"` }
Gateway simple struct to hold fqdn details
type Firewall ¶
type Firewall struct { CID string `form:"CID,omitempty"` Action string `form:"action,omitempty"` GwName string `form:"vpc_name,omitempty" json:"vpc_name,omitempty"` BaseAllowDeny string `form:"base_policy,omitempty" json:"base_policy,omitempty"` BaseLogEnable string `form:"base_policy_log_enable,omitempty" json:"base_policy_log_enable,omitempty"` PolicyList []*Policy `form:"new_policy[],omitempty" json:"security_rules,omitempty"` }
Gateway simple struct to hold firewall details
type FirewallResp ¶
type FirewallTag ¶
type FirewallTag struct { CID string `form:"CID,omitempty"` Action string `form:"action,omitempty"` Name string `form:"tag_name,omitempty" json:"tag_name,omitempty"` CIDRList []CIDRMember `form:"new_policies,omitempty" json:"members,omitempty"` }
Gateway simple struct to hold firewall_tag details
type FirewallTagResp ¶
type FirewallTagResp struct { Return bool `json:"return"` Results FirewallTag `json:"results"` Reason string `json:"reason"` }
type Gateway ¶
type Gateway struct { AccountName string `form:"account_name,omitempty" json:"account_name,omitempty"` Action string `form:"action,omitempty"` AdditionalCidrs string `form:"additional_cidrs,omitempty"` AuthMethod string `form:"auth_method,omitempty" json:"auth_method,omitempty"` AllocateNewEip string `form:"allocate_new_eip,omitempty"` AllocateNewEipRead bool `json:"newly_allocated_eip,omitempty"` BkupGatewayZone string `form:"bkup_gateway_zone,omitempty" json:"bkup_gateway_zone,omitempty"` BkupPrivateIP string `form:"bkup_private_ip,omitempty" json:"bkup_private_ip,omitempty"` CID string `form:"CID,omitempty"` CIDR string `form:"cidr,omitempty"` ClientCertAuth string `form:"client_cert_auth,omitempty" json:"client_cert_auth,omitempty"` ClientCertSharing string `form:"client_cert_sharing,omitempty" json:"client_cert_sharing,omitempty"` CloudType int `form:"cloud_type,omitempty" json:"cloud_type,omitempty"` CloudnBkupGatewayInstID string `form:"cloudn_bkup_gateway_inst_id,omitempty" json:"cloudn_bkup_gateway_inst_id,omitempty"` CloudnGatewayInstID string `form:"cloudn_gateway_inst_id,omitempty" json:"cloudn_gateway_inst_id,omitempty"` ConnectedTransit string `json:"connected_transit,omitempty"` DirectInternet string `form:"direct_internet,omitempty" json:"direct_internet,omitempty"` DockerConsulIP string `form:"docker_consul_ip,omitempty" json:"docker_consul_ip,omitempty"` DockerNtwkCidr string `form:"docker_ntwk_cidr,omitempty" json:"docker_ntwk_cidr,omitempty"` DockerNtwkName string `form:"docker_ntwk_name,omitempty" json:"docker_ntwk_name,omitempty"` DuoAPIHostname string `form:"duo_api_hostname,omitempty" json:"duo_api_hostname,omitempty"` DuoIntegrationKey string `form:"duo_integration_key,omitempty" json:"duo_integration_key,omitempty"` DuoPushMode string `form:"duo_push_mode,omitempty" json:"duo_push_mode,omitempty"` DuoSecretKey string `form:"duo_secret_key,omitempty" json:"duo_secret_key,omitempty"` Eip string `form:"eip,omitempty" json:"eip,omitempty"` ElbDNSName string `form:"elb_dns_name,omitempty" json:"elb_dns_name,omitempty"` ElbName string `form:"elb_name,omitempty" json:"lb_name,omitempty"` ElbState string `form:"elb_state,omitempty" json:"elb_state,omitempty"` EnableClientCertSharing string `form:"enable_client_cert_sharing,omitempty"` EnableElb string `form:"enable_elb,omitempty"` EnableLdap string `form:"enable_ldap,omitempty"` EnableLdapRead bool `json:"enable_ldap,omitempty"` DnsServer string `form:"dns_server,omitempty"` PublicDnsServer string `form:"public_dns_server,omitempty" json:"public_dns_server,omitempty"` EnableNat string `form:"enable_nat,omitempty" json:"enable_nat,omitempty"` SingleAZ string `form:"single_az_ha,omitempty" json:"single_az_ha,omitempty"` EnableHybridConnection bool `json:"tgw_enabled,omitempty"` EnablePbr string `form:"enable_pbr,omitempty"` Expiration string `form:"expiration,omitempty" json:"expiration,omitempty"` GatewayZone string `form:"gateway_zone,omitempty" json:"gateway_zone,omitempty"` GwName string `form:"gw_name,omitempty" json:"vpc_name,omitempty"` GwSecurityGroupID string `form:"gw_security_group_id,omitempty" json:"gw_security_group_id,omitempty"` GwSize string `form:"gw_size,omitempty" json:"vpc_size,omitempty"` GwSubnetID string `form:"gw_subnet_id,omitempty" json:"gw_subnet_id,omitempty"` PeeringHASubnet string `form:"public_subnet,omitempty"` NewZone string `form:"new_zone,omitempty"` InsaneMode string `form:"insane_mode,omitempty" json:"high_perf,omitempty"` InstState string `form:"inst_state,omitempty" json:"inst_state,omitempty"` IntraVMRoute string `form:"intra_vm_route,omitempty" json:"intra_vm_route,omitempty"` IsHagw string `form:"is_hagw,omitempty" json:"is_hagw,omitempty"` LdapAdditionalReq string `form:"ldap_additional_req,omitempty"` LdapBaseDn string `form:"ldap_base_dn,omitempty" json:"ldap_base_dn,omitempty"` LdapBindDn string `form:"ldap_bind_dn,omitempty" json:"ldap_bind_dn,omitempty"` LdapCaCert string `form:"ldap_ca_cert,omitempty" json:"ldap_ca_cert,omitempty"` LdapClientCert string `form:"ldap_client_cert,omitempty" json:"ldap_client_cert,omitempty"` LdapPassword string `form:"ldap_password,omitempty" json:"ldap_password,omitempty"` LdapServer string `form:"ldap_server,omitempty" json:"ldap_server,omitempty"` LdapUseSsl string `form:"ldap_use_ssl,omitempty" json:"ldap_use_ssl,omitempty"` LdapUserAttr string `form:"ldap_username_attribute,omitempty" json:"ldap_username_attribute,omitempty"` LicenseID string `form:"license_id,omitempty" json:"license_id,omitempty"` MaxConn string `form:"max_conn,omitempty" json:"max_connections,omitempty"` NameServers string `form:"nameservers,omitempty"` OktaToken string `form:"okta_token,omitempty" json:"okta_token,omitempty"` OktaURL string `form:"okta_url,omitempty" json:"okta_url,omitempty"` OktaUsernameSuffix string `form:"okta_username_suffix,omitempty" json:"okta_username_suffix,omitempty"` OtpMode string `form:"otp_mode,omitempty" json:"otp_mode,omitempty"` PbrDefaultGateway string `form:"pbr_default_gateway,omitempty"` PbrEnabled string `form:"pbr_enabled,omitempty" json:"pbr_enabled,omitempty"` PbrLogging string `form:"pbr_logging,omitempty"` PbrSubnet string `form:"pbr_subnet,omitempty"` PrivateIP string `form:"private_ip,omitempty" json:"private_ip,omitempty"` PublicIP string `form:"public_ip,omitempty" json:"public_ip,omitempty"` SamlEnabled string `form:"saml_enabled,omitempty" json:"saml_enabled,omitempty"` SandboxIP string `form:"sandbox_ip,omitempty" json:"sandbox_ip,omitempty"` SaveTemplate string `form:"save_template,omitempty"` SearchDomains string `form:"search_domains,omitempty"` SplitTunnel string `form:"split_tunnel,omitempty" json:"split_tunnel,omitempty"` SpokeVpc string `json:"spoke_vpc,omitempty"` TagList string `form:"tags,omitempty"` TransitGwName string `form:"transit_gw_name,omitempty" json:"transit_gw_name,omitempty"` TunnelName string `form:"tunnel_name,omitempty" json:"tunnel_name,omitempty"` TunnelType string `form:"tunnel_type,omitempty" json:"tunnel_type,omitempty"` VendorName string `form:"vendor_name,omitempty" json:"vendor_name,omitempty"` VpcID string `form:"vpc_id,omitempty" json:"vpc_id,omitempty"` VpcNet string `form:"vpc_net,omitempty" json:"public_subnet,omitempty"` VpcRegion string `form:"vpc_reg,omitempty" json:"vpc_region,omitempty"` VpcSplunkIPPort string `form:"vpc_splunk_ip_port,omitempty" json:"vpc_splunk_ip_port,omitempty"` VpcState string `form:"vpc_state,omitempty" json:"vpc_state,omitempty"` VpcType string `form:"vpc_type,omitempty" json:"vpc_type,omitempty"` VpnCidr string `form:"cidr,omitempty" json:"vpn_cidr,omitempty"` VpnStatus string `form:"vpn_access,omitempty" json:"vpn_status,omitempty"` Zone string `form:"zone,omitempty" json:"zone,omitempty"` VpcSize string `form:"vpc_size,omitempty" ` //Only use for gateway create DMZEnabled string `json:"dmz_enabled,omitempty"` }
Gateway simple struct to hold gateway details
type GatewayDetail ¶ added in v1.9.28
type GatewayDetailApiResp ¶ added in v1.9.28
type GatewayDetailApiResp struct { Return bool `json:"return"` Results GatewayDetail `json:"results"` Reason string `json:"reason"` }
type GatewayListResp ¶
type GetAwsTgwVpnConnVpnIdResp ¶ added in v1.11.16
type GetFqdnExceptionRuleResp ¶ added in v1.6.29
type GetSecurityGroupManagementResp ¶ added in v1.6.29
type GetSecurityGroupManagementResp struct { Return bool `json:"return"` Results SecurityGroupInfo `json:"results"` Reason string `json:"reason"` }
type GwFilterTag ¶ added in v1.6.29
type GwSourceIP ¶ added in v1.6.29
type LoginResp ¶
type LoginResp struct { Return bool `json:"return"` Results string `json:"results"` Reason string `json:"reason"` CID string `json:"CID"` }
LoginResp represents the response object from the `login` action
type Policy ¶
type Policy struct { SrcIP string `form:"s_ip,omitempty" json:"s_ip,omitempty"` DstIP string `form:"d_ip,omitempty" json:"d_ip,omitempty"` Protocol string `form:"protocol,omitempty" json:"protocol,omitempty"` Port string `form:"port,omitempty" json:"port,omitempty"` AllowDeny string `form:"deny_allow,omitempty" json:"deny_allow,omitempty"` LogEnable string `form:"log_enable,omitempty" json:"log_enable,omitempty"` }
type Profile ¶
type Profile struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` Name string `form:"tag_name,omitempty" json:"tag_name,omitempty"` BaseRule string `form:"base_rule,omitempty" json:"status,omitempty"` Policy []ProfileRule `form:"domain_names[],omitempty" json:"domain_names,omitempty"` UserList []string `form:"user_names,omitempty" json:"user_names,omitempty"` }
Gateway simple struct to hold profile details
type ProfileBasePolicyResp ¶
type ProfilePolicyListResp ¶
type ProfilePolicyListResp struct { Return bool `json:"return"` Results []ProfileRule `json:"results"` Reason string `json:"reason"` }
type ProfilePolicyListRule ¶
type ProfileRule ¶
type ProfileUserListResp ¶
type ResultListResp ¶
type ResultListSourceIPResp ¶ added in v1.6.29
type ResultListSourceIPResp struct { Return bool `json:"return"` Results GwSourceIP `json:"results"` Reason string `json:"reason"` }
type RouteDomainAPIResp ¶
type RouteDomainAPIResp struct { Return bool `json:"return"` Results []RouteDomainDetail `json:"results"` Reason string `json:"reason"` }
type RouteDomainDetail ¶
type RouteDomainDetail struct { Associations []string `json:"associations"` Name string `json:"name"` ConnectedRouteDomain []string `json:"connected_route_domain"` AttachedVPC []AttachedVPCDetail `json:"attached_vpc"` RoutesInRouteTable []RoutesInRouteTable `json:"routes_in_route_table"` RouteTableId string `json:"route_table_id"` }
type RoutesInRouteTable ¶
type SecurityDomain ¶
type SecurityDomain struct { Action string `form:"action, omitempty"` CID string `form:"CID, omitempty"` Name string `form:"route_domain_name, omitempty"` AccountName string `form:"account_name, omitempty"` Region string `form:"region, omitempty"` AwsTgwName string `form:"tgw_name, omitempty"` }
AwsTGW simple struct to hold aws_tgw details
type SecurityDomainAPIResp ¶
type SecurityDomainList ¶
type SecurityDomainRule ¶
type SecurityGroupInfo ¶ added in v1.6.29
type Site2Cloud ¶
type Site2Cloud struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` VpcID string `form:"vpc_id,omitempty" json:"vpc_id,omitempty"` TunnelName string `form:"connection_name" json:"name,omitempty"` RemoteGwType string `form:"remote_gateway_type,omitempty"` ConnType string `form:"connection_type,omitempty" json:"type,omitempty"` TunnelType string `form:"tunnel_type,omitempty" json:"tunnel_type,omitempty"` GwName string `form:"primary_cloud_gateway_name,omitempty" json:"gw_name,omitempty"` BackupGwName string `form:"backup_gateway_name,omitempty"` RemoteGwIP string `form:"remote_gateway_ip,omitempty" json:"peer_ip,omitempty"` RemoteGwIP2 string `form:"backup_remote_gateway_ip,omitempty"` RemoteSubnet string `form:"remote_subnet_cidr,omitempty" json:"remote_cidr,omitempty"` LocalSubnet string `form:"local_subnet_cidr,omitempty" json:"local_cidr,omitempty"` HAEnabled string `form:"ha_enabled,omitempty" json:"ha_status,omitempty"` PeerType string `form:"peer_type,omitempty"` SslServerPool string `form:"ssl_server_pool,omitempty"` NetworkType string `form:"network_type,omitempty"` CloudSubnetCidr string `form:"cloud_subnet_cidr,omitempty"` RemoteCidr string `form:"remote_cidr,omitempty"` RemoteSubnetVirtual string `form:"virtual_remote_subnet_cidr,omitempty" json:"virtual_remote_subnet_cidr,omitempty"` LocalSubnetVirtual string `form:"virtual_local_subnet_cidr,omitempty" json:"virtual_local_subnet_cidr,omitempty"` Phase1Auth string `form:"phase1_auth,omitempty"` Phase1DhGroups string `form:"phase1_dh_group,omitempty"` Phase1Encryption string `form:"phase1_encryption,omitempty"` Phase2Auth string `form:"phase2_auth,omitempty"` Phase2DhGroups string `form:"phase2_dh_group,omitempty"` Phase2Encryption string `form:"phase2_encryption,omitempty"` PrivateRouteEncryption string `form:"private_route_encryption,omitempty"` RemoteGwLatitude float64 `form:"remote_gateway_latitude,omitempty"` RemoteGwLongitude float64 `form:"remote_gateway_longitude,omitempty"` BackupRemoteGwLatitude float64 `form:"backup_remote_gateway_latitude,omitempty"` BackupRemoteGwLongitude float64 `form:"backup_remote_gateway_longitude,omitempty"` RouteTableList []string `form:"route_table_list,omitempty"` CustomAlgorithms bool DeadPeerDetection bool }
Site2Cloud simple struct to hold site2cloud details
type Site2CloudConnDetailList ¶ added in v1.7.18
type Site2CloudConnDetailList struct {
Connections EditSite2CloudConnDetail `json:"connections"`
}
type Site2CloudConnDetailResp ¶ added in v1.7.18
type Site2CloudConnDetailResp struct { Return bool `json:"return"` Results Site2CloudConnDetailList `json:"results"` Reason string `json:"reason"` }
type Site2CloudConnList ¶
type Site2CloudConnList struct {
Connections []Site2Cloud `json:"connections"`
}
type Site2CloudResp ¶
type Site2CloudResp struct { Return bool `json:"return"` Results Site2CloudConnList `json:"results"` Reason string `json:"reason"` }
type SplitTunnel ¶
type SplitTunnel struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` Command string `form:"command,omitempty"` VpcID string `form:"vpc_id,omitempty"` ElbName string `form:"lb_name,omitempty"` SplitTunnel string `form:"split_tunnel,omitempty"` AdditionalCidrs string `form:"additional_cidrs,omitempty"` NameServers string `form:"nameservers,omitempty"` SearchDomains string `form:"search_domains,omitempty"` SaveTemplate string `form:"save_template,omitempty"` }
type SplitTunnelResp ¶
type SplitTunnelResp struct { Return bool `json:"return"` Results SplitTunnelUnit `json:"results"` Reason string `json:"reason"` }
type SplitTunnelUnit ¶
type SpokeVpc ¶
type SpokeVpc struct { AccountName string `form:"account_name,omitempty" json:"account_name,omitempty"` Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` CloudType int `form:"cloud_type,omitempty" json:"cloud_type,omitempty"` DnsServer string `form:"dns_server,omitempty" json:"dns_server,omitempty"` GwName string `form:"gw_name,omitempty" json:"vpc_name,omitempty"` GwSize string `form:"gw_size,omitempty"` VpcID string `form:"vpc_id,omitempty" json:"vpc_id,omitempty"` VNetNameResourceGroup string `form:"vnet_and_resource_group_names,omitempty"` Subnet string `form:"public_subnet,omitempty" json:"public_subnet,omitempty"` VpcRegion string `form:"region,omitempty" json:"vpc_region,omitempty"` VpcSize string `form:"gw_size,omitempty" json:"vpc_size,omitempty"` EnableNAT string `form:"nat_enabled,omitempty" json:"enable_nat,omitempty"` HASubnet string `form:"ha_subnet,omitempty"` HAZone string `form:"new_zone,omitempty"` SingleAzHa string `form:"single_az_ha,omitempty"` TransitGateway string `form:"transit_gw,omitempty"` TagList string `form:"tags,omitempty"` }
Spoke gateway simple struct to hold spoke details
type SubnetInfo ¶ added in v1.7.18
type TGWInfoList ¶
type TGWInfoList struct { TgwInfo TgwInfoDetail `json:"tgw_info"` TgwID string `json:"_id"` Name string `json:"name"` }
type TGWInfoResp ¶
type TGWInfoResp struct { Return bool `json:"return"` Results TGWInfoList `json:"results"` Reason string `json:"reason"` }
type TagAPIResp ¶
type Tags ¶
type Tags struct { Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` CloudType int `form:"cloud_type,omitempty"` ResourceType string `form:"resource_type,omitempty"` ResourceName string `form:"resource_name,omitempty"` TagList string `form:"new_tag_list,omitempty"` }
Tags simple struct to hold tag details
type TgwInfoDetail ¶
type TransPeerListResp ¶
type TransitGatewayPeering ¶
type TransitGatewayPeeringAPIResp ¶
type TransitGatewayPeeringAPIResp struct { Return bool `json:"return"` Results [][]TransitGatewayPeering `json:"results"` Reason string `json:"reason"` }
type TransitGwFireNetInterfaces ¶ added in v1.9.28
type TransitGwFireNetInterfacesResp ¶ added in v1.9.28
type TransitGwFireNetInterfacesResp struct { Return bool `json:"return"` Results TransitGwFireNetInterfaces `json:"results"` Reason string `json:"reason"` }
type TransitVpc ¶
type TransitVpc struct { AccountName string `form:"account_name,omitempty" json:"account_name,omitempty"` Action string `form:"action,omitempty"` CID string `form:"CID,omitempty"` CloudType int `form:"cloud_type,omitempty" json:"cloud_type,omitempty"` DnsServer string `form:"dns_server,omitempty" json:"dns_server,omitempty"` GwName string `form:"gw_name,omitempty" json:"vpc_name,omitempty"` GwSize string `form:"gw_size,omitempty"` VpcID string `form:"vpc_id,omitempty" json:"vpc_id,omitempty"` VNetNameResourceGroup string `form:"vnet_and_resource_group_names,omitempty" json:"vpc_id,omitempty"` Subnet string `form:"public_subnet,omitempty" json:"vpc_net,omitempty"` HASubnet string `form:"ha_subnet,omitempty"` PeeringHASubnet string `json:"public_subnet,omitempty"` VpcRegion string `form:"region,omitempty" json:"vpc_region,omitempty"` VpcSize string `form:"gw_size,omitempty" json:"gw_size,omitempty"` EnableNAT string `form:"nat_enabled,omitempty" json:"enable_nat,omitempty"` TagList string `form:"tags,omitempty"` EnableHybridConnection bool `form:"enable_hybrid_connection" json:"tgw_enabled,omitempty"` ConnectedTransit string `form:"connected_transit" json:"connected_transit,omitempty"` InsaneMode string `form:"insane_mode,omitempty"` }
Gateway simple struct to hold gateway details
type TunnelInfo ¶ added in v1.7.18
type TunnelListResp ¶
type TunnelListResp struct { Return bool `json:"return"` Results TunnelResult `json:"results"` Reason string `json:"reason"` }
type TunnelResult ¶
type TunnelResult struct {
PairList []Tunnel `json:"pair_list"`
}
type UpgradeResp ¶
type VGWConn ¶
type VGWConn struct { Action string `form:"action,omitempty"` BgpLocalAsNum string `form:"bgp_local_asn_num,omitempty" json:"bgp_local_asn_num,omitempty"` BgpVGWId string `form:"vgw_id,omitempty" json:"bgp_vgw_id,omitempty"` CID string `form:"CID,omitempty"` ConnName string `form:"connection_name,omitempty" json:"name,omitempty"` GwName string `form:"gw_name,omitempty" json:"gw_name,omitempty"` VPCId string `form:"vpc_id,omitempty" json:"vpc_id,omitempty"` EnableAdvertiseTransitCidr bool BgpManualSpokeAdvertiseCidrs string `form:"cidr,omitempty"` }
VGWConn simple struct to hold VGW Connection details
type VGWConnBgpManualSpokeAdvertisedNetworksResp ¶ added in v1.9.28
type VGWConnDetail ¶ added in v1.7.18
type VGWConnDetail struct {
Connections ConnectionDetail `json:"connections"`
}
type VGWConnDetailResp ¶ added in v1.7.18
type VGWConnDetailResp struct { Return bool `json:"return"` Results VGWConnDetail `json:"results"` Reason string `json:"reason"` }
type VGWConnEnableAdvertiseTransitCidrResp ¶ added in v1.9.28
type VGWConnList ¶
type VGWConnListResp ¶
type VPNUser ¶
type VPNUser struct { Action string `form:"action,omitempty" json:"action,omitempty"` CID string `form:"CID,omitempty" json:"CID,omitempty"` SamlEndpoint string `form:"saml_endpoint,omitempty" json:"saml_endpoint,omitempty"` VpcID string `form:"vpc_id,omitempty" json:"vpc_id,omitempty"` GwName string `form:"lb_name,omitempty" json:"lb_name,omitempty"` UserName string `form:"username" json:"_id,omitempty"` UserEmail string `form:"user_email,omitempty" json:"email,omitempty"` }
VPNUser simple struct to hold vpn_user details
type VPNUserInfo ¶ added in v1.7.18
type VPNUserInfo struct {
VpnUser VPNUser `json:"vpn_user"`
}
type VPNUserListResp ¶
type VPNUserResp ¶ added in v1.7.18
type VPNUserResp struct { Return bool `json:"return"` Results VPNUserInfo `json:"results"` Reason string `json:"reason"` }
type VersionInfo ¶
type VersionInfoResp ¶
type VersionInfoResp struct { Return bool `json:"return"` Results VersionInfo `json:"results"` Reason string `json:"reason"` }
type Vpc ¶ added in v1.7.18
type Vpc struct { CloudType int `form:"cloud_type,omitempty" json:"cloud_type,omitempty"` AccountName string `form:"account_name,omitempty" json:"account_name,omitempty"` Region string `form:"region,omitempty" json:"vpc_region,omitempty"` Name string `form:"pool_name,omitempty" json:"pool_name,omitempty"` Cidr string `form:"vpc_cidr,omitempty" json:"vpc_cidr,omitempty"` AviatrixTransitVpc string `form:"aviatrix_transit_vpc,omitempty"` AviatrixFireNetVpc string `form:"aviatrix_firenet_vpc,omitempty"` VpcID string `json:"vpc_list,omitempty"` Subnets []SubnetInfo `json:"subnets,omitempty"` }
type VpcEdit ¶ added in v1.7.18
type VpcEdit struct { CloudType int `form:"cloud_type,omitempty" json:"cloud_type,omitempty"` AccountName string `form:"account_name,omitempty" json:"account_name,omitempty"` Region string `form:"region,omitempty" json:"vpc_region,omitempty"` Name string `form:"pool_name,omitempty" json:"pool_name,omitempty"` Cidr string `form:"vpc_cidr,omitempty" json:"vpc_cidr,omitempty"` AviatrixTransitVpc bool `json:"avx_transit_vpc,omitempty"` AviatrixFireNetVpc bool `json:"avx_firenet_vpc,omitempty"` VpcID []string `json:"vpc_list,omitempty"` Subnets []SubnetInfo `json:"subnets,omitempty"` }
type VpcResp ¶ added in v1.7.18
type VpcResp struct { Return bool `json:"return"` Results AllVpcPoolVpcListResp `json:"results"` Reason string `json:"reason"` }
type VpnGatewayAuth ¶
type VpnGatewayAuth struct { Action string `form:"action,omitempty"` AuthType string `form:"auth_type,omitempty" json:"auth_type,omitempty"` CID string `form:"CID,omitempty"` DuoAPIHostname string `form:"duo_api_hostname,omitempty" json:"duo_api_hostname,omitempty"` DuoIntegrationKey string `form:"duo_integration_key,omitempty" json:"duo_integration_key,omitempty"` DuoPushMode string `form:"duo_push_mode,omitempty" json:"duo_push_mode,omitempty"` DuoSecretKey string `form:"duo_secret_key,omitempty" json:"duo_secret_key,omitempty"` EnableLdap string `form:"enable_ldap,omitempty"` LbOrGatewayName string `form:"lb_or_gateway_name,omitempty" json:"lb_or_gateway_name,omitempty"` LdapAdditionalReq string `form:"ldap_additional_req,omitempty"` LdapBaseDn string `form:"ldap_base_dn,omitempty" json:"ldap_base_dn,omitempty"` LdapBindDn string `form:"ldap_bind_dn,omitempty" json:"ldap_bind_dn,omitempty"` LdapCaCert string `form:"ldap_ca_cert,omitempty" json:"ldap_ca_cert,omitempty"` LdapClientCert string `form:"ldap_client_cert,omitempty" json:"ldap_client_cert,omitempty"` LdapPassword string `form:"ldap_password,omitempty" json:"ldap_password,omitempty"` LdapServer string `form:"ldap_server,omitempty" json:"ldap_server,omitempty"` LdapUseSsl string `form:"ldap_use_ssl,omitempty" json:"ldap_use_ssl,omitempty"` LdapUserAttr string `form:"ldap_username_attribute,omitempty" json:"ldap_username_attribute,omitempty"` OktaToken string `form:"okta_token,omitempty" json:"okta_token,omitempty"` OktaURL string `form:"okta_url,omitempty" json:"okta_url,omitempty"` OktaUsernameSuffix string `form:"okta_username_suffix,omitempty" json:"okta_username_suffix,omitempty"` OtpMode string `form:"otp_mode,omitempty" json:"otp_mode,omitempty"` SamlEnabled string `form:"saml_enabled,omitempty" json:"saml_enabled,omitempty"` VpcID string `form:"vpc_id,omitempty" json:"vpc_id,omitempty"` }
type VpnUserXlr ¶ added in v1.11.16
Source Files ¶
- account.go
- account_user.go
- arm_peering.go
- aws_peering.go
- aws_tgw.go
- aws_tgw_vpc_attachment.go
- aws_tgw_vpn_conn.go
- check.go
- client.go
- controller.go
- firewall.go
- firewall_tag.go
- fqdn.go
- gateway.go
- profile.go
- security_domain.go
- site2cloud.go
- split_tunnel.go
- spoke_vpc.go
- tags.go
- transit_gateway_peering.go
- transit_vpc.go
- transitive_peering.go
- tunnel.go
- utils.go
- version.go
- vgw_connection.go
- vpc.go
- vpn_user.go
- vpn_user_accelerator.go