Versions in this module Expand all Collapse all v0 v0.0.2 May 17, 2024 v0.0.1 Sep 1, 2023 Changes in this version + var DebugTransport = &LogTransport + func BoolRef(value bool) *bool + func IntRef(value int) *int + func StringRef(value string) *string + type Auth struct + AuthToken string + type Client struct + func NewClient(cfg ClientConfig) (*Client, error) + func NewClientWithToken(auth *Auth) *Client + func (c *Client) Login(ctx context.Context, s UserCredentials) error + func (c *Client) Organization(ouid string) *OrganizationClient + func (c *Client) Stack(s *StackAuth) (*StackInstance, error) + func (c *Client) Stacks(ctx context.Context, input StacksInput) ([]Stack, error) + type ClientConfig struct + AuthToken string + BaseURL string + HTTPClient *http.Client + OrganizationUID string + type ContentType struct + CreatedAt time.Time + Description string + MaintainRevisions bool + Options *ContentTypeOptions + Schema json.RawMessage + Title string + UID string + UpdatedAt time.Time + type ContentTypeInput struct + Description *string + Schema json.RawMessage + Title *string + UID *string + type ContentTypeOptions struct + IsPage bool + Publishable bool + Singleton bool + SubTitle []string + Title string + UrlPattern string + UrlPrefix string + type ContentTypeRequest struct + ContentType ContentTypeInput + type ContentTypeResponse struct + ContentType ContentType + type Entry struct + CreatedAt time.Time + CreatedBy string + Fields map[string]interface{} + Locale string + UID string + UpdatedAt time.Time + UpdatedBy string + Version int + type EntryContextInput struct + ContentTypeUID string + Locale string + UID string + type EntryInput struct + ContentTypeUID string + Fields map[string]interface{} + Locale string + type EntryRequest struct + Entry json.RawMessage + type EntryResponse struct + Entry json.RawMessage + type ErrorMessage struct + ErrorCode int + ErrorMessage string + Errors map[string][]string + func (e *ErrorMessage) Error() string + type GlobalField struct + CreatedAt time.Time + Description string + MaintainRevisions bool + Schema json.RawMessage + Title string + UID string + UpdatedAt time.Time + type GlobalFieldInput struct + Description *string + MaintainRevisions bool + Schema json.RawMessage + Title *string + UID *string + type GlobalFieldRequest struct + GlobalField GlobalFieldInput + type GlobalFieldResponse struct + GlobalField GlobalField + type Locale struct + Code string + CreatedAt time.Time + FallbackLocale string + Name string + UID string + UpdatedAt time.Time + type LocaleInput struct + Code string + FallbackLocale string + Name string + type LocaleRequest struct + Locale LocaleInput + type LocaleResponse struct + Locale Locale + type LogTransport struct + func (c *LogTransport) RoundTrip(request *http.Request) (*http.Response, error) + type OrganizationClient struct + type Stack struct + ApiKey string + CreatedAt time.Time + MasterLocale string + Name string + OrganizationUID string + UID string + UpdatedAt time.Time + type StackAuth struct + ApiKey string + ManagementToken string + type StackInstance struct + func (si *StackInstance) ContentTypeCreate(ctx context.Context, input ContentTypeInput) (*ContentType, error) + func (si *StackInstance) ContentTypeDelete(ctx context.Context, uid string) error + func (si *StackInstance) ContentTypeFetch(ctx context.Context, uid string) (*ContentType, error) + func (si *StackInstance) ContentTypeFetchAll(ctx context.Context) ([]ContentType, error) + func (si *StackInstance) ContentTypeUpdate(ctx context.Context, uid string, input ContentTypeInput) (*ContentType, error) + func (si *StackInstance) EntryCreate(ctx context.Context, input *EntryInput) (*Entry, error) + func (si *StackInstance) EntryDelete(ctx context.Context, input *EntryContextInput) error + func (si *StackInstance) EntryFetch(ctx context.Context, input *EntryContextInput) (*Entry, error) + func (si *StackInstance) EntryFetchAll(ctx context.Context, contentTypeUID string) ([]Entry, error) + func (si *StackInstance) EntryUpdate(ctx context.Context, uid string, input *EntryInput) (*Entry, error) + func (si *StackInstance) GlobalFieldCreate(ctx context.Context, input GlobalFieldInput) (*GlobalField, error) + func (si *StackInstance) GlobalFieldDelete(ctx context.Context, uid string) error + func (si *StackInstance) GlobalFieldFetch(ctx context.Context, uid string) (*GlobalField, error) + func (si *StackInstance) GlobalFieldFetchAll(ctx context.Context) ([]GlobalField, error) + func (si *StackInstance) GlobalFieldUpdate(ctx context.Context, uid string, input GlobalFieldInput) (*GlobalField, error) + func (si *StackInstance) LocaleCreate(ctx context.Context, input LocaleInput) (*Locale, error) + func (si *StackInstance) LocaleDelete(ctx context.Context, code string) error + func (si *StackInstance) LocaleFetch(ctx context.Context, code string) (*Locale, error) + func (si *StackInstance) LocaleFetchAll(ctx context.Context) ([]Locale, error) + func (si *StackInstance) LocaleUpdate(ctx context.Context, code string, input LocaleInput) (*Locale, error) + func (si *StackInstance) Settings(ctx context.Context) (*StackSettings, error) + func (si *StackInstance) WebHookCreate(ctx context.Context, input WebHookInput) (*WebHook, error) + func (si *StackInstance) WebHookDelete(ctx context.Context, uid string) error + func (si *StackInstance) WebHookFetch(ctx context.Context, uid string) (*WebHook, error) + func (si *StackInstance) WebHookFetchAll(ctx context.Context) ([]WebHook, error) + func (si *StackInstance) WebHookUpdate(ctx context.Context, uid string, input WebHookInput) (*WebHook, error) + type StackSettings struct + type StacksInput struct + Asc string + Desc string + IncludeCount bool + Limit int + OrganizationUid string + Skip int + type UserCredentials struct + Email string + Password string + type WebHook struct + Branches []string + Channels []string + ConcisePayload bool + CreatedAt time.Time + CreatedBy string + Destinations []WebhookDestination + Disabled bool + Name string + OrganizationUID string + RetryPolicy string + UID string + UpdatedAt time.Time + UpdatedBy string + type WebHookInput struct + Branches []string + Channels []string + ConcisePayload bool + Destinations []WebhookDestination + Disabled bool + Name string + RetryPolicy string + type WebHookRequest struct + WebHook WebHookInput + type WebHookResponse struct + WebHook WebHook + type WebhookDestination struct + CustomHeaders []WebhookHeader + HttpBasicAuth string + HttpBasicPassword string + TargetURL string + type WebhookHeader struct + Name string + Value string