Documentation
¶
Index ¶
- Constants
- Variables
- func ErrInvalidPortRange(portRange string, err error) error
- func Provider(version string) *schema.Provider
- type APIError
- type Client
- type Connector
- type Connectors
- type Edges
- type Group
- type GroupsFilter
- type HTTPError
- type IDName
- type MutationError
- type OkError
- type PortNotInRangeError
- type PortRangeInput
- type PortRangeNotRisingSequenceError
- type ProtocolInput
- type ProtocolsInput
- type Resource
- type StringProtocolsInput
- type User
Constants ¶
View Source
const ( DefaultHTTPTimeout = "10" DefaultHTTPMaxRetry = "10" )
Variables ¶
View Source
var ( ErrTooManyGroupsError = fmt.Errorf("provider does not support more than %d groups per resource", readResourceQueryGroupsSize) ErrGraphqlIDIsEmpty = errors.New("id is empty") ErrGraphqlNameIsEmpty = errors.New("name is empty") ErrGraphqlResourceNotFound = errors.New("not found") ErrGraphqlResultIsEmpty = errors.New("query result is empty") ErrGraphqlConnectorIDIsEmpty = errors.New("connector id is empty") ErrGraphqlNetworkIDIsEmpty = errors.New("network id is empty") ErrGraphqlNetworkNameIsEmpty = errors.New("network name is empty") ErrGraphqlGroupNameIsEmpty = errors.New("group name is empty") )
View Source
var ErrNotAllowChangeRemoteNetworkID = errors.New("connectors cannot be moved between Remote Networks: you must either create a new Connector or destroy and recreate the existing one")
Functions ¶
func ErrInvalidPortRange ¶
Types ¶
type APIError ¶
type APIError struct { WrappedError error Operation string Resource string ID graphql.ID Name string }
func NewAPIError ¶
func NewAPIErrorWithID ¶
func NewAPIErrorWithName ¶ added in v0.1.9
type Client ¶
type Connector ¶
type Connector struct { ID graphql.ID RemoteNetwork *remoteNetwork Name graphql.String ConnectorTokens *connectorTokens }
type Connectors ¶
type Group ¶
type Group struct { ID graphql.ID Name graphql.String Type graphql.String IsActive graphql.Boolean }
type GroupsFilter ¶ added in v0.1.9
func (*GroupsFilter) HasName ¶ added in v0.1.9
func (f *GroupsFilter) HasName() bool
func (*GroupsFilter) Match ¶ added in v0.1.9
func (f *GroupsFilter) Match(group *Group) bool
type IDName ¶
type IDName struct { ID graphql.ID `json:"id"` Name graphql.String `json:"name"` }
func (*IDName) StringName ¶
type MutationError ¶
type MutationError struct {
Message graphql.String
}
func NewMutationError ¶
func NewMutationError(message graphql.String) *MutationError
func (*MutationError) Error ¶
func (e *MutationError) Error() string
type OkError ¶
type OkError struct { Ok graphql.Boolean `json:"ok"` Error graphql.String `json:"error"` }
type PortNotInRangeError ¶
type PortNotInRangeError struct {
Port int64
}
func NewPortNotInRangeError ¶
func NewPortNotInRangeError(port int64) *PortNotInRangeError
func (*PortNotInRangeError) Error ¶
func (e *PortNotInRangeError) Error() string
type PortRangeInput ¶
type PortRangeInput struct { Start graphql.Int `json:"start"` End graphql.Int `json:"end"` }
type PortRangeNotRisingSequenceError ¶
func NewPortRangeNotRisingSequenceError ¶
func NewPortRangeNotRisingSequenceError(start int64, end int64) *PortRangeNotRisingSequenceError
func (*PortRangeNotRisingSequenceError) Error ¶
func (e *PortRangeNotRisingSequenceError) Error() string
type ProtocolInput ¶
type ProtocolInput struct { Ports []*PortRangeInput `json:"ports"` Policy graphql.String `json:"policy"` }
type ProtocolsInput ¶
type ProtocolsInput struct { UDP *ProtocolInput `json:"udp"` TCP *ProtocolInput `json:"tcp"` AllowIcmp graphql.Boolean `json:"allowIcmp"` }
type Resource ¶
type Resource struct { ID graphql.ID RemoteNetworkID graphql.ID Address graphql.String Name graphql.String GroupsIds []*graphql.ID Protocols *ProtocolsInput IsActive graphql.Boolean }
type StringProtocolsInput ¶
Source Files
¶
- client.go
- client_connector.go
- client_connector_tokens.go
- client_errors.go
- client_group.go
- client_remote_network.go
- client_resource.go
- client_user.go
- datasource_connector.go
- datasource_connectors.go
- datasource_group.go
- datasource_groups.go
- datasource_remote_network.go
- datasource_resource.go
- datasource_resources.go
- datasource_user.go
- datasource_users.go
- gql_response.go
- provider.go
- resource_connector.go
- resource_connector_tokens.go
- resource_group.go
- resource_remote_network.go
- resource_resource.go
Click to show internal directories.
Click to hide internal directories.