Documentation
¶
Index ¶
Constants ¶
View Source
const (
DNS1123LabelMaxLength int = 63
)
TODO(marcos) move this code to baton-sdk.
Variables ¶
View Source
var ( ClientIdField = field.StringField( "coupa-client-id", field.WithRequired(true), field.WithDescription("Your Coupa Client ID"), ) ClientSecretField = field.StringField( "coupa-client-secret", field.WithRequired(true), field.WithDescription("Your Coupa Client Secret"), ) CoupaDomain = field.StringField( "coupa-domain", field.WithRequired(true), field.WithDescription("Your Coupa Domain, ex: acme.coupacloud.com"), ) // ConfigurationFields defines the external configuration required for the // connector to run. Note: these fields can be marked as optional or // required. ConfigurationFields = []field.SchemaField{ ClientIdField, ClientSecretField, CoupaDomain, } ConfigurationSchema = field.Configuration{ Fields: ConfigurationFields, } )
Functions ¶
func IsDNS1123Label ¶
IsDNS1123Label tests for a string that conforms to the definition of a label in DNS (RFC 1123).
func NormalizeCoupaURL ¶
func ValidateConfig ¶
ValidateConfig is run after the configuration is loaded, and should return an error if it isn't valid. Implementing this function is optional, it only needs to perform extra validations that cannot be encoded with configuration parameters.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.