Documentation ¶
Index ¶
- type APIStatus
- func (m *APIStatus) Details() []APIStatusDetail
- func (m *APIStatus) MarshalBinary() ([]byte, error)
- func (m APIStatus) MarshalJSON() ([]byte, error)
- func (m *APIStatus) SetDetails(val []APIStatusDetail)
- func (m *APIStatus) UnmarshalBinary(b []byte) error
- func (m *APIStatus) UnmarshalJSON(raw []byte) error
- func (m *APIStatus) Validate(formats strfmt.Registry) error
- type APIStatusDetail
- type NetworkMetadata
- type NetworkPolicySpecPolicyType
- type NetworkStringMapEntry
- type PaginationPageInfo
- type PaginationPageRequest
- type StackpathRPCBadRequest
- func (m *StackpathRPCBadRequest) AtType() string
- func (m *StackpathRPCBadRequest) MarshalBinary() ([]byte, error)
- func (m StackpathRPCBadRequest) MarshalJSON() ([]byte, error)
- func (m *StackpathRPCBadRequest) SetAtType(val string)
- func (m *StackpathRPCBadRequest) UnmarshalBinary(b []byte) error
- func (m *StackpathRPCBadRequest) UnmarshalJSON(raw []byte) error
- func (m *StackpathRPCBadRequest) Validate(formats strfmt.Registry) error
- type StackpathRPCBadRequestFieldViolation
- type StackpathRPCHelp
- func (m *StackpathRPCHelp) AtType() string
- func (m *StackpathRPCHelp) MarshalBinary() ([]byte, error)
- func (m StackpathRPCHelp) MarshalJSON() ([]byte, error)
- func (m *StackpathRPCHelp) SetAtType(val string)
- func (m *StackpathRPCHelp) UnmarshalBinary(b []byte) error
- func (m *StackpathRPCHelp) UnmarshalJSON(raw []byte) error
- func (m *StackpathRPCHelp) Validate(formats strfmt.Registry) error
- type StackpathRPCHelpLink
- type StackpathRPCLocalizedMessage
- func (m *StackpathRPCLocalizedMessage) AtType() string
- func (m *StackpathRPCLocalizedMessage) MarshalBinary() ([]byte, error)
- func (m StackpathRPCLocalizedMessage) MarshalJSON() ([]byte, error)
- func (m *StackpathRPCLocalizedMessage) SetAtType(val string)
- func (m *StackpathRPCLocalizedMessage) UnmarshalBinary(b []byte) error
- func (m *StackpathRPCLocalizedMessage) UnmarshalJSON(raw []byte) error
- func (m *StackpathRPCLocalizedMessage) Validate(formats strfmt.Registry) error
- type StackpathRPCPreconditionFailure
- func (m *StackpathRPCPreconditionFailure) AtType() string
- func (m *StackpathRPCPreconditionFailure) MarshalBinary() ([]byte, error)
- func (m StackpathRPCPreconditionFailure) MarshalJSON() ([]byte, error)
- func (m *StackpathRPCPreconditionFailure) SetAtType(val string)
- func (m *StackpathRPCPreconditionFailure) UnmarshalBinary(b []byte) error
- func (m *StackpathRPCPreconditionFailure) UnmarshalJSON(raw []byte) error
- func (m *StackpathRPCPreconditionFailure) Validate(formats strfmt.Registry) error
- type StackpathRPCPreconditionFailureViolation
- type StackpathRPCQuotaFailure
- func (m *StackpathRPCQuotaFailure) AtType() string
- func (m *StackpathRPCQuotaFailure) MarshalBinary() ([]byte, error)
- func (m StackpathRPCQuotaFailure) MarshalJSON() ([]byte, error)
- func (m *StackpathRPCQuotaFailure) SetAtType(val string)
- func (m *StackpathRPCQuotaFailure) UnmarshalBinary(b []byte) error
- func (m *StackpathRPCQuotaFailure) UnmarshalJSON(raw []byte) error
- func (m *StackpathRPCQuotaFailure) Validate(formats strfmt.Registry) error
- type StackpathRPCQuotaFailureViolation
- type StackpathRPCRequestInfo
- func (m *StackpathRPCRequestInfo) AtType() string
- func (m *StackpathRPCRequestInfo) MarshalBinary() ([]byte, error)
- func (m StackpathRPCRequestInfo) MarshalJSON() ([]byte, error)
- func (m *StackpathRPCRequestInfo) SetAtType(val string)
- func (m *StackpathRPCRequestInfo) UnmarshalBinary(b []byte) error
- func (m *StackpathRPCRequestInfo) UnmarshalJSON(raw []byte) error
- func (m *StackpathRPCRequestInfo) Validate(formats strfmt.Registry) error
- type StackpathRPCResourceInfo
- func (m *StackpathRPCResourceInfo) AtType() string
- func (m *StackpathRPCResourceInfo) MarshalBinary() ([]byte, error)
- func (m StackpathRPCResourceInfo) MarshalJSON() ([]byte, error)
- func (m *StackpathRPCResourceInfo) SetAtType(val string)
- func (m *StackpathRPCResourceInfo) UnmarshalBinary(b []byte) error
- func (m *StackpathRPCResourceInfo) UnmarshalJSON(raw []byte) error
- func (m *StackpathRPCResourceInfo) Validate(formats strfmt.Registry) error
- type StackpathRPCRetryInfo
- func (m *StackpathRPCRetryInfo) AtType() string
- func (m *StackpathRPCRetryInfo) MarshalBinary() ([]byte, error)
- func (m StackpathRPCRetryInfo) MarshalJSON() ([]byte, error)
- func (m *StackpathRPCRetryInfo) SetAtType(val string)
- func (m *StackpathRPCRetryInfo) UnmarshalBinary(b []byte) error
- func (m *StackpathRPCRetryInfo) UnmarshalJSON(raw []byte) error
- func (m *StackpathRPCRetryInfo) Validate(formats strfmt.Registry) error
- type V1Action
- type V1CreateNetworkPolicyRequest
- type V1CreateNetworkPolicyResponse
- type V1Egress
- type V1GetNetworkPoliciesResponse
- type V1GetNetworkPolicyResponse
- type V1HostRule
- type V1IPBlock
- type V1Ingress
- type V1MatchExpression
- type V1NetworkPolicy
- type V1NetworkPolicySpec
- type V1ProtocolAh
- type V1ProtocolEsp
- type V1ProtocolGre
- type V1ProtocolIcmp
- type V1ProtocolTCP
- type V1ProtocolTCPUDP
- type V1ProtocolUDP
- type V1Protocols
- type V1UpdateNetworkPolicyRequest
- type V1UpdateNetworkPolicyResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIStatus ¶
type APIStatus struct { // code Code int32 `json:"code,omitempty"` // message Message string `json:"message,omitempty"` // contains filtered or unexported fields }
APIStatus api status
swagger:model apiStatus
func (*APIStatus) Details ¶
func (m *APIStatus) Details() []APIStatusDetail
Details gets the details of this base type
func (*APIStatus) MarshalBinary ¶
MarshalBinary interface implementation
func (APIStatus) MarshalJSON ¶
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*APIStatus) SetDetails ¶
func (m *APIStatus) SetDetails(val []APIStatusDetail)
SetDetails sets the details of this base type
func (*APIStatus) UnmarshalBinary ¶
UnmarshalBinary interface implementation
func (*APIStatus) UnmarshalJSON ¶
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type APIStatusDetail ¶
type APIStatusDetail interface { runtime.Validatable // at type // Required: true AtType() string SetAtType(string) }
APIStatusDetail api status detail
swagger:discriminator apiStatusDetail @type
func UnmarshalAPIStatusDetail ¶
UnmarshalAPIStatusDetail unmarshals polymorphic APIStatusDetail
func UnmarshalAPIStatusDetailSlice ¶
func UnmarshalAPIStatusDetailSlice(reader io.Reader, consumer runtime.Consumer) ([]APIStatusDetail, error)
UnmarshalAPIStatusDetailSlice unmarshals polymorphic slices of APIStatusDetail
type NetworkMetadata ¶
type NetworkMetadata struct { // annotations Annotations NetworkStringMapEntry `json:"annotations,omitempty"` // The date that a metadata entry was created // Read Only: true // Format: date-time CreatedAt *strfmt.DateTime `json:"createdAt,omitempty"` // The date that a network policy was requested for deletion // Read Only: true // Format: date-time DeleteRequestedAt *strfmt.DateTime `json:"deleteRequestedAt,omitempty"` // labels Labels NetworkStringMapEntry `json:"labels,omitempty"` // The date that a metadata entry was last updated // Read Only: true // Format: date-time UpdatedAt *strfmt.DateTime `json:"updatedAt,omitempty"` // An entity's version number // // Versions start at 1 when they are created and increment by 1 every time they are updated. Version string `json:"version,omitempty"` }
NetworkMetadata Metadata associated with an entity
swagger:model networkMetadata
func (*NetworkMetadata) MarshalBinary ¶
func (m *NetworkMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*NetworkMetadata) UnmarshalBinary ¶
func (m *NetworkMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type NetworkPolicySpecPolicyType ¶
type NetworkPolicySpecPolicyType string
NetworkPolicySpecPolicyType network policy spec policy type
swagger:model NetworkPolicySpecPolicyType
const ( // NetworkPolicySpecPolicyTypePOLICYTYPENOTSPECIFIED captures enum value "POLICY_TYPE_NOT_SPECIFIED" NetworkPolicySpecPolicyTypePOLICYTYPENOTSPECIFIED NetworkPolicySpecPolicyType = "POLICY_TYPE_NOT_SPECIFIED" // NetworkPolicySpecPolicyTypeINGRESS captures enum value "INGRESS" NetworkPolicySpecPolicyTypeINGRESS NetworkPolicySpecPolicyType = "INGRESS" // NetworkPolicySpecPolicyTypeEGRESS captures enum value "EGRESS" NetworkPolicySpecPolicyTypeEGRESS NetworkPolicySpecPolicyType = "EGRESS" )
type NetworkStringMapEntry ¶
NetworkStringMapEntry A string to string key/value pair
swagger:model networkStringMapEntry
type PaginationPageInfo ¶
type PaginationPageInfo struct { // The cursor for the last item in the set of data returned EndCursor string `json:"endCursor,omitempty"` // Whether or not another page of data is available HasNextPage bool `json:"hasNextPage,omitempty"` // Whether or not a previous page of data exists HasPreviousPage bool `json:"hasPreviousPage,omitempty"` // The cursor for the first item in the set of data returned StartCursor string `json:"startCursor,omitempty"` // The total number of items in the dataset TotalCount string `json:"totalCount,omitempty"` }
PaginationPageInfo Information about a paginated response
This is modeled after the GraphQL Relay spec to support both cursor based pagination and traditional offset based pagination.
swagger:model paginationPageInfo
func (*PaginationPageInfo) MarshalBinary ¶
func (m *PaginationPageInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PaginationPageInfo) UnmarshalBinary ¶
func (m *PaginationPageInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type PaginationPageRequest ¶
type PaginationPageRequest struct { // The cursor value after which data will be returned After string `json:"after,omitempty"` // SQL-style constraint filters Filter string `json:"filter,omitempty"` // The number of items desired First string `json:"first,omitempty"` // Sort the response by the given field SortBy string `json:"sortBy,omitempty"` }
PaginationPageRequest Pagination request information
This is modeled after the GraphQL Relay spec to support both cursor based pagination and traditional offset based pagination.
swagger:model paginationPageRequest
func (*PaginationPageRequest) MarshalBinary ¶
func (m *PaginationPageRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*PaginationPageRequest) UnmarshalBinary ¶
func (m *PaginationPageRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StackpathRPCBadRequest ¶
type StackpathRPCBadRequest struct { // field violations FieldViolations []*StackpathRPCBadRequestFieldViolation `json:"fieldViolations"` }
StackpathRPCBadRequest stackpath rpc bad request
swagger:model stackpath.rpc.BadRequest
func (*StackpathRPCBadRequest) AtType ¶
func (m *StackpathRPCBadRequest) AtType() string
AtType gets the at type of this subtype
func (*StackpathRPCBadRequest) MarshalBinary ¶
func (m *StackpathRPCBadRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (StackpathRPCBadRequest) MarshalJSON ¶
func (m StackpathRPCBadRequest) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*StackpathRPCBadRequest) SetAtType ¶
func (m *StackpathRPCBadRequest) SetAtType(val string)
SetAtType sets the at type of this subtype
func (*StackpathRPCBadRequest) UnmarshalBinary ¶
func (m *StackpathRPCBadRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*StackpathRPCBadRequest) UnmarshalJSON ¶
func (m *StackpathRPCBadRequest) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type StackpathRPCBadRequestFieldViolation ¶
type StackpathRPCBadRequestFieldViolation struct { // description Description string `json:"description,omitempty"` // field Field string `json:"field,omitempty"` }
StackpathRPCBadRequestFieldViolation stackpath rpc bad request field violation
swagger:model stackpath.rpc.BadRequest.FieldViolation
func (*StackpathRPCBadRequestFieldViolation) MarshalBinary ¶
func (m *StackpathRPCBadRequestFieldViolation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StackpathRPCBadRequestFieldViolation) UnmarshalBinary ¶
func (m *StackpathRPCBadRequestFieldViolation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StackpathRPCHelp ¶
type StackpathRPCHelp struct { // links Links []*StackpathRPCHelpLink `json:"links"` }
StackpathRPCHelp stackpath rpc help
swagger:model stackpath.rpc.Help
func (*StackpathRPCHelp) AtType ¶
func (m *StackpathRPCHelp) AtType() string
AtType gets the at type of this subtype
func (*StackpathRPCHelp) MarshalBinary ¶
func (m *StackpathRPCHelp) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (StackpathRPCHelp) MarshalJSON ¶
func (m StackpathRPCHelp) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*StackpathRPCHelp) SetAtType ¶
func (m *StackpathRPCHelp) SetAtType(val string)
SetAtType sets the at type of this subtype
func (*StackpathRPCHelp) UnmarshalBinary ¶
func (m *StackpathRPCHelp) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*StackpathRPCHelp) UnmarshalJSON ¶
func (m *StackpathRPCHelp) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type StackpathRPCHelpLink ¶
type StackpathRPCHelpLink struct { // description Description string `json:"description,omitempty"` // url URL string `json:"url,omitempty"` }
StackpathRPCHelpLink stackpath rpc help link
swagger:model stackpath.rpc.Help.Link
func (*StackpathRPCHelpLink) MarshalBinary ¶
func (m *StackpathRPCHelpLink) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StackpathRPCHelpLink) UnmarshalBinary ¶
func (m *StackpathRPCHelpLink) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StackpathRPCLocalizedMessage ¶
type StackpathRPCLocalizedMessage struct { // locale Locale string `json:"locale,omitempty"` // message Message string `json:"message,omitempty"` }
StackpathRPCLocalizedMessage stackpath rpc localized message
swagger:model stackpath.rpc.LocalizedMessage
func (*StackpathRPCLocalizedMessage) AtType ¶
func (m *StackpathRPCLocalizedMessage) AtType() string
AtType gets the at type of this subtype
func (*StackpathRPCLocalizedMessage) MarshalBinary ¶
func (m *StackpathRPCLocalizedMessage) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (StackpathRPCLocalizedMessage) MarshalJSON ¶
func (m StackpathRPCLocalizedMessage) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*StackpathRPCLocalizedMessage) SetAtType ¶
func (m *StackpathRPCLocalizedMessage) SetAtType(val string)
SetAtType sets the at type of this subtype
func (*StackpathRPCLocalizedMessage) UnmarshalBinary ¶
func (m *StackpathRPCLocalizedMessage) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*StackpathRPCLocalizedMessage) UnmarshalJSON ¶
func (m *StackpathRPCLocalizedMessage) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type StackpathRPCPreconditionFailure ¶
type StackpathRPCPreconditionFailure struct { // violations Violations []*StackpathRPCPreconditionFailureViolation `json:"violations"` }
StackpathRPCPreconditionFailure stackpath rpc precondition failure
swagger:model stackpath.rpc.PreconditionFailure
func (*StackpathRPCPreconditionFailure) AtType ¶
func (m *StackpathRPCPreconditionFailure) AtType() string
AtType gets the at type of this subtype
func (*StackpathRPCPreconditionFailure) MarshalBinary ¶
func (m *StackpathRPCPreconditionFailure) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (StackpathRPCPreconditionFailure) MarshalJSON ¶
func (m StackpathRPCPreconditionFailure) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*StackpathRPCPreconditionFailure) SetAtType ¶
func (m *StackpathRPCPreconditionFailure) SetAtType(val string)
SetAtType sets the at type of this subtype
func (*StackpathRPCPreconditionFailure) UnmarshalBinary ¶
func (m *StackpathRPCPreconditionFailure) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*StackpathRPCPreconditionFailure) UnmarshalJSON ¶
func (m *StackpathRPCPreconditionFailure) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type StackpathRPCPreconditionFailureViolation ¶
type StackpathRPCPreconditionFailureViolation struct { // description Description string `json:"description,omitempty"` // subject Subject string `json:"subject,omitempty"` // type Type string `json:"type,omitempty"` }
StackpathRPCPreconditionFailureViolation stackpath rpc precondition failure violation
swagger:model stackpath.rpc.PreconditionFailure.Violation
func (*StackpathRPCPreconditionFailureViolation) MarshalBinary ¶
func (m *StackpathRPCPreconditionFailureViolation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StackpathRPCPreconditionFailureViolation) UnmarshalBinary ¶
func (m *StackpathRPCPreconditionFailureViolation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StackpathRPCQuotaFailure ¶
type StackpathRPCQuotaFailure struct { // violations Violations []*StackpathRPCQuotaFailureViolation `json:"violations"` }
StackpathRPCQuotaFailure stackpath rpc quota failure
swagger:model stackpath.rpc.QuotaFailure
func (*StackpathRPCQuotaFailure) AtType ¶
func (m *StackpathRPCQuotaFailure) AtType() string
AtType gets the at type of this subtype
func (*StackpathRPCQuotaFailure) MarshalBinary ¶
func (m *StackpathRPCQuotaFailure) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (StackpathRPCQuotaFailure) MarshalJSON ¶
func (m StackpathRPCQuotaFailure) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*StackpathRPCQuotaFailure) SetAtType ¶
func (m *StackpathRPCQuotaFailure) SetAtType(val string)
SetAtType sets the at type of this subtype
func (*StackpathRPCQuotaFailure) UnmarshalBinary ¶
func (m *StackpathRPCQuotaFailure) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*StackpathRPCQuotaFailure) UnmarshalJSON ¶
func (m *StackpathRPCQuotaFailure) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type StackpathRPCQuotaFailureViolation ¶
type StackpathRPCQuotaFailureViolation struct { // description Description string `json:"description,omitempty"` // subject Subject string `json:"subject,omitempty"` }
StackpathRPCQuotaFailureViolation stackpath rpc quota failure violation
swagger:model stackpath.rpc.QuotaFailure.Violation
func (*StackpathRPCQuotaFailureViolation) MarshalBinary ¶
func (m *StackpathRPCQuotaFailureViolation) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*StackpathRPCQuotaFailureViolation) UnmarshalBinary ¶
func (m *StackpathRPCQuotaFailureViolation) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type StackpathRPCRequestInfo ¶
type StackpathRPCRequestInfo struct { // request Id RequestID string `json:"requestId,omitempty"` // serving data ServingData string `json:"servingData,omitempty"` }
StackpathRPCRequestInfo stackpath rpc request info
swagger:model stackpath.rpc.RequestInfo
func (*StackpathRPCRequestInfo) AtType ¶
func (m *StackpathRPCRequestInfo) AtType() string
AtType gets the at type of this subtype
func (*StackpathRPCRequestInfo) MarshalBinary ¶
func (m *StackpathRPCRequestInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (StackpathRPCRequestInfo) MarshalJSON ¶
func (m StackpathRPCRequestInfo) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*StackpathRPCRequestInfo) SetAtType ¶
func (m *StackpathRPCRequestInfo) SetAtType(val string)
SetAtType sets the at type of this subtype
func (*StackpathRPCRequestInfo) UnmarshalBinary ¶
func (m *StackpathRPCRequestInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*StackpathRPCRequestInfo) UnmarshalJSON ¶
func (m *StackpathRPCRequestInfo) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type StackpathRPCResourceInfo ¶
type StackpathRPCResourceInfo struct { // description Description string `json:"description,omitempty"` // owner Owner string `json:"owner,omitempty"` // resource name ResourceName string `json:"resourceName,omitempty"` // resource type ResourceType string `json:"resourceType,omitempty"` }
StackpathRPCResourceInfo stackpath rpc resource info
swagger:model stackpath.rpc.ResourceInfo
func (*StackpathRPCResourceInfo) AtType ¶
func (m *StackpathRPCResourceInfo) AtType() string
AtType gets the at type of this subtype
func (*StackpathRPCResourceInfo) MarshalBinary ¶
func (m *StackpathRPCResourceInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (StackpathRPCResourceInfo) MarshalJSON ¶
func (m StackpathRPCResourceInfo) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*StackpathRPCResourceInfo) SetAtType ¶
func (m *StackpathRPCResourceInfo) SetAtType(val string)
SetAtType sets the at type of this subtype
func (*StackpathRPCResourceInfo) UnmarshalBinary ¶
func (m *StackpathRPCResourceInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*StackpathRPCResourceInfo) UnmarshalJSON ¶
func (m *StackpathRPCResourceInfo) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type StackpathRPCRetryInfo ¶
type StackpathRPCRetryInfo struct { // retry delay RetryDelay string `json:"retryDelay,omitempty"` }
StackpathRPCRetryInfo stackpath rpc retry info
swagger:model stackpath.rpc.RetryInfo
func (*StackpathRPCRetryInfo) AtType ¶
func (m *StackpathRPCRetryInfo) AtType() string
AtType gets the at type of this subtype
func (*StackpathRPCRetryInfo) MarshalBinary ¶
func (m *StackpathRPCRetryInfo) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (StackpathRPCRetryInfo) MarshalJSON ¶
func (m StackpathRPCRetryInfo) MarshalJSON() ([]byte, error)
MarshalJSON marshals this object with a polymorphic type to a JSON structure
func (*StackpathRPCRetryInfo) SetAtType ¶
func (m *StackpathRPCRetryInfo) SetAtType(val string)
SetAtType sets the at type of this subtype
func (*StackpathRPCRetryInfo) UnmarshalBinary ¶
func (m *StackpathRPCRetryInfo) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
func (*StackpathRPCRetryInfo) UnmarshalJSON ¶
func (m *StackpathRPCRetryInfo) UnmarshalJSON(raw []byte) error
UnmarshalJSON unmarshals this object with a polymorphic type from a JSON structure
type V1CreateNetworkPolicyRequest ¶
type V1CreateNetworkPolicyRequest struct { // network policy NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"` }
V1CreateNetworkPolicyRequest v1 create network policy request
swagger:model v1CreateNetworkPolicyRequest
func (*V1CreateNetworkPolicyRequest) MarshalBinary ¶
func (m *V1CreateNetworkPolicyRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1CreateNetworkPolicyRequest) UnmarshalBinary ¶
func (m *V1CreateNetworkPolicyRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1CreateNetworkPolicyResponse ¶
type V1CreateNetworkPolicyResponse struct { // network policy NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"` }
V1CreateNetworkPolicyResponse A response from a request to add a network policy to a stack
swagger:model v1CreateNetworkPolicyResponse
func (*V1CreateNetworkPolicyResponse) MarshalBinary ¶
func (m *V1CreateNetworkPolicyResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1CreateNetworkPolicyResponse) UnmarshalBinary ¶
func (m *V1CreateNetworkPolicyResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1Egress ¶
type V1Egress struct { // action Action V1Action `json:"action,omitempty"` // Detailed summary of what the egress rule does Description string `json:"description,omitempty"` // protocols Protocols *V1Protocols `json:"protocols,omitempty"` // to To *V1HostRule `json:"to,omitempty"` }
V1Egress An outbound rule from workload instances
swagger:model v1Egress
func (*V1Egress) MarshalBinary ¶
MarshalBinary interface implementation
func (*V1Egress) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type V1GetNetworkPoliciesResponse ¶
type V1GetNetworkPoliciesResponse struct { // page info PageInfo *PaginationPageInfo `json:"pageInfo,omitempty"` // The requested network policies Results []*V1NetworkPolicy `json:"results"` }
V1GetNetworkPoliciesResponse A response from a request to retrieve a stack's network policies
swagger:model v1GetNetworkPoliciesResponse
func (*V1GetNetworkPoliciesResponse) MarshalBinary ¶
func (m *V1GetNetworkPoliciesResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1GetNetworkPoliciesResponse) UnmarshalBinary ¶
func (m *V1GetNetworkPoliciesResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1GetNetworkPolicyResponse ¶
type V1GetNetworkPolicyResponse struct { // network policy NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"` }
V1GetNetworkPolicyResponse A response from a request to get a network policy to a stack
swagger:model v1GetNetworkPolicyResponse
func (*V1GetNetworkPolicyResponse) MarshalBinary ¶
func (m *V1GetNetworkPolicyResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1GetNetworkPolicyResponse) UnmarshalBinary ¶
func (m *V1GetNetworkPolicyResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1HostRule ¶
type V1HostRule struct { // List of instance selectors InstanceSelectors []*V1MatchExpression `json:"instanceSelectors"` // List of ip blocks IPBlock []*V1IPBlock `json:"ipBlock"` // List of network selectors NetworkSelectors []*V1MatchExpression `json:"networkSelectors"` }
V1HostRule Defines IPs, instances, or networks
swagger:model v1HostRule
func (*V1HostRule) MarshalBinary ¶
func (m *V1HostRule) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1HostRule) UnmarshalBinary ¶
func (m *V1HostRule) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1IPBlock ¶
type V1IPBlock struct { // A subnet that will define all the IPs allowed by a rule Cidr string `json:"cidr,omitempty"` // A list of subnets that will be excluded from the above subnet // // This allows a convenient way to allow multiple ip ranges in a single expression Except []string `json:"except"` }
V1IPBlock Defines an IP block
swagger:model v1IpBlock
func (*V1IPBlock) MarshalBinary ¶
MarshalBinary interface implementation
func (*V1IPBlock) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type V1Ingress ¶
type V1Ingress struct { // action Action V1Action `json:"action,omitempty"` // Detailed summary of what the ingress rule does Description string `json:"description,omitempty"` // from From *V1HostRule `json:"from,omitempty"` // protocols Protocols *V1Protocols `json:"protocols,omitempty"` }
V1Ingress An inbound rule to workload instances
swagger:model v1Ingress
func (*V1Ingress) MarshalBinary ¶
MarshalBinary interface implementation
func (*V1Ingress) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type V1MatchExpression ¶
type V1MatchExpression struct { // The name of the selector to perform a match against Key string `json:"key,omitempty"` // The operation to perform to match a selector // // Valid values are "in" with support for more possible in the future Operator string `json:"operator,omitempty"` // The values to match in the selector Values []string `json:"values"` }
V1MatchExpression An expression to match selectors against a set of values
swagger:model v1MatchExpression
func (*V1MatchExpression) MarshalBinary ¶
func (m *V1MatchExpression) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1MatchExpression) UnmarshalBinary ¶
func (m *V1MatchExpression) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1NetworkPolicy ¶
type V1NetworkPolicy struct { // Detailed summary of what the policy does Description string `json:"description,omitempty"` // A network policy's unique identifier // Read Only: true ID string `json:"id,omitempty"` // metadata Metadata *NetworkMetadata `json:"metadata,omitempty"` // A network policy's name as it appears in the StackPath portal Name string `json:"name,omitempty"` // A network policy's programmatic name // // Network policy slugs are used to build its instances names Slug string `json:"slug,omitempty"` // spec Spec *V1NetworkPolicySpec `json:"spec,omitempty"` // The ID of the stack that a network policy belongs to // Read Only: true StackID string `json:"stackId,omitempty"` }
V1NetworkPolicy A network policy
Network policies define an ACL that applies to one or many workload instances ¶
swagger:model v1NetworkPolicy
func (*V1NetworkPolicy) MarshalBinary ¶
func (m *V1NetworkPolicy) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1NetworkPolicy) UnmarshalBinary ¶
func (m *V1NetworkPolicy) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1NetworkPolicySpec ¶
type V1NetworkPolicySpec struct { // A list of rules for outbound traffic from instances // // If the egress policy type is given but not defined here the default is to allow all Egress []*V1Egress `json:"egress"` // A list of rules for inbound traffic to instances // // If the ingress policy type is given but not defined here the default is to block all Ingress []*V1Ingress `json:"ingress"` // A selector to match workload instances InstanceSelectors []*V1MatchExpression `json:"instanceSelectors"` // A selector to match networks NetworkSelectors []*V1MatchExpression `json:"networkSelectors"` // A list of policy types // // Policy types are used to specify what rules will be defined. If a policy type is given but not defined it will default. If it is not provided then no action will be used. PolicyTypes []NetworkPolicySpecPolicyType `json:"policyTypes"` // A priority for all rules in the network policy. 1-65000 Priority int32 `json:"priority,omitempty"` }
V1NetworkPolicySpec The specification for the desired state of a network policy
swagger:model v1NetworkPolicySpec
func (*V1NetworkPolicySpec) MarshalBinary ¶
func (m *V1NetworkPolicySpec) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1NetworkPolicySpec) UnmarshalBinary ¶
func (m *V1NetworkPolicySpec) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1ProtocolAh ¶
type V1ProtocolAh struct{}
V1ProtocolAh Authentication Header (AH) protocol matching
swagger:model v1ProtocolAh
type V1ProtocolEsp ¶
type V1ProtocolEsp struct{}
V1ProtocolEsp Encapsulating Security Payload (ESP) protocol matching
swagger:model v1ProtocolEsp
type V1ProtocolGre ¶
type V1ProtocolGre struct{}
V1ProtocolGre Generic Routing Encapsulation (GRE) protocol matching
swagger:model v1ProtocolGre
type V1ProtocolIcmp ¶
type V1ProtocolIcmp struct{}
V1ProtocolIcmp ICMP protocol matching
swagger:model v1ProtocolIcmp
type V1ProtocolTCP ¶
type V1ProtocolTCP struct { // List of destination ports to allow 1-65535 DestinationPorts []string `json:"destinationPorts"` // List of source ports to allow 1-65535, defaults to 1000-65535 SourcePorts []string `json:"sourcePorts"` }
V1ProtocolTCP TCP protocol matching
swagger:model v1ProtocolTcp
func (*V1ProtocolTCP) MarshalBinary ¶
func (m *V1ProtocolTCP) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1ProtocolTCP) UnmarshalBinary ¶
func (m *V1ProtocolTCP) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1ProtocolTCPUDP ¶
type V1ProtocolTCPUDP struct { // List of destination ports to allow 1-65535 DestinationPorts []string `json:"destinationPorts"` // List of source ports to allow 1-65535, defaults to 1000-65535 SourcePorts []string `json:"sourcePorts"` }
V1ProtocolTCPUDP TCP or UDP protocol convenience matching
swagger:model v1ProtocolTcpUdp
func (*V1ProtocolTCPUDP) MarshalBinary ¶
func (m *V1ProtocolTCPUDP) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1ProtocolTCPUDP) UnmarshalBinary ¶
func (m *V1ProtocolTCPUDP) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1ProtocolUDP ¶
type V1ProtocolUDP struct { // List of destination ports to allow 1-65535 DestinationPorts []string `json:"destinationPorts"` // List of source ports to allow 1-65535, defaults to 1000-65535 SourcePorts []string `json:"sourcePorts"` }
V1ProtocolUDP UDP protocol matching
swagger:model v1ProtocolUdp
func (*V1ProtocolUDP) MarshalBinary ¶
func (m *V1ProtocolUDP) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1ProtocolUDP) UnmarshalBinary ¶
func (m *V1ProtocolUDP) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1Protocols ¶
type V1Protocols struct { // ah Ah *V1ProtocolAh `json:"ah,omitempty"` // esp Esp *V1ProtocolEsp `json:"esp,omitempty"` // gre Gre *V1ProtocolGre `json:"gre,omitempty"` // icmp Icmp *V1ProtocolIcmp `json:"icmp,omitempty"` // tcp TCP *V1ProtocolTCP `json:"tcp,omitempty"` // tcp Udp TCPUDP *V1ProtocolTCPUDP `json:"tcpUdp,omitempty"` // udp UDP *V1ProtocolUDP `json:"udp,omitempty"` }
V1Protocols An object of all supported protocols and any attributes for them
swagger:model v1Protocols
func (*V1Protocols) MarshalBinary ¶
func (m *V1Protocols) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1Protocols) UnmarshalBinary ¶
func (m *V1Protocols) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1UpdateNetworkPolicyRequest ¶
type V1UpdateNetworkPolicyRequest struct { // network policy NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"` }
V1UpdateNetworkPolicyRequest v1 update network policy request
swagger:model v1UpdateNetworkPolicyRequest
func (*V1UpdateNetworkPolicyRequest) MarshalBinary ¶
func (m *V1UpdateNetworkPolicyRequest) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1UpdateNetworkPolicyRequest) UnmarshalBinary ¶
func (m *V1UpdateNetworkPolicyRequest) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type V1UpdateNetworkPolicyResponse ¶
type V1UpdateNetworkPolicyResponse struct { // network policy NetworkPolicy *V1NetworkPolicy `json:"networkPolicy,omitempty"` }
V1UpdateNetworkPolicyResponse A response from a request to update a network policy
swagger:model v1UpdateNetworkPolicyResponse
func (*V1UpdateNetworkPolicyResponse) MarshalBinary ¶
func (m *V1UpdateNetworkPolicyResponse) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*V1UpdateNetworkPolicyResponse) UnmarshalBinary ¶
func (m *V1UpdateNetworkPolicyResponse) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
Source Files ¶
- api_status.go
- api_status_detail.go
- network_metadata.go
- network_policy_spec_policy_type.go
- network_string_map_entry.go
- pagination_page_info.go
- pagination_page_request.go
- stackpath_rpc_bad_request.go
- stackpath_rpc_bad_request_field_violation.go
- stackpath_rpc_help.go
- stackpath_rpc_help_link.go
- stackpath_rpc_localized_message.go
- stackpath_rpc_precondition_failure.go
- stackpath_rpc_precondition_failure_violation.go
- stackpath_rpc_quota_failure.go
- stackpath_rpc_quota_failure_violation.go
- stackpath_rpc_request_info.go
- stackpath_rpc_resource_info.go
- stackpath_rpc_retry_info.go
- v1_action.go
- v1_create_network_policy_request.go
- v1_create_network_policy_response.go
- v1_egress.go
- v1_get_network_policies_response.go
- v1_get_network_policy_response.go
- v1_host_rule.go
- v1_ingress.go
- v1_ip_block.go
- v1_match_expression.go
- v1_network_policy.go
- v1_network_policy_spec.go
- v1_protocol_ah.go
- v1_protocol_esp.go
- v1_protocol_gre.go
- v1_protocol_icmp.go
- v1_protocol_tcp.go
- v1_protocol_tcp_udp.go
- v1_protocol_udp.go
- v1_protocols.go
- v1_update_network_policy_request.go
- v1_update_network_policy_response.go