Documentation
¶
Overview ¶
Package stl provides support for HSDP STL services
Index ¶
- type AppFirewallException
- type AppLogging
- type AppResource
- type AppsService
- func (a *AppsService) CreateAppResource(ctx context.Context, input CreateApplicationResourceInput) (*AppResource, error)
- func (a *AppsService) DeleteAppResource(ctx context.Context, input DeleteApplicationResourceInput) (bool, error)
- func (a *AppsService) GetAppResourceByDeviceIDAndName(ctx context.Context, deviceID int64, name string) (*AppResource, error)
- func (a *AppsService) GetAppResourceByID(ctx context.Context, id int64) (*AppResource, error)
- func (a *AppsService) GetAppResourcesBySerial(ctx context.Context, serial string) (*[]AppResource, error)
- func (a *AppsService) UpdateAppResource(ctx context.Context, input UpdateApplicationResourceInput) (*AppResource, error)
- type CertsService
- func (a *CertsService) CreateCustomCert(ctx context.Context, input CreateAppCustomCertInput) (*CustomCert, error)
- func (a *CertsService) DeleteCustomCert(ctx context.Context, input DeleteAppCustomCertInput) (bool, error)
- func (a *CertsService) GetCustomCertByID(ctx context.Context, id int64) (*CustomCert, error)
- func (a *CertsService) GetCustomCertsBySerial(ctx context.Context, serial string) (*[]CustomCert, error)
- func (a *CertsService) UpdateCustomCert(ctx context.Context, input UpdateAppCustomCertInput) (*CustomCert, error)
- type Client
- type Config
- type ConfigService
- func (c *ConfigService) GetAppLoggingBySerial(ctx context.Context, serial string) (*AppLogging, error)
- func (c *ConfigService) GetFirewallExceptionsBySerial(ctx context.Context, serial string) (*AppFirewallException, error)
- func (c *ConfigService) UpdateAppFirewallExceptions(ctx context.Context, input UpdateAppFirewallExceptionInput) (*AppFirewallException, error)
- func (c *ConfigService) UpdateAppLogging(ctx context.Context, input UpdateAppLoggingInput) (*AppLogging, error)
- type CreateAppCustomCertInput
- type CreateApplicationResourceInput
- type CustomCert
- type DeleteAppCustomCertInput
- type DeleteApplicationResourceInput
- type Device
- type DevicesService
- type OptionFunc
- type SyncDeviceConfigsInput
- type UpdateAppCustomCertInput
- type UpdateAppFirewallExceptionInput
- type UpdateAppLoggingInput
- type UpdateApplicationResourceInput
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AppFirewallException ¶
type AppLogging ¶
type AppLogging struct { DeviceID int64 `json:"deviceId,omitempty"` RawConfig string `json:"rawConfig"` HSDPLogging bool `json:"hsdpLogging"` HSDPIngestorHost string `json:"hsdpIngestorHost"` HSDPSecretKey string `json:"hsdpSecretKey"` HSDPProductKey string `json:"hsdpProductKey"` HSDPCustomField *bool `json:"hsdpCustomField,omitempty"` }
type AppResource ¶
type AppsService ¶
type AppsService struct {
// contains filtered or unexported fields
}
func (*AppsService) CreateAppResource ¶
func (a *AppsService) CreateAppResource(ctx context.Context, input CreateApplicationResourceInput) (*AppResource, error)
func (*AppsService) DeleteAppResource ¶
func (a *AppsService) DeleteAppResource(ctx context.Context, input DeleteApplicationResourceInput) (bool, error)
func (*AppsService) GetAppResourceByDeviceIDAndName ¶
func (a *AppsService) GetAppResourceByDeviceIDAndName(ctx context.Context, deviceID int64, name string) (*AppResource, error)
func (*AppsService) GetAppResourceByID ¶
func (a *AppsService) GetAppResourceByID(ctx context.Context, id int64) (*AppResource, error)
func (*AppsService) GetAppResourcesBySerial ¶
func (a *AppsService) GetAppResourcesBySerial(ctx context.Context, serial string) (*[]AppResource, error)
func (*AppsService) UpdateAppResource ¶
func (a *AppsService) UpdateAppResource(ctx context.Context, input UpdateApplicationResourceInput) (*AppResource, error)
type CertsService ¶
type CertsService struct {
// contains filtered or unexported fields
}
func (*CertsService) CreateCustomCert ¶
func (a *CertsService) CreateCustomCert(ctx context.Context, input CreateAppCustomCertInput) (*CustomCert, error)
func (*CertsService) DeleteCustomCert ¶
func (a *CertsService) DeleteCustomCert(ctx context.Context, input DeleteAppCustomCertInput) (bool, error)
func (*CertsService) GetCustomCertByID ¶
func (a *CertsService) GetCustomCertByID(ctx context.Context, id int64) (*CustomCert, error)
func (*CertsService) GetCustomCertsBySerial ¶
func (a *CertsService) GetCustomCertsBySerial(ctx context.Context, serial string) (*[]CustomCert, error)
func (*CertsService) UpdateCustomCert ¶
func (a *CertsService) UpdateCustomCert(ctx context.Context, input UpdateAppCustomCertInput) (*CustomCert, error)
type Client ¶
type Client struct { // User agent used when communicating with the HSDP Edge API. UserAgent string Devices *DevicesService Apps *AppsService Config *ConfigService Certs *CertsService // contains filtered or unexported fields }
A Client manages communication with HSDP Edge API
type ConfigService ¶
type ConfigService struct {
// contains filtered or unexported fields
}
func (*ConfigService) GetAppLoggingBySerial ¶
func (c *ConfigService) GetAppLoggingBySerial(ctx context.Context, serial string) (*AppLogging, error)
func (*ConfigService) GetFirewallExceptionsBySerial ¶
func (c *ConfigService) GetFirewallExceptionsBySerial(ctx context.Context, serial string) (*AppFirewallException, error)
func (*ConfigService) UpdateAppFirewallExceptions ¶
func (c *ConfigService) UpdateAppFirewallExceptions(ctx context.Context, input UpdateAppFirewallExceptionInput) (*AppFirewallException, error)
func (*ConfigService) UpdateAppLogging ¶
func (c *ConfigService) UpdateAppLogging(ctx context.Context, input UpdateAppLoggingInput) (*AppLogging, error)
type CreateAppCustomCertInput ¶
type CreateAppCustomCertInput struct { CustomCert SerialNumber string `json:"serialNumber"` }
type CustomCert ¶
type DeleteAppCustomCertInput ¶
type DeleteAppCustomCertInput struct {
ID int64 `json:"id"`
}
type Device ¶
type Device struct { ID int64 Name string State string Region string SerialNumber string PrimaryInterface struct { Name string Address string } }
Device represents a STL device
type DevicesService ¶
type DevicesService struct {
// contains filtered or unexported fields
}
func (*DevicesService) GetDeviceByID ¶
GetDeviceByID retrieves a device by serial
func (*DevicesService) GetDeviceBySerial ¶
GetDeviceBySerial retrieves a device by serial
func (*DevicesService) SyncDeviceConfig ¶
func (d *DevicesService) SyncDeviceConfig(ctx context.Context, serial string) error
type OptionFunc ¶
OptionFunc is the function signature function for options
type SyncDeviceConfigsInput ¶
type SyncDeviceConfigsInput struct {
SerialNumber string `json:"serialNumber"`
}
type UpdateAppFirewallExceptionInput ¶
type UpdateAppFirewallExceptionInput struct { AppFirewallException SerialNumber string `json:"serialNumber"` }
type UpdateAppLoggingInput ¶
type UpdateAppLoggingInput struct { AppLogging SerialNumber string `json:"serialNumber"` }
func (UpdateAppLoggingInput) Validate ¶
func (u UpdateAppLoggingInput) Validate() (bool, error)
Click to show internal directories.
Click to hide internal directories.