Documentation ¶
Index ¶
- Variables
- func Bool(b bool) *bool
- func Float32(f float32) *float32
- func Float64(f float64) *float64
- func Int(i int) *int
- func Int64(i int64) *int64
- func String(s string) *string
- type HTTPClient
- type Platform
- func (s *Platform) DeleteNpaRulesID(ctx context.Context, request operations.DeleteNpaRulesIDRequest) (*operations.DeleteNpaRulesIDResponse, error)
- func (s *Platform) GetNpaRules(ctx context.Context, request operations.GetNpaRulesRequest) (*operations.GetNpaRulesResponse, error)
- func (s *Platform) GetNpaRulesID(ctx context.Context, request operations.GetNpaRulesIDRequest) (*operations.GetNpaRulesIDResponse, error)
- func (s *Platform) PatchNpaRulesID(ctx context.Context, request operations.PatchNpaRulesIDRequest) (*operations.PatchNpaRulesIDResponse, error)
- func (s *Platform) PostNpaRules(ctx context.Context, request operations.PostNpaRulesRequest) (*operations.PostNpaRulesResponse, error)
- type SDKOption
- func WithBasePath(basePath string) SDKOption
- func WithClient(client HTTPClient) SDKOption
- func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
- func WithSecurity(apiKey string) SDKOption
- func WithSecuritySource(security func(context.Context) (shared.Security, error)) SDKOption
- func WithServerIndex(serverIndex int) SDKOption
- func WithServerURL(serverURL string) SDKOption
- func WithTemplatedServerURL(serverURL string, params map[string]string) SDKOption
- func WithTenant(tenant string) SDKOption
Constants ¶
This section is empty.
Variables ¶
var ServerList = []string{
"https://{tenant}.goskope.com:/{basePath}",
}
ServerList contains the list of servers available to the SDK
Functions ¶
Types ¶
type HTTPClient ¶
HTTPClient provides an interface for suplying the SDK with a custom HTTP client
type Platform ¶
type Platform struct {
// contains filtered or unexported fields
}
Platform - npa_policy: NPA policy CRUD operations.
func (*Platform) DeleteNpaRulesID ¶
func (s *Platform) DeleteNpaRulesID(ctx context.Context, request operations.DeleteNpaRulesIDRequest) (*operations.DeleteNpaRulesIDResponse, error)
DeleteNpaRulesID - Delete a npa policy Delete a npa policy with rule id
func (*Platform) GetNpaRules ¶
func (s *Platform) GetNpaRules(ctx context.Context, request operations.GetNpaRulesRequest) (*operations.GetNpaRulesResponse, error)
GetNpaRules - Get list of npa policies Get list of npa policies
func (*Platform) GetNpaRulesID ¶
func (s *Platform) GetNpaRulesID(ctx context.Context, request operations.GetNpaRulesIDRequest) (*operations.GetNpaRulesIDResponse, error)
GetNpaRulesID - Get a npa policy Get a npa policy based on policy rule id
func (*Platform) PatchNpaRulesID ¶
func (s *Platform) PatchNpaRulesID(ctx context.Context, request operations.PatchNpaRulesIDRequest) (*operations.PatchNpaRulesIDResponse, error)
PatchNpaRulesID - Patch a npa policy Patch a npa policy based on rule id
func (*Platform) PostNpaRules ¶
func (s *Platform) PostNpaRules(ctx context.Context, request operations.PostNpaRulesRequest) (*operations.PostNpaRulesResponse, error)
PostNpaRules - Create a npa policy Create a policy
type SDKOption ¶
type SDKOption func(*Platform)
func WithBasePath ¶
WithBasePath allows setting the basePath variable for url substitution
func WithClient ¶
func WithClient(client HTTPClient) SDKOption
WithClient allows the overriding of the default HTTP client used by the SDK
func WithRetryConfig ¶
func WithRetryConfig(retryConfig utils.RetryConfig) SDKOption
func WithSecurity ¶
WithSecurity configures the SDK to use the provided security details
func WithSecuritySource ¶ added in v0.4.4
WithSecuritySource configures the SDK to invoke the Security Source function on each method call to determine authentication
func WithServerIndex ¶
WithServerIndex allows the overriding of the default server by index
func WithServerURL ¶
WithServerURL allows the overriding of the default server URL
func WithTemplatedServerURL ¶
WithTemplatedServerURL allows the overriding of the default server URL with a templated URL populated with the provided parameters
func WithTenant ¶
WithTenant allows setting the tenant variable for url substitution