Documentation
¶
Index ¶
- Constants
- Variables
- func CreateSimpleMqSettings(queueName string, content string) v1.DestinationSettings
- func CreateSimpleNotificationSettings(groupId string, message string) v1.DestinationSettings
- func NewClient(params ...client.ClientParam) (*v1.Client, error)
- func NewClientWithApiUrl(apiUrl string, params ...client.ClientParam) (*v1.Client, error)
- type DummySecuritySource
- type Error
- type ProcessConfigurationAPI
- type ScheduleAPI
Constants ¶
View Source
const DefaultAPIRootURL = "https://secure.sakura.ad.jp/cloud/zone/is1a/api/cloud/1.1/commonserviceitem/"
DefaultAPIRootURL デフォルトのAPIルートURL
View Source
const Version = "0.3.2"
Variables ¶
View Source
var UserAgent = fmt.Sprintf( "eventbus-api-go/%s (%s/%s; +https://github.com/sacloud/eventbus-api-go) %s", Version, runtime.GOOS, runtime.GOARCH, client.DefaultUserAgent, )
UserAgent APIリクエスト時のユーザーエージェント
Functions ¶
func CreateSimpleMqSettings ¶
func CreateSimpleMqSettings(queueName string, content string) v1.DestinationSettings
func CreateSimpleNotificationSettings ¶
func CreateSimpleNotificationSettings(groupId string, message string) v1.DestinationSettings
func NewClientWithApiUrl ¶
Types ¶
type DummySecuritySource ¶
type DummySecuritySource struct {
Token string
}
SecuritySourceはOpenAPI定義で使用されている認証のための仕組み。api-client-goが処理するので、ogen用はダミーで誤魔化す
func (DummySecuritySource) CloudCtrlAuth ¶
func (ss DummySecuritySource) CloudCtrlAuth(ctx context.Context, operationName v1.OperationName) (v1.CloudCtrlAuth, error)
type ProcessConfigurationAPI ¶
type ProcessConfigurationAPI interface { List(ctx context.Context) ([]v1.ProcessConfiguration, error) Read(ctx context.Context, id string) (*v1.ProcessConfiguration, error) Create(ctx context.Context, request v1.ProcessConfigurationRequestSettings) (*v1.ProcessConfiguration, error) Update(ctx context.Context, id string, request v1.ProcessConfigurationRequestSettings) (*v1.ProcessConfiguration, error) UpdateSecret(ctx context.Context, id string, secret v1.ProcessConfigurationSecret) error Delete(ctx context.Context, id string) error }
func NewProcessConfigurationOp ¶
func NewProcessConfigurationOp(client *v1.Client) ProcessConfigurationAPI
type ScheduleAPI ¶
type ScheduleAPI interface { List(ctx context.Context) ([]v1.Schedule, error) Read(ctx context.Context, id string) (*v1.Schedule, error) Create(ctx context.Context, request v1.ScheduleRequestSettings) (*v1.Schedule, error) Update(ctx context.Context, id string, request v1.ScheduleRequestSettings) (*v1.Schedule, error) Delete(ctx context.Context, id string) error }
func NewScheduleOp ¶
func NewScheduleOp(client *v1.Client) ScheduleAPI
Source Files
¶
Click to show internal directories.
Click to hide internal directories.