Documentation ¶
Index ¶
- Constants
- func MarshalAccessToken(object *AccessToken, target interface{}) error
- func MarshalAccount(object *Account, target interface{}) error
- func MarshalClusterAuthorizationRequest(object *ClusterAuthorizationRequest, target interface{}) error
- func MarshalClusterAuthorizationResponse(object *ClusterAuthorizationResponse, target interface{}) error
- func MarshalClusterRegistrationRequest(object *ClusterRegistrationRequest, target interface{}) error
- func MarshalClusterRegistrationResponse(object *ClusterRegistrationResponse, target interface{}) error
- func MarshalOrganization(object *Organization, target interface{}) error
- func MarshalPermission(object *Permission, target interface{}) error
- func MarshalPlan(object *Plan, target interface{}) error
- func MarshalQuotaSummary(object *QuotaSummary, target interface{}) error
- func MarshalRegistry(object *Registry, target interface{}) error
- func MarshalRegistryCredential(object *RegistryCredential, target interface{}) error
- func MarshalReservedResource(object *ReservedResource, target interface{}) error
- func MarshalResourceQuota(object *ResourceQuota, target interface{}) error
- func MarshalRole(object *Role, target interface{}) error
- func MarshalRoleBinding(object *RoleBinding, target interface{}) error
- func MarshalSubscription(object *Subscription, target interface{}) error
- type AccessToken
- type AccessTokenBuilder
- type AccessTokenClient
- type AccessTokenList
- func (l *AccessTokenList) Each(f func(item *AccessToken) bool)
- func (l *AccessTokenList) Empty() bool
- func (l *AccessTokenList) Get(i int) *AccessToken
- func (l *AccessTokenList) Len() int
- func (l *AccessTokenList) Range(f func(index int, item *AccessToken) bool)
- func (l *AccessTokenList) Slice() []*AccessToken
- type AccessTokenListBuilder
- type AccessTokenPostRequest
- func (r *AccessTokenPostRequest) Header(name string, value interface{}) *AccessTokenPostRequest
- func (r *AccessTokenPostRequest) Parameter(name string, value interface{}) *AccessTokenPostRequest
- func (r *AccessTokenPostRequest) Send() (result *AccessTokenPostResponse, err error)
- func (r *AccessTokenPostRequest) SendContext(ctx context.Context) (result *AccessTokenPostResponse, err error)
- type AccessTokenPostResponse
- type AccessTokenPostServerRequest
- type AccessTokenPostServerResponse
- type AccessTokenServer
- type AccessTokenServerAdapter
- type Account
- func (o *Account) BanDescription() string
- func (o *Account) Banned() bool
- func (o *Account) Email() string
- func (o *Account) Empty() bool
- func (o *Account) FirstName() string
- func (o *Account) GetBanDescription() (value string, ok bool)
- func (o *Account) GetBanned() (value bool, ok bool)
- func (o *Account) GetEmail() (value string, ok bool)
- func (o *Account) GetFirstName() (value string, ok bool)
- func (o *Account) GetHREF() (value string, ok bool)
- func (o *Account) GetID() (value string, ok bool)
- func (o *Account) GetLastName() (value string, ok bool)
- func (o *Account) GetName() (value string, ok bool)
- func (o *Account) GetOrganization() (value *Organization, ok bool)
- func (o *Account) GetUsername() (value string, ok bool)
- func (o *Account) HREF() string
- func (o *Account) ID() string
- func (o *Account) Kind() string
- func (o *Account) LastName() string
- func (o *Account) Link() bool
- func (o *Account) Name() string
- func (o *Account) Organization() *Organization
- func (o *Account) Username() string
- type AccountBuilder
- func (b *AccountBuilder) BanDescription(value string) *AccountBuilder
- func (b *AccountBuilder) Banned(value bool) *AccountBuilder
- func (b *AccountBuilder) Build() (object *Account, err error)
- func (b *AccountBuilder) Email(value string) *AccountBuilder
- func (b *AccountBuilder) FirstName(value string) *AccountBuilder
- func (b *AccountBuilder) HREF(value string) *AccountBuilder
- func (b *AccountBuilder) ID(value string) *AccountBuilder
- func (b *AccountBuilder) LastName(value string) *AccountBuilder
- func (b *AccountBuilder) Link(value bool) *AccountBuilder
- func (b *AccountBuilder) Name(value string) *AccountBuilder
- func (b *AccountBuilder) Organization(value *OrganizationBuilder) *AccountBuilder
- func (b *AccountBuilder) Username(value string) *AccountBuilder
- type AccountClient
- type AccountGetRequest
- func (r *AccountGetRequest) Header(name string, value interface{}) *AccountGetRequest
- func (r *AccountGetRequest) Parameter(name string, value interface{}) *AccountGetRequest
- func (r *AccountGetRequest) Send() (result *AccountGetResponse, err error)
- func (r *AccountGetRequest) SendContext(ctx context.Context) (result *AccountGetResponse, err error)
- type AccountGetResponse
- type AccountGetServerRequest
- type AccountGetServerResponse
- type AccountList
- func (l *AccountList) Each(f func(item *Account) bool)
- func (l *AccountList) Empty() bool
- func (l *AccountList) Get(i int) *Account
- func (l *AccountList) GetHREF() (value string, ok bool)
- func (l *AccountList) HREF() string
- func (l *AccountList) Kind() string
- func (l *AccountList) Len() int
- func (l *AccountList) Link() bool
- func (l *AccountList) Range(f func(index int, item *Account) bool)
- func (l *AccountList) Slice() []*Account
- type AccountListBuilder
- type AccountServer
- type AccountServerAdapter
- type AccountUpdateRequest
- func (r *AccountUpdateRequest) Body(value *Account) *AccountUpdateRequest
- func (r *AccountUpdateRequest) Header(name string, value interface{}) *AccountUpdateRequest
- func (r *AccountUpdateRequest) Parameter(name string, value interface{}) *AccountUpdateRequest
- func (r *AccountUpdateRequest) Send() (result *AccountUpdateResponse, err error)
- func (r *AccountUpdateRequest) SendContext(ctx context.Context) (result *AccountUpdateResponse, err error)
- type AccountUpdateResponse
- type AccountUpdateServerRequest
- type AccountUpdateServerResponse
- type AccountsAddRequest
- func (r *AccountsAddRequest) Body(value *Account) *AccountsAddRequest
- func (r *AccountsAddRequest) Header(name string, value interface{}) *AccountsAddRequest
- func (r *AccountsAddRequest) Parameter(name string, value interface{}) *AccountsAddRequest
- func (r *AccountsAddRequest) Send() (result *AccountsAddResponse, err error)
- func (r *AccountsAddRequest) SendContext(ctx context.Context) (result *AccountsAddResponse, err error)
- type AccountsAddResponse
- type AccountsAddServerRequest
- type AccountsAddServerResponse
- type AccountsClient
- type AccountsListRequest
- func (r *AccountsListRequest) Header(name string, value interface{}) *AccountsListRequest
- func (r *AccountsListRequest) Page(value int) *AccountsListRequest
- func (r *AccountsListRequest) Parameter(name string, value interface{}) *AccountsListRequest
- func (r *AccountsListRequest) Send() (result *AccountsListResponse, err error)
- func (r *AccountsListRequest) SendContext(ctx context.Context) (result *AccountsListResponse, err error)
- func (r *AccountsListRequest) Size(value int) *AccountsListRequest
- func (r *AccountsListRequest) Total(value int) *AccountsListRequest
- type AccountsListResponse
- func (r *AccountsListResponse) Error() *errors.Error
- func (r *AccountsListResponse) GetItems() (value *AccountList, ok bool)
- func (r *AccountsListResponse) GetPage() (value int, ok bool)
- func (r *AccountsListResponse) GetSize() (value int, ok bool)
- func (r *AccountsListResponse) GetTotal() (value int, ok bool)
- func (r *AccountsListResponse) Header() http.Header
- func (r *AccountsListResponse) Items() *AccountList
- func (r *AccountsListResponse) Page() int
- func (r *AccountsListResponse) Size() int
- func (r *AccountsListResponse) Status() int
- func (r *AccountsListResponse) Total() int
- type AccountsListServerRequest
- func (r *AccountsListServerRequest) GetPage() (value int, ok bool)
- func (r *AccountsListServerRequest) GetSize() (value int, ok bool)
- func (r *AccountsListServerRequest) GetTotal() (value int, ok bool)
- func (r *AccountsListServerRequest) Page() int
- func (r *AccountsListServerRequest) Size() int
- func (r *AccountsListServerRequest) Total() int
- type AccountsListServerResponse
- func (r *AccountsListServerResponse) Items(value *AccountList) *AccountsListServerResponse
- func (r *AccountsListServerResponse) Page(value int) *AccountsListServerResponse
- func (r *AccountsListServerResponse) SetStatusCode(status int) *AccountsListServerResponse
- func (r *AccountsListServerResponse) Size(value int) *AccountsListServerResponse
- func (r *AccountsListServerResponse) Total(value int) *AccountsListServerResponse
- type AccountsServer
- type AccountsServerAdapter
- type Action
- type ClusterAuthorizationRequest
- func (o *ClusterAuthorizationRequest) AccountUsername() string
- func (o *ClusterAuthorizationRequest) AvailabilityZone() string
- func (o *ClusterAuthorizationRequest) BYOC() bool
- func (o *ClusterAuthorizationRequest) ClusterID() string
- func (o *ClusterAuthorizationRequest) Empty() bool
- func (o *ClusterAuthorizationRequest) GetAccountUsername() (value string, ok bool)
- func (o *ClusterAuthorizationRequest) GetAvailabilityZone() (value string, ok bool)
- func (o *ClusterAuthorizationRequest) GetBYOC() (value bool, ok bool)
- func (o *ClusterAuthorizationRequest) GetClusterID() (value string, ok bool)
- func (o *ClusterAuthorizationRequest) GetManaged() (value bool, ok bool)
- func (o *ClusterAuthorizationRequest) GetReserve() (value bool, ok bool)
- func (o *ClusterAuthorizationRequest) GetResources() (value *ReservedResourceList, ok bool)
- func (o *ClusterAuthorizationRequest) Managed() bool
- func (o *ClusterAuthorizationRequest) Reserve() bool
- func (o *ClusterAuthorizationRequest) Resources() *ReservedResourceList
- type ClusterAuthorizationRequestBuilder
- func (b *ClusterAuthorizationRequestBuilder) AccountUsername(value string) *ClusterAuthorizationRequestBuilder
- func (b *ClusterAuthorizationRequestBuilder) AvailabilityZone(value string) *ClusterAuthorizationRequestBuilder
- func (b *ClusterAuthorizationRequestBuilder) BYOC(value bool) *ClusterAuthorizationRequestBuilder
- func (b *ClusterAuthorizationRequestBuilder) Build() (object *ClusterAuthorizationRequest, err error)
- func (b *ClusterAuthorizationRequestBuilder) ClusterID(value string) *ClusterAuthorizationRequestBuilder
- func (b *ClusterAuthorizationRequestBuilder) Managed(value bool) *ClusterAuthorizationRequestBuilder
- func (b *ClusterAuthorizationRequestBuilder) Reserve(value bool) *ClusterAuthorizationRequestBuilder
- func (b *ClusterAuthorizationRequestBuilder) Resources(values ...*ReservedResourceBuilder) *ClusterAuthorizationRequestBuilder
- type ClusterAuthorizationRequestList
- func (l *ClusterAuthorizationRequestList) Each(f func(item *ClusterAuthorizationRequest) bool)
- func (l *ClusterAuthorizationRequestList) Empty() bool
- func (l *ClusterAuthorizationRequestList) Get(i int) *ClusterAuthorizationRequest
- func (l *ClusterAuthorizationRequestList) Len() int
- func (l *ClusterAuthorizationRequestList) Range(f func(index int, item *ClusterAuthorizationRequest) bool)
- func (l *ClusterAuthorizationRequestList) Slice() []*ClusterAuthorizationRequest
- type ClusterAuthorizationRequestListBuilder
- type ClusterAuthorizationResponse
- func (o *ClusterAuthorizationResponse) Allowed() bool
- func (o *ClusterAuthorizationResponse) Empty() bool
- func (o *ClusterAuthorizationResponse) ExcessResources() *ReservedResourceList
- func (o *ClusterAuthorizationResponse) GetAllowed() (value bool, ok bool)
- func (o *ClusterAuthorizationResponse) GetExcessResources() (value *ReservedResourceList, ok bool)
- func (o *ClusterAuthorizationResponse) GetSubscription() (value *Subscription, ok bool)
- func (o *ClusterAuthorizationResponse) Subscription() *Subscription
- type ClusterAuthorizationResponseBuilder
- func (b *ClusterAuthorizationResponseBuilder) Allowed(value bool) *ClusterAuthorizationResponseBuilder
- func (b *ClusterAuthorizationResponseBuilder) Build() (object *ClusterAuthorizationResponse, err error)
- func (b *ClusterAuthorizationResponseBuilder) ExcessResources(values ...*ReservedResourceBuilder) *ClusterAuthorizationResponseBuilder
- func (b *ClusterAuthorizationResponseBuilder) Subscription(value *SubscriptionBuilder) *ClusterAuthorizationResponseBuilder
- type ClusterAuthorizationResponseList
- func (l *ClusterAuthorizationResponseList) Each(f func(item *ClusterAuthorizationResponse) bool)
- func (l *ClusterAuthorizationResponseList) Empty() bool
- func (l *ClusterAuthorizationResponseList) Get(i int) *ClusterAuthorizationResponse
- func (l *ClusterAuthorizationResponseList) Len() int
- func (l *ClusterAuthorizationResponseList) Range(f func(index int, item *ClusterAuthorizationResponse) bool)
- func (l *ClusterAuthorizationResponseList) Slice() []*ClusterAuthorizationResponse
- type ClusterAuthorizationResponseListBuilder
- type ClusterAuthorizationsClient
- type ClusterAuthorizationsPostRequest
- func (r *ClusterAuthorizationsPostRequest) Header(name string, value interface{}) *ClusterAuthorizationsPostRequest
- func (r *ClusterAuthorizationsPostRequest) Parameter(name string, value interface{}) *ClusterAuthorizationsPostRequest
- func (r *ClusterAuthorizationsPostRequest) Request(value *ClusterAuthorizationRequest) *ClusterAuthorizationsPostRequest
- func (r *ClusterAuthorizationsPostRequest) Send() (result *ClusterAuthorizationsPostResponse, err error)
- func (r *ClusterAuthorizationsPostRequest) SendContext(ctx context.Context) (result *ClusterAuthorizationsPostResponse, err error)
- type ClusterAuthorizationsPostResponse
- func (r *ClusterAuthorizationsPostResponse) Error() *errors.Error
- func (r *ClusterAuthorizationsPostResponse) GetResponse() (value *ClusterAuthorizationResponse, ok bool)
- func (r *ClusterAuthorizationsPostResponse) Header() http.Header
- func (r *ClusterAuthorizationsPostResponse) Response() *ClusterAuthorizationResponse
- func (r *ClusterAuthorizationsPostResponse) Status() int
- type ClusterAuthorizationsPostServerRequest
- type ClusterAuthorizationsPostServerResponse
- type ClusterAuthorizationsServer
- type ClusterAuthorizationsServerAdapter
- type ClusterRegistrationRequest
- func (o *ClusterRegistrationRequest) AuthorizationToken() string
- func (o *ClusterRegistrationRequest) ClusterID() string
- func (o *ClusterRegistrationRequest) Empty() bool
- func (o *ClusterRegistrationRequest) GetAuthorizationToken() (value string, ok bool)
- func (o *ClusterRegistrationRequest) GetClusterID() (value string, ok bool)
- type ClusterRegistrationRequestBuilder
- func (b *ClusterRegistrationRequestBuilder) AuthorizationToken(value string) *ClusterRegistrationRequestBuilder
- func (b *ClusterRegistrationRequestBuilder) Build() (object *ClusterRegistrationRequest, err error)
- func (b *ClusterRegistrationRequestBuilder) ClusterID(value string) *ClusterRegistrationRequestBuilder
- type ClusterRegistrationRequestList
- func (l *ClusterRegistrationRequestList) Each(f func(item *ClusterRegistrationRequest) bool)
- func (l *ClusterRegistrationRequestList) Empty() bool
- func (l *ClusterRegistrationRequestList) Get(i int) *ClusterRegistrationRequest
- func (l *ClusterRegistrationRequestList) Len() int
- func (l *ClusterRegistrationRequestList) Range(f func(index int, item *ClusterRegistrationRequest) bool)
- func (l *ClusterRegistrationRequestList) Slice() []*ClusterRegistrationRequest
- type ClusterRegistrationRequestListBuilder
- type ClusterRegistrationResponse
- func (o *ClusterRegistrationResponse) AccountID() string
- func (o *ClusterRegistrationResponse) AuthorizationToken() string
- func (o *ClusterRegistrationResponse) ClusterID() string
- func (o *ClusterRegistrationResponse) Empty() bool
- func (o *ClusterRegistrationResponse) ExpiresAt() string
- func (o *ClusterRegistrationResponse) GetAccountID() (value string, ok bool)
- func (o *ClusterRegistrationResponse) GetAuthorizationToken() (value string, ok bool)
- func (o *ClusterRegistrationResponse) GetClusterID() (value string, ok bool)
- func (o *ClusterRegistrationResponse) GetExpiresAt() (value string, ok bool)
- type ClusterRegistrationResponseBuilder
- func (b *ClusterRegistrationResponseBuilder) AccountID(value string) *ClusterRegistrationResponseBuilder
- func (b *ClusterRegistrationResponseBuilder) AuthorizationToken(value string) *ClusterRegistrationResponseBuilder
- func (b *ClusterRegistrationResponseBuilder) Build() (object *ClusterRegistrationResponse, err error)
- func (b *ClusterRegistrationResponseBuilder) ClusterID(value string) *ClusterRegistrationResponseBuilder
- func (b *ClusterRegistrationResponseBuilder) ExpiresAt(value string) *ClusterRegistrationResponseBuilder
- type ClusterRegistrationResponseList
- func (l *ClusterRegistrationResponseList) Each(f func(item *ClusterRegistrationResponse) bool)
- func (l *ClusterRegistrationResponseList) Empty() bool
- func (l *ClusterRegistrationResponseList) Get(i int) *ClusterRegistrationResponse
- func (l *ClusterRegistrationResponseList) Len() int
- func (l *ClusterRegistrationResponseList) Range(f func(index int, item *ClusterRegistrationResponse) bool)
- func (l *ClusterRegistrationResponseList) Slice() []*ClusterRegistrationResponse
- type ClusterRegistrationResponseListBuilder
- type ClusterRegistrationsClient
- type ClusterRegistrationsPostRequest
- func (r *ClusterRegistrationsPostRequest) Header(name string, value interface{}) *ClusterRegistrationsPostRequest
- func (r *ClusterRegistrationsPostRequest) Parameter(name string, value interface{}) *ClusterRegistrationsPostRequest
- func (r *ClusterRegistrationsPostRequest) Request(value *ClusterRegistrationRequest) *ClusterRegistrationsPostRequest
- func (r *ClusterRegistrationsPostRequest) Send() (result *ClusterRegistrationsPostResponse, err error)
- func (r *ClusterRegistrationsPostRequest) SendContext(ctx context.Context) (result *ClusterRegistrationsPostResponse, err error)
- type ClusterRegistrationsPostResponse
- func (r *ClusterRegistrationsPostResponse) Error() *errors.Error
- func (r *ClusterRegistrationsPostResponse) GetResponse() (value *ClusterRegistrationResponse, ok bool)
- func (r *ClusterRegistrationsPostResponse) Header() http.Header
- func (r *ClusterRegistrationsPostResponse) Response() *ClusterRegistrationResponse
- func (r *ClusterRegistrationsPostResponse) Status() int
- type ClusterRegistrationsPostServerRequest
- type ClusterRegistrationsPostServerResponse
- type ClusterRegistrationsServer
- type ClusterRegistrationsServerAdapter
- type CurrentAccountClient
- type CurrentAccountGetRequest
- func (r *CurrentAccountGetRequest) Header(name string, value interface{}) *CurrentAccountGetRequest
- func (r *CurrentAccountGetRequest) Parameter(name string, value interface{}) *CurrentAccountGetRequest
- func (r *CurrentAccountGetRequest) Send() (result *CurrentAccountGetResponse, err error)
- func (r *CurrentAccountGetRequest) SendContext(ctx context.Context) (result *CurrentAccountGetResponse, err error)
- type CurrentAccountGetResponse
- type CurrentAccountGetServerRequest
- type CurrentAccountGetServerResponse
- type CurrentAccountServer
- type CurrentAccountServerAdapter
- type Organization
- func (o *Organization) Empty() bool
- func (o *Organization) GetHREF() (value string, ok bool)
- func (o *Organization) GetID() (value string, ok bool)
- func (o *Organization) GetName() (value string, ok bool)
- func (o *Organization) HREF() string
- func (o *Organization) ID() string
- func (o *Organization) Kind() string
- func (o *Organization) Link() bool
- func (o *Organization) Name() string
- type OrganizationBuilder
- func (b *OrganizationBuilder) Build() (object *Organization, err error)
- func (b *OrganizationBuilder) HREF(value string) *OrganizationBuilder
- func (b *OrganizationBuilder) ID(value string) *OrganizationBuilder
- func (b *OrganizationBuilder) Link(value bool) *OrganizationBuilder
- func (b *OrganizationBuilder) Name(value string) *OrganizationBuilder
- type OrganizationClient
- type OrganizationGetRequest
- func (r *OrganizationGetRequest) Header(name string, value interface{}) *OrganizationGetRequest
- func (r *OrganizationGetRequest) Parameter(name string, value interface{}) *OrganizationGetRequest
- func (r *OrganizationGetRequest) Send() (result *OrganizationGetResponse, err error)
- func (r *OrganizationGetRequest) SendContext(ctx context.Context) (result *OrganizationGetResponse, err error)
- type OrganizationGetResponse
- type OrganizationGetServerRequest
- type OrganizationGetServerResponse
- type OrganizationList
- func (l *OrganizationList) Each(f func(item *Organization) bool)
- func (l *OrganizationList) Empty() bool
- func (l *OrganizationList) Get(i int) *Organization
- func (l *OrganizationList) GetHREF() (value string, ok bool)
- func (l *OrganizationList) HREF() string
- func (l *OrganizationList) Kind() string
- func (l *OrganizationList) Len() int
- func (l *OrganizationList) Link() bool
- func (l *OrganizationList) Range(f func(index int, item *Organization) bool)
- func (l *OrganizationList) Slice() []*Organization
- type OrganizationListBuilder
- type OrganizationServer
- type OrganizationServerAdapter
- type OrganizationUpdateRequest
- func (r *OrganizationUpdateRequest) Body(value *Organization) *OrganizationUpdateRequest
- func (r *OrganizationUpdateRequest) Header(name string, value interface{}) *OrganizationUpdateRequest
- func (r *OrganizationUpdateRequest) Parameter(name string, value interface{}) *OrganizationUpdateRequest
- func (r *OrganizationUpdateRequest) Send() (result *OrganizationUpdateResponse, err error)
- func (r *OrganizationUpdateRequest) SendContext(ctx context.Context) (result *OrganizationUpdateResponse, err error)
- type OrganizationUpdateResponse
- func (r *OrganizationUpdateResponse) Body() *Organization
- func (r *OrganizationUpdateResponse) Error() *errors.Error
- func (r *OrganizationUpdateResponse) GetBody() (value *Organization, ok bool)
- func (r *OrganizationUpdateResponse) Header() http.Header
- func (r *OrganizationUpdateResponse) Status() int
- type OrganizationUpdateServerRequest
- type OrganizationUpdateServerResponse
- type OrganizationsAddRequest
- func (r *OrganizationsAddRequest) Body(value *Organization) *OrganizationsAddRequest
- func (r *OrganizationsAddRequest) Header(name string, value interface{}) *OrganizationsAddRequest
- func (r *OrganizationsAddRequest) Parameter(name string, value interface{}) *OrganizationsAddRequest
- func (r *OrganizationsAddRequest) Send() (result *OrganizationsAddResponse, err error)
- func (r *OrganizationsAddRequest) SendContext(ctx context.Context) (result *OrganizationsAddResponse, err error)
- type OrganizationsAddResponse
- type OrganizationsAddServerRequest
- type OrganizationsAddServerResponse
- type OrganizationsClient
- type OrganizationsListRequest
- func (r *OrganizationsListRequest) Header(name string, value interface{}) *OrganizationsListRequest
- func (r *OrganizationsListRequest) Page(value int) *OrganizationsListRequest
- func (r *OrganizationsListRequest) Parameter(name string, value interface{}) *OrganizationsListRequest
- func (r *OrganizationsListRequest) Send() (result *OrganizationsListResponse, err error)
- func (r *OrganizationsListRequest) SendContext(ctx context.Context) (result *OrganizationsListResponse, err error)
- func (r *OrganizationsListRequest) Size(value int) *OrganizationsListRequest
- func (r *OrganizationsListRequest) Total(value int) *OrganizationsListRequest
- type OrganizationsListResponse
- func (r *OrganizationsListResponse) Error() *errors.Error
- func (r *OrganizationsListResponse) GetItems() (value *OrganizationList, ok bool)
- func (r *OrganizationsListResponse) GetPage() (value int, ok bool)
- func (r *OrganizationsListResponse) GetSize() (value int, ok bool)
- func (r *OrganizationsListResponse) GetTotal() (value int, ok bool)
- func (r *OrganizationsListResponse) Header() http.Header
- func (r *OrganizationsListResponse) Items() *OrganizationList
- func (r *OrganizationsListResponse) Page() int
- func (r *OrganizationsListResponse) Size() int
- func (r *OrganizationsListResponse) Status() int
- func (r *OrganizationsListResponse) Total() int
- type OrganizationsListServerRequest
- func (r *OrganizationsListServerRequest) GetPage() (value int, ok bool)
- func (r *OrganizationsListServerRequest) GetSize() (value int, ok bool)
- func (r *OrganizationsListServerRequest) GetTotal() (value int, ok bool)
- func (r *OrganizationsListServerRequest) Page() int
- func (r *OrganizationsListServerRequest) Size() int
- func (r *OrganizationsListServerRequest) Total() int
- type OrganizationsListServerResponse
- func (r *OrganizationsListServerResponse) Items(value *OrganizationList) *OrganizationsListServerResponse
- func (r *OrganizationsListServerResponse) Page(value int) *OrganizationsListServerResponse
- func (r *OrganizationsListServerResponse) SetStatusCode(status int) *OrganizationsListServerResponse
- func (r *OrganizationsListServerResponse) Size(value int) *OrganizationsListServerResponse
- func (r *OrganizationsListServerResponse) Total(value int) *OrganizationsListServerResponse
- type OrganizationsServer
- type OrganizationsServerAdapter
- type Permission
- func (o *Permission) Action() Action
- func (o *Permission) Empty() bool
- func (o *Permission) GetAction() (value Action, ok bool)
- func (o *Permission) GetHREF() (value string, ok bool)
- func (o *Permission) GetID() (value string, ok bool)
- func (o *Permission) GetResourceType() (value string, ok bool)
- func (o *Permission) GetRoleID() (value string, ok bool)
- func (o *Permission) HREF() string
- func (o *Permission) ID() string
- func (o *Permission) Kind() string
- func (o *Permission) Link() bool
- func (o *Permission) ResourceType() string
- func (o *Permission) RoleID() string
- type PermissionBuilder
- func (b *PermissionBuilder) Action(value Action) *PermissionBuilder
- func (b *PermissionBuilder) Build() (object *Permission, err error)
- func (b *PermissionBuilder) HREF(value string) *PermissionBuilder
- func (b *PermissionBuilder) ID(value string) *PermissionBuilder
- func (b *PermissionBuilder) Link(value bool) *PermissionBuilder
- func (b *PermissionBuilder) ResourceType(value string) *PermissionBuilder
- func (b *PermissionBuilder) RoleID(value string) *PermissionBuilder
- type PermissionClient
- type PermissionDeleteRequest
- func (r *PermissionDeleteRequest) Header(name string, value interface{}) *PermissionDeleteRequest
- func (r *PermissionDeleteRequest) Parameter(name string, value interface{}) *PermissionDeleteRequest
- func (r *PermissionDeleteRequest) Send() (result *PermissionDeleteResponse, err error)
- func (r *PermissionDeleteRequest) SendContext(ctx context.Context) (result *PermissionDeleteResponse, err error)
- type PermissionDeleteResponse
- type PermissionDeleteServerRequest
- type PermissionDeleteServerResponse
- type PermissionGetRequest
- func (r *PermissionGetRequest) Header(name string, value interface{}) *PermissionGetRequest
- func (r *PermissionGetRequest) Parameter(name string, value interface{}) *PermissionGetRequest
- func (r *PermissionGetRequest) Send() (result *PermissionGetResponse, err error)
- func (r *PermissionGetRequest) SendContext(ctx context.Context) (result *PermissionGetResponse, err error)
- type PermissionGetResponse
- type PermissionGetServerRequest
- type PermissionGetServerResponse
- type PermissionList
- func (l *PermissionList) Each(f func(item *Permission) bool)
- func (l *PermissionList) Empty() bool
- func (l *PermissionList) Get(i int) *Permission
- func (l *PermissionList) GetHREF() (value string, ok bool)
- func (l *PermissionList) HREF() string
- func (l *PermissionList) Kind() string
- func (l *PermissionList) Len() int
- func (l *PermissionList) Link() bool
- func (l *PermissionList) Range(f func(index int, item *Permission) bool)
- func (l *PermissionList) Slice() []*Permission
- type PermissionListBuilder
- type PermissionServer
- type PermissionServerAdapter
- type PermissionsAddRequest
- func (r *PermissionsAddRequest) Body(value *Permission) *PermissionsAddRequest
- func (r *PermissionsAddRequest) Header(name string, value interface{}) *PermissionsAddRequest
- func (r *PermissionsAddRequest) Parameter(name string, value interface{}) *PermissionsAddRequest
- func (r *PermissionsAddRequest) Send() (result *PermissionsAddResponse, err error)
- func (r *PermissionsAddRequest) SendContext(ctx context.Context) (result *PermissionsAddResponse, err error)
- type PermissionsAddResponse
- type PermissionsAddServerRequest
- type PermissionsAddServerResponse
- type PermissionsClient
- type PermissionsListRequest
- func (r *PermissionsListRequest) Header(name string, value interface{}) *PermissionsListRequest
- func (r *PermissionsListRequest) Page(value int) *PermissionsListRequest
- func (r *PermissionsListRequest) Parameter(name string, value interface{}) *PermissionsListRequest
- func (r *PermissionsListRequest) Send() (result *PermissionsListResponse, err error)
- func (r *PermissionsListRequest) SendContext(ctx context.Context) (result *PermissionsListResponse, err error)
- func (r *PermissionsListRequest) Size(value int) *PermissionsListRequest
- func (r *PermissionsListRequest) Total(value int) *PermissionsListRequest
- type PermissionsListResponse
- func (r *PermissionsListResponse) Error() *errors.Error
- func (r *PermissionsListResponse) GetItems() (value *PermissionList, ok bool)
- func (r *PermissionsListResponse) GetPage() (value int, ok bool)
- func (r *PermissionsListResponse) GetSize() (value int, ok bool)
- func (r *PermissionsListResponse) GetTotal() (value int, ok bool)
- func (r *PermissionsListResponse) Header() http.Header
- func (r *PermissionsListResponse) Items() *PermissionList
- func (r *PermissionsListResponse) Page() int
- func (r *PermissionsListResponse) Size() int
- func (r *PermissionsListResponse) Status() int
- func (r *PermissionsListResponse) Total() int
- type PermissionsListServerRequest
- func (r *PermissionsListServerRequest) GetPage() (value int, ok bool)
- func (r *PermissionsListServerRequest) GetSize() (value int, ok bool)
- func (r *PermissionsListServerRequest) GetTotal() (value int, ok bool)
- func (r *PermissionsListServerRequest) Page() int
- func (r *PermissionsListServerRequest) Size() int
- func (r *PermissionsListServerRequest) Total() int
- type PermissionsListServerResponse
- func (r *PermissionsListServerResponse) Items(value *PermissionList) *PermissionsListServerResponse
- func (r *PermissionsListServerResponse) Page(value int) *PermissionsListServerResponse
- func (r *PermissionsListServerResponse) SetStatusCode(status int) *PermissionsListServerResponse
- func (r *PermissionsListServerResponse) Size(value int) *PermissionsListServerResponse
- func (r *PermissionsListServerResponse) Total(value int) *PermissionsListServerResponse
- type PermissionsServer
- type PermissionsServerAdapter
- type Plan
- type PlanBuilder
- type PlanList
- func (l *PlanList) Each(f func(item *Plan) bool)
- func (l *PlanList) Empty() bool
- func (l *PlanList) Get(i int) *Plan
- func (l *PlanList) GetHREF() (value string, ok bool)
- func (l *PlanList) HREF() string
- func (l *PlanList) Kind() string
- func (l *PlanList) Len() int
- func (l *PlanList) Link() bool
- func (l *PlanList) Range(f func(index int, item *Plan) bool)
- func (l *PlanList) Slice() []*Plan
- type PlanListBuilder
- type QuotaSummary
- func (o *QuotaSummary) Allowed() int
- func (o *QuotaSummary) AvailabilityZoneType() string
- func (o *QuotaSummary) BYOC() bool
- func (o *QuotaSummary) Empty() bool
- func (o *QuotaSummary) GetAllowed() (value int, ok bool)
- func (o *QuotaSummary) GetAvailabilityZoneType() (value string, ok bool)
- func (o *QuotaSummary) GetBYOC() (value bool, ok bool)
- func (o *QuotaSummary) GetOrganizationID() (value string, ok bool)
- func (o *QuotaSummary) GetReserved() (value int, ok bool)
- func (o *QuotaSummary) GetResourceName() (value string, ok bool)
- func (o *QuotaSummary) GetResourceType() (value string, ok bool)
- func (o *QuotaSummary) OrganizationID() string
- func (o *QuotaSummary) Reserved() int
- func (o *QuotaSummary) ResourceName() string
- func (o *QuotaSummary) ResourceType() string
- type QuotaSummaryBuilder
- func (b *QuotaSummaryBuilder) Allowed(value int) *QuotaSummaryBuilder
- func (b *QuotaSummaryBuilder) AvailabilityZoneType(value string) *QuotaSummaryBuilder
- func (b *QuotaSummaryBuilder) BYOC(value bool) *QuotaSummaryBuilder
- func (b *QuotaSummaryBuilder) Build() (object *QuotaSummary, err error)
- func (b *QuotaSummaryBuilder) OrganizationID(value string) *QuotaSummaryBuilder
- func (b *QuotaSummaryBuilder) Reserved(value int) *QuotaSummaryBuilder
- func (b *QuotaSummaryBuilder) ResourceName(value string) *QuotaSummaryBuilder
- func (b *QuotaSummaryBuilder) ResourceType(value string) *QuotaSummaryBuilder
- type QuotaSummaryClient
- type QuotaSummaryList
- func (l *QuotaSummaryList) Each(f func(item *QuotaSummary) bool)
- func (l *QuotaSummaryList) Empty() bool
- func (l *QuotaSummaryList) Get(i int) *QuotaSummary
- func (l *QuotaSummaryList) Len() int
- func (l *QuotaSummaryList) Range(f func(index int, item *QuotaSummary) bool)
- func (l *QuotaSummaryList) Slice() []*QuotaSummary
- type QuotaSummaryListBuilder
- type QuotaSummaryListRequest
- func (r *QuotaSummaryListRequest) Header(name string, value interface{}) *QuotaSummaryListRequest
- func (r *QuotaSummaryListRequest) Page(value int) *QuotaSummaryListRequest
- func (r *QuotaSummaryListRequest) Parameter(name string, value interface{}) *QuotaSummaryListRequest
- func (r *QuotaSummaryListRequest) Search(value string) *QuotaSummaryListRequest
- func (r *QuotaSummaryListRequest) Send() (result *QuotaSummaryListResponse, err error)
- func (r *QuotaSummaryListRequest) SendContext(ctx context.Context) (result *QuotaSummaryListResponse, err error)
- func (r *QuotaSummaryListRequest) Size(value int) *QuotaSummaryListRequest
- func (r *QuotaSummaryListRequest) Total(value int) *QuotaSummaryListRequest
- type QuotaSummaryListResponse
- func (r *QuotaSummaryListResponse) Error() *errors.Error
- func (r *QuotaSummaryListResponse) GetItems() (value *QuotaSummaryList, ok bool)
- func (r *QuotaSummaryListResponse) GetPage() (value int, ok bool)
- func (r *QuotaSummaryListResponse) GetSize() (value int, ok bool)
- func (r *QuotaSummaryListResponse) GetTotal() (value int, ok bool)
- func (r *QuotaSummaryListResponse) Header() http.Header
- func (r *QuotaSummaryListResponse) Items() *QuotaSummaryList
- func (r *QuotaSummaryListResponse) Page() int
- func (r *QuotaSummaryListResponse) Size() int
- func (r *QuotaSummaryListResponse) Status() int
- func (r *QuotaSummaryListResponse) Total() int
- type QuotaSummaryListServerRequest
- func (r *QuotaSummaryListServerRequest) GetPage() (value int, ok bool)
- func (r *QuotaSummaryListServerRequest) GetSearch() (value string, ok bool)
- func (r *QuotaSummaryListServerRequest) GetSize() (value int, ok bool)
- func (r *QuotaSummaryListServerRequest) GetTotal() (value int, ok bool)
- func (r *QuotaSummaryListServerRequest) Page() int
- func (r *QuotaSummaryListServerRequest) Search() string
- func (r *QuotaSummaryListServerRequest) Size() int
- func (r *QuotaSummaryListServerRequest) Total() int
- type QuotaSummaryListServerResponse
- func (r *QuotaSummaryListServerResponse) Items(value *QuotaSummaryList) *QuotaSummaryListServerResponse
- func (r *QuotaSummaryListServerResponse) Page(value int) *QuotaSummaryListServerResponse
- func (r *QuotaSummaryListServerResponse) SetStatusCode(status int) *QuotaSummaryListServerResponse
- func (r *QuotaSummaryListServerResponse) Size(value int) *QuotaSummaryListServerResponse
- func (r *QuotaSummaryListServerResponse) Total(value int) *QuotaSummaryListServerResponse
- type QuotaSummaryServer
- type QuotaSummaryServerAdapter
- type RegistriesClient
- type RegistriesListRequest
- func (r *RegistriesListRequest) Header(name string, value interface{}) *RegistriesListRequest
- func (r *RegistriesListRequest) Page(value int) *RegistriesListRequest
- func (r *RegistriesListRequest) Parameter(name string, value interface{}) *RegistriesListRequest
- func (r *RegistriesListRequest) Send() (result *RegistriesListResponse, err error)
- func (r *RegistriesListRequest) SendContext(ctx context.Context) (result *RegistriesListResponse, err error)
- func (r *RegistriesListRequest) Size(value int) *RegistriesListRequest
- func (r *RegistriesListRequest) Total(value int) *RegistriesListRequest
- type RegistriesListResponse
- func (r *RegistriesListResponse) Error() *errors.Error
- func (r *RegistriesListResponse) GetItems() (value *RegistryList, ok bool)
- func (r *RegistriesListResponse) GetPage() (value int, ok bool)
- func (r *RegistriesListResponse) GetSize() (value int, ok bool)
- func (r *RegistriesListResponse) GetTotal() (value int, ok bool)
- func (r *RegistriesListResponse) Header() http.Header
- func (r *RegistriesListResponse) Items() *RegistryList
- func (r *RegistriesListResponse) Page() int
- func (r *RegistriesListResponse) Size() int
- func (r *RegistriesListResponse) Status() int
- func (r *RegistriesListResponse) Total() int
- type RegistriesListServerRequest
- func (r *RegistriesListServerRequest) GetPage() (value int, ok bool)
- func (r *RegistriesListServerRequest) GetSize() (value int, ok bool)
- func (r *RegistriesListServerRequest) GetTotal() (value int, ok bool)
- func (r *RegistriesListServerRequest) Page() int
- func (r *RegistriesListServerRequest) Size() int
- func (r *RegistriesListServerRequest) Total() int
- type RegistriesListServerResponse
- func (r *RegistriesListServerResponse) Items(value *RegistryList) *RegistriesListServerResponse
- func (r *RegistriesListServerResponse) Page(value int) *RegistriesListServerResponse
- func (r *RegistriesListServerResponse) SetStatusCode(status int) *RegistriesListServerResponse
- func (r *RegistriesListServerResponse) Size(value int) *RegistriesListServerResponse
- func (r *RegistriesListServerResponse) Total(value int) *RegistriesListServerResponse
- type RegistriesServer
- type RegistriesServerAdapter
- type Registry
- func (o *Registry) CloudAlias() bool
- func (o *Registry) Empty() bool
- func (o *Registry) GetCloudAlias() (value bool, ok bool)
- func (o *Registry) GetHREF() (value string, ok bool)
- func (o *Registry) GetID() (value string, ok bool)
- func (o *Registry) GetName() (value string, ok bool)
- func (o *Registry) GetOrgName() (value string, ok bool)
- func (o *Registry) GetTeamName() (value string, ok bool)
- func (o *Registry) GetType() (value string, ok bool)
- func (o *Registry) GetURL() (value string, ok bool)
- func (o *Registry) HREF() string
- func (o *Registry) ID() string
- func (o *Registry) Kind() string
- func (o *Registry) Link() bool
- func (o *Registry) Name() string
- func (o *Registry) OrgName() string
- func (o *Registry) TeamName() string
- func (o *Registry) Type() string
- func (o *Registry) URL() string
- type RegistryBuilder
- func (b *RegistryBuilder) Build() (object *Registry, err error)
- func (b *RegistryBuilder) CloudAlias(value bool) *RegistryBuilder
- func (b *RegistryBuilder) HREF(value string) *RegistryBuilder
- func (b *RegistryBuilder) ID(value string) *RegistryBuilder
- func (b *RegistryBuilder) Link(value bool) *RegistryBuilder
- func (b *RegistryBuilder) Name(value string) *RegistryBuilder
- func (b *RegistryBuilder) OrgName(value string) *RegistryBuilder
- func (b *RegistryBuilder) TeamName(value string) *RegistryBuilder
- func (b *RegistryBuilder) Type(value string) *RegistryBuilder
- func (b *RegistryBuilder) URL(value string) *RegistryBuilder
- type RegistryClient
- type RegistryCredential
- func (o *RegistryCredential) Account() *Account
- func (o *RegistryCredential) Empty() bool
- func (o *RegistryCredential) GetAccount() (value *Account, ok bool)
- func (o *RegistryCredential) GetHREF() (value string, ok bool)
- func (o *RegistryCredential) GetID() (value string, ok bool)
- func (o *RegistryCredential) GetRegistry() (value *Registry, ok bool)
- func (o *RegistryCredential) GetToken() (value string, ok bool)
- func (o *RegistryCredential) GetUsername() (value string, ok bool)
- func (o *RegistryCredential) HREF() string
- func (o *RegistryCredential) ID() string
- func (o *RegistryCredential) Kind() string
- func (o *RegistryCredential) Link() bool
- func (o *RegistryCredential) Registry() *Registry
- func (o *RegistryCredential) Token() string
- func (o *RegistryCredential) Username() string
- type RegistryCredentialBuilder
- func (b *RegistryCredentialBuilder) Account(value *AccountBuilder) *RegistryCredentialBuilder
- func (b *RegistryCredentialBuilder) Build() (object *RegistryCredential, err error)
- func (b *RegistryCredentialBuilder) HREF(value string) *RegistryCredentialBuilder
- func (b *RegistryCredentialBuilder) ID(value string) *RegistryCredentialBuilder
- func (b *RegistryCredentialBuilder) Link(value bool) *RegistryCredentialBuilder
- func (b *RegistryCredentialBuilder) Registry(value *RegistryBuilder) *RegistryCredentialBuilder
- func (b *RegistryCredentialBuilder) Token(value string) *RegistryCredentialBuilder
- func (b *RegistryCredentialBuilder) Username(value string) *RegistryCredentialBuilder
- type RegistryCredentialClient
- type RegistryCredentialGetRequest
- func (r *RegistryCredentialGetRequest) Header(name string, value interface{}) *RegistryCredentialGetRequest
- func (r *RegistryCredentialGetRequest) Parameter(name string, value interface{}) *RegistryCredentialGetRequest
- func (r *RegistryCredentialGetRequest) Send() (result *RegistryCredentialGetResponse, err error)
- func (r *RegistryCredentialGetRequest) SendContext(ctx context.Context) (result *RegistryCredentialGetResponse, err error)
- type RegistryCredentialGetResponse
- func (r *RegistryCredentialGetResponse) Body() *RegistryCredential
- func (r *RegistryCredentialGetResponse) Error() *errors.Error
- func (r *RegistryCredentialGetResponse) GetBody() (value *RegistryCredential, ok bool)
- func (r *RegistryCredentialGetResponse) Header() http.Header
- func (r *RegistryCredentialGetResponse) Status() int
- type RegistryCredentialGetServerRequest
- type RegistryCredentialGetServerResponse
- type RegistryCredentialList
- func (l *RegistryCredentialList) Each(f func(item *RegistryCredential) bool)
- func (l *RegistryCredentialList) Empty() bool
- func (l *RegistryCredentialList) Get(i int) *RegistryCredential
- func (l *RegistryCredentialList) GetHREF() (value string, ok bool)
- func (l *RegistryCredentialList) HREF() string
- func (l *RegistryCredentialList) Kind() string
- func (l *RegistryCredentialList) Len() int
- func (l *RegistryCredentialList) Link() bool
- func (l *RegistryCredentialList) Range(f func(index int, item *RegistryCredential) bool)
- func (l *RegistryCredentialList) Slice() []*RegistryCredential
- type RegistryCredentialListBuilder
- type RegistryCredentialServer
- type RegistryCredentialServerAdapter
- type RegistryCredentialsAddRequest
- func (r *RegistryCredentialsAddRequest) Body(value *RegistryCredential) *RegistryCredentialsAddRequest
- func (r *RegistryCredentialsAddRequest) Header(name string, value interface{}) *RegistryCredentialsAddRequest
- func (r *RegistryCredentialsAddRequest) Parameter(name string, value interface{}) *RegistryCredentialsAddRequest
- func (r *RegistryCredentialsAddRequest) Send() (result *RegistryCredentialsAddResponse, err error)
- func (r *RegistryCredentialsAddRequest) SendContext(ctx context.Context) (result *RegistryCredentialsAddResponse, err error)
- type RegistryCredentialsAddResponse
- func (r *RegistryCredentialsAddResponse) Body() *RegistryCredential
- func (r *RegistryCredentialsAddResponse) Error() *errors.Error
- func (r *RegistryCredentialsAddResponse) GetBody() (value *RegistryCredential, ok bool)
- func (r *RegistryCredentialsAddResponse) Header() http.Header
- func (r *RegistryCredentialsAddResponse) Status() int
- type RegistryCredentialsAddServerRequest
- type RegistryCredentialsAddServerResponse
- type RegistryCredentialsClient
- type RegistryCredentialsListRequest
- func (r *RegistryCredentialsListRequest) Header(name string, value interface{}) *RegistryCredentialsListRequest
- func (r *RegistryCredentialsListRequest) Page(value int) *RegistryCredentialsListRequest
- func (r *RegistryCredentialsListRequest) Parameter(name string, value interface{}) *RegistryCredentialsListRequest
- func (r *RegistryCredentialsListRequest) Send() (result *RegistryCredentialsListResponse, err error)
- func (r *RegistryCredentialsListRequest) SendContext(ctx context.Context) (result *RegistryCredentialsListResponse, err error)
- func (r *RegistryCredentialsListRequest) Size(value int) *RegistryCredentialsListRequest
- func (r *RegistryCredentialsListRequest) Total(value int) *RegistryCredentialsListRequest
- type RegistryCredentialsListResponse
- func (r *RegistryCredentialsListResponse) Error() *errors.Error
- func (r *RegistryCredentialsListResponse) GetItems() (value *RegistryCredentialList, ok bool)
- func (r *RegistryCredentialsListResponse) GetPage() (value int, ok bool)
- func (r *RegistryCredentialsListResponse) GetSize() (value int, ok bool)
- func (r *RegistryCredentialsListResponse) GetTotal() (value int, ok bool)
- func (r *RegistryCredentialsListResponse) Header() http.Header
- func (r *RegistryCredentialsListResponse) Items() *RegistryCredentialList
- func (r *RegistryCredentialsListResponse) Page() int
- func (r *RegistryCredentialsListResponse) Size() int
- func (r *RegistryCredentialsListResponse) Status() int
- func (r *RegistryCredentialsListResponse) Total() int
- type RegistryCredentialsListServerRequest
- func (r *RegistryCredentialsListServerRequest) GetPage() (value int, ok bool)
- func (r *RegistryCredentialsListServerRequest) GetSize() (value int, ok bool)
- func (r *RegistryCredentialsListServerRequest) GetTotal() (value int, ok bool)
- func (r *RegistryCredentialsListServerRequest) Page() int
- func (r *RegistryCredentialsListServerRequest) Size() int
- func (r *RegistryCredentialsListServerRequest) Total() int
- type RegistryCredentialsListServerResponse
- func (r *RegistryCredentialsListServerResponse) Items(value *RegistryCredentialList) *RegistryCredentialsListServerResponse
- func (r *RegistryCredentialsListServerResponse) Page(value int) *RegistryCredentialsListServerResponse
- func (r *RegistryCredentialsListServerResponse) SetStatusCode(status int) *RegistryCredentialsListServerResponse
- func (r *RegistryCredentialsListServerResponse) Size(value int) *RegistryCredentialsListServerResponse
- func (r *RegistryCredentialsListServerResponse) Total(value int) *RegistryCredentialsListServerResponse
- type RegistryCredentialsServer
- type RegistryCredentialsServerAdapter
- type RegistryGetRequest
- func (r *RegistryGetRequest) Header(name string, value interface{}) *RegistryGetRequest
- func (r *RegistryGetRequest) Parameter(name string, value interface{}) *RegistryGetRequest
- func (r *RegistryGetRequest) Send() (result *RegistryGetResponse, err error)
- func (r *RegistryGetRequest) SendContext(ctx context.Context) (result *RegistryGetResponse, err error)
- type RegistryGetResponse
- type RegistryGetServerRequest
- type RegistryGetServerResponse
- type RegistryList
- func (l *RegistryList) Each(f func(item *Registry) bool)
- func (l *RegistryList) Empty() bool
- func (l *RegistryList) Get(i int) *Registry
- func (l *RegistryList) GetHREF() (value string, ok bool)
- func (l *RegistryList) HREF() string
- func (l *RegistryList) Kind() string
- func (l *RegistryList) Len() int
- func (l *RegistryList) Link() bool
- func (l *RegistryList) Range(f func(index int, item *Registry) bool)
- func (l *RegistryList) Slice() []*Registry
- type RegistryListBuilder
- type RegistryServer
- type RegistryServerAdapter
- type ReservedResource
- func (o *ReservedResource) AvailabilityZoneType() string
- func (o *ReservedResource) BYOC() bool
- func (o *ReservedResource) Count() int
- func (o *ReservedResource) Empty() bool
- func (o *ReservedResource) GetAvailabilityZoneType() (value string, ok bool)
- func (o *ReservedResource) GetBYOC() (value bool, ok bool)
- func (o *ReservedResource) GetCount() (value int, ok bool)
- func (o *ReservedResource) GetResourceName() (value string, ok bool)
- func (o *ReservedResource) GetResourceType() (value string, ok bool)
- func (o *ReservedResource) ResourceName() string
- func (o *ReservedResource) ResourceType() string
- type ReservedResourceBuilder
- func (b *ReservedResourceBuilder) AvailabilityZoneType(value string) *ReservedResourceBuilder
- func (b *ReservedResourceBuilder) BYOC(value bool) *ReservedResourceBuilder
- func (b *ReservedResourceBuilder) Build() (object *ReservedResource, err error)
- func (b *ReservedResourceBuilder) Count(value int) *ReservedResourceBuilder
- func (b *ReservedResourceBuilder) ResourceName(value string) *ReservedResourceBuilder
- func (b *ReservedResourceBuilder) ResourceType(value string) *ReservedResourceBuilder
- type ReservedResourceList
- func (l *ReservedResourceList) Each(f func(item *ReservedResource) bool)
- func (l *ReservedResourceList) Empty() bool
- func (l *ReservedResourceList) Get(i int) *ReservedResource
- func (l *ReservedResourceList) Len() int
- func (l *ReservedResourceList) Range(f func(index int, item *ReservedResource) bool)
- func (l *ReservedResourceList) Slice() []*ReservedResource
- type ReservedResourceListBuilder
- type ResourceQuota
- func (o *ResourceQuota) Allowed() int
- func (o *ResourceQuota) AvailabilityZoneType() string
- func (o *ResourceQuota) BYOC() bool
- func (o *ResourceQuota) Empty() bool
- func (o *ResourceQuota) GetAllowed() (value int, ok bool)
- func (o *ResourceQuota) GetAvailabilityZoneType() (value string, ok bool)
- func (o *ResourceQuota) GetBYOC() (value bool, ok bool)
- func (o *ResourceQuota) GetHREF() (value string, ok bool)
- func (o *ResourceQuota) GetID() (value string, ok bool)
- func (o *ResourceQuota) GetOrganizationID() (value string, ok bool)
- func (o *ResourceQuota) GetReserved() (value int, ok bool)
- func (o *ResourceQuota) GetResourceName() (value string, ok bool)
- func (o *ResourceQuota) GetResourceType() (value string, ok bool)
- func (o *ResourceQuota) GetSKU() (value string, ok bool)
- func (o *ResourceQuota) HREF() string
- func (o *ResourceQuota) ID() string
- func (o *ResourceQuota) Kind() string
- func (o *ResourceQuota) Link() bool
- func (o *ResourceQuota) OrganizationID() string
- func (o *ResourceQuota) Reserved() int
- func (o *ResourceQuota) ResourceName() string
- func (o *ResourceQuota) ResourceType() string
- func (o *ResourceQuota) SKU() string
- type ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) Allowed(value int) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) AvailabilityZoneType(value string) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) BYOC(value bool) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) Build() (object *ResourceQuota, err error)
- func (b *ResourceQuotaBuilder) HREF(value string) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) ID(value string) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) Link(value bool) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) OrganizationID(value string) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) Reserved(value int) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) ResourceName(value string) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) ResourceType(value string) *ResourceQuotaBuilder
- func (b *ResourceQuotaBuilder) SKU(value string) *ResourceQuotaBuilder
- type ResourceQuotaClient
- type ResourceQuotaGetRequest
- func (r *ResourceQuotaGetRequest) Header(name string, value interface{}) *ResourceQuotaGetRequest
- func (r *ResourceQuotaGetRequest) Parameter(name string, value interface{}) *ResourceQuotaGetRequest
- func (r *ResourceQuotaGetRequest) Send() (result *ResourceQuotaGetResponse, err error)
- func (r *ResourceQuotaGetRequest) SendContext(ctx context.Context) (result *ResourceQuotaGetResponse, err error)
- type ResourceQuotaGetResponse
- type ResourceQuotaGetServerRequest
- type ResourceQuotaGetServerResponse
- type ResourceQuotaList
- func (l *ResourceQuotaList) Each(f func(item *ResourceQuota) bool)
- func (l *ResourceQuotaList) Empty() bool
- func (l *ResourceQuotaList) Get(i int) *ResourceQuota
- func (l *ResourceQuotaList) GetHREF() (value string, ok bool)
- func (l *ResourceQuotaList) HREF() string
- func (l *ResourceQuotaList) Kind() string
- func (l *ResourceQuotaList) Len() int
- func (l *ResourceQuotaList) Link() bool
- func (l *ResourceQuotaList) Range(f func(index int, item *ResourceQuota) bool)
- func (l *ResourceQuotaList) Slice() []*ResourceQuota
- type ResourceQuotaListBuilder
- type ResourceQuotaServer
- type ResourceQuotaServerAdapter
- type ResourceQuotaUpdateRequest
- func (r *ResourceQuotaUpdateRequest) Body(value *ResourceQuota) *ResourceQuotaUpdateRequest
- func (r *ResourceQuotaUpdateRequest) Header(name string, value interface{}) *ResourceQuotaUpdateRequest
- func (r *ResourceQuotaUpdateRequest) Parameter(name string, value interface{}) *ResourceQuotaUpdateRequest
- func (r *ResourceQuotaUpdateRequest) Send() (result *ResourceQuotaUpdateResponse, err error)
- func (r *ResourceQuotaUpdateRequest) SendContext(ctx context.Context) (result *ResourceQuotaUpdateResponse, err error)
- type ResourceQuotaUpdateResponse
- func (r *ResourceQuotaUpdateResponse) Body() *ResourceQuota
- func (r *ResourceQuotaUpdateResponse) Error() *errors.Error
- func (r *ResourceQuotaUpdateResponse) GetBody() (value *ResourceQuota, ok bool)
- func (r *ResourceQuotaUpdateResponse) Header() http.Header
- func (r *ResourceQuotaUpdateResponse) Status() int
- type ResourceQuotaUpdateServerRequest
- type ResourceQuotaUpdateServerResponse
- type ResourceQuotasAddRequest
- func (r *ResourceQuotasAddRequest) Body(value *ResourceQuota) *ResourceQuotasAddRequest
- func (r *ResourceQuotasAddRequest) Header(name string, value interface{}) *ResourceQuotasAddRequest
- func (r *ResourceQuotasAddRequest) Parameter(name string, value interface{}) *ResourceQuotasAddRequest
- func (r *ResourceQuotasAddRequest) Send() (result *ResourceQuotasAddResponse, err error)
- func (r *ResourceQuotasAddRequest) SendContext(ctx context.Context) (result *ResourceQuotasAddResponse, err error)
- type ResourceQuotasAddResponse
- type ResourceQuotasAddServerRequest
- type ResourceQuotasAddServerResponse
- type ResourceQuotasClient
- type ResourceQuotasListRequest
- func (r *ResourceQuotasListRequest) Header(name string, value interface{}) *ResourceQuotasListRequest
- func (r *ResourceQuotasListRequest) Page(value int) *ResourceQuotasListRequest
- func (r *ResourceQuotasListRequest) Parameter(name string, value interface{}) *ResourceQuotasListRequest
- func (r *ResourceQuotasListRequest) Send() (result *ResourceQuotasListResponse, err error)
- func (r *ResourceQuotasListRequest) SendContext(ctx context.Context) (result *ResourceQuotasListResponse, err error)
- func (r *ResourceQuotasListRequest) Size(value int) *ResourceQuotasListRequest
- func (r *ResourceQuotasListRequest) Total(value int) *ResourceQuotasListRequest
- type ResourceQuotasListResponse
- func (r *ResourceQuotasListResponse) Error() *errors.Error
- func (r *ResourceQuotasListResponse) GetItems() (value *ResourceQuotaList, ok bool)
- func (r *ResourceQuotasListResponse) GetPage() (value int, ok bool)
- func (r *ResourceQuotasListResponse) GetSize() (value int, ok bool)
- func (r *ResourceQuotasListResponse) GetTotal() (value int, ok bool)
- func (r *ResourceQuotasListResponse) Header() http.Header
- func (r *ResourceQuotasListResponse) Items() *ResourceQuotaList
- func (r *ResourceQuotasListResponse) Page() int
- func (r *ResourceQuotasListResponse) Size() int
- func (r *ResourceQuotasListResponse) Status() int
- func (r *ResourceQuotasListResponse) Total() int
- type ResourceQuotasListServerRequest
- func (r *ResourceQuotasListServerRequest) GetPage() (value int, ok bool)
- func (r *ResourceQuotasListServerRequest) GetSize() (value int, ok bool)
- func (r *ResourceQuotasListServerRequest) GetTotal() (value int, ok bool)
- func (r *ResourceQuotasListServerRequest) Page() int
- func (r *ResourceQuotasListServerRequest) Size() int
- func (r *ResourceQuotasListServerRequest) Total() int
- type ResourceQuotasListServerResponse
- func (r *ResourceQuotasListServerResponse) Items(value *ResourceQuotaList) *ResourceQuotasListServerResponse
- func (r *ResourceQuotasListServerResponse) Page(value int) *ResourceQuotasListServerResponse
- func (r *ResourceQuotasListServerResponse) SetStatusCode(status int) *ResourceQuotasListServerResponse
- func (r *ResourceQuotasListServerResponse) Size(value int) *ResourceQuotasListServerResponse
- func (r *ResourceQuotasListServerResponse) Total(value int) *ResourceQuotasListServerResponse
- type ResourceQuotasServer
- type ResourceQuotasServerAdapter
- type Role
- func (o *Role) Empty() bool
- func (o *Role) GetHREF() (value string, ok bool)
- func (o *Role) GetID() (value string, ok bool)
- func (o *Role) GetName() (value string, ok bool)
- func (o *Role) GetPermissions() (value *PermissionList, ok bool)
- func (o *Role) HREF() string
- func (o *Role) ID() string
- func (o *Role) Kind() string
- func (o *Role) Link() bool
- func (o *Role) Name() string
- func (o *Role) Permissions() *PermissionList
- type RoleBinding
- func (o *RoleBinding) Account() *Account
- func (o *RoleBinding) Empty() bool
- func (o *RoleBinding) GetAccount() (value *Account, ok bool)
- func (o *RoleBinding) GetHREF() (value string, ok bool)
- func (o *RoleBinding) GetID() (value string, ok bool)
- func (o *RoleBinding) GetOrganization() (value *Organization, ok bool)
- func (o *RoleBinding) GetRole() (value *Role, ok bool)
- func (o *RoleBinding) GetSubscription() (value *Subscription, ok bool)
- func (o *RoleBinding) GetType() (value string, ok bool)
- func (o *RoleBinding) HREF() string
- func (o *RoleBinding) ID() string
- func (o *RoleBinding) Kind() string
- func (o *RoleBinding) Link() bool
- func (o *RoleBinding) Organization() *Organization
- func (o *RoleBinding) Role() *Role
- func (o *RoleBinding) Subscription() *Subscription
- func (o *RoleBinding) Type() string
- type RoleBindingBuilder
- func (b *RoleBindingBuilder) Account(value *AccountBuilder) *RoleBindingBuilder
- func (b *RoleBindingBuilder) Build() (object *RoleBinding, err error)
- func (b *RoleBindingBuilder) HREF(value string) *RoleBindingBuilder
- func (b *RoleBindingBuilder) ID(value string) *RoleBindingBuilder
- func (b *RoleBindingBuilder) Link(value bool) *RoleBindingBuilder
- func (b *RoleBindingBuilder) Organization(value *OrganizationBuilder) *RoleBindingBuilder
- func (b *RoleBindingBuilder) Role(value *RoleBuilder) *RoleBindingBuilder
- func (b *RoleBindingBuilder) Subscription(value *SubscriptionBuilder) *RoleBindingBuilder
- func (b *RoleBindingBuilder) Type(value string) *RoleBindingBuilder
- type RoleBindingClient
- type RoleBindingDeleteRequest
- func (r *RoleBindingDeleteRequest) Header(name string, value interface{}) *RoleBindingDeleteRequest
- func (r *RoleBindingDeleteRequest) Parameter(name string, value interface{}) *RoleBindingDeleteRequest
- func (r *RoleBindingDeleteRequest) Send() (result *RoleBindingDeleteResponse, err error)
- func (r *RoleBindingDeleteRequest) SendContext(ctx context.Context) (result *RoleBindingDeleteResponse, err error)
- type RoleBindingDeleteResponse
- type RoleBindingDeleteServerRequest
- type RoleBindingDeleteServerResponse
- type RoleBindingGetRequest
- func (r *RoleBindingGetRequest) Header(name string, value interface{}) *RoleBindingGetRequest
- func (r *RoleBindingGetRequest) Parameter(name string, value interface{}) *RoleBindingGetRequest
- func (r *RoleBindingGetRequest) Send() (result *RoleBindingGetResponse, err error)
- func (r *RoleBindingGetRequest) SendContext(ctx context.Context) (result *RoleBindingGetResponse, err error)
- type RoleBindingGetResponse
- type RoleBindingGetServerRequest
- type RoleBindingGetServerResponse
- type RoleBindingList
- func (l *RoleBindingList) Each(f func(item *RoleBinding) bool)
- func (l *RoleBindingList) Empty() bool
- func (l *RoleBindingList) Get(i int) *RoleBinding
- func (l *RoleBindingList) GetHREF() (value string, ok bool)
- func (l *RoleBindingList) HREF() string
- func (l *RoleBindingList) Kind() string
- func (l *RoleBindingList) Len() int
- func (l *RoleBindingList) Link() bool
- func (l *RoleBindingList) Range(f func(index int, item *RoleBinding) bool)
- func (l *RoleBindingList) Slice() []*RoleBinding
- type RoleBindingListBuilder
- type RoleBindingServer
- type RoleBindingServerAdapter
- type RoleBindingsAddRequest
- func (r *RoleBindingsAddRequest) Body(value *RoleBinding) *RoleBindingsAddRequest
- func (r *RoleBindingsAddRequest) Header(name string, value interface{}) *RoleBindingsAddRequest
- func (r *RoleBindingsAddRequest) Parameter(name string, value interface{}) *RoleBindingsAddRequest
- func (r *RoleBindingsAddRequest) Send() (result *RoleBindingsAddResponse, err error)
- func (r *RoleBindingsAddRequest) SendContext(ctx context.Context) (result *RoleBindingsAddResponse, err error)
- type RoleBindingsAddResponse
- type RoleBindingsAddServerRequest
- type RoleBindingsAddServerResponse
- type RoleBindingsClient
- type RoleBindingsListRequest
- func (r *RoleBindingsListRequest) Header(name string, value interface{}) *RoleBindingsListRequest
- func (r *RoleBindingsListRequest) Page(value int) *RoleBindingsListRequest
- func (r *RoleBindingsListRequest) Parameter(name string, value interface{}) *RoleBindingsListRequest
- func (r *RoleBindingsListRequest) Send() (result *RoleBindingsListResponse, err error)
- func (r *RoleBindingsListRequest) SendContext(ctx context.Context) (result *RoleBindingsListResponse, err error)
- func (r *RoleBindingsListRequest) Size(value int) *RoleBindingsListRequest
- func (r *RoleBindingsListRequest) Total(value int) *RoleBindingsListRequest
- type RoleBindingsListResponse
- func (r *RoleBindingsListResponse) Error() *errors.Error
- func (r *RoleBindingsListResponse) GetItems() (value *RoleBindingList, ok bool)
- func (r *RoleBindingsListResponse) GetPage() (value int, ok bool)
- func (r *RoleBindingsListResponse) GetSize() (value int, ok bool)
- func (r *RoleBindingsListResponse) GetTotal() (value int, ok bool)
- func (r *RoleBindingsListResponse) Header() http.Header
- func (r *RoleBindingsListResponse) Items() *RoleBindingList
- func (r *RoleBindingsListResponse) Page() int
- func (r *RoleBindingsListResponse) Size() int
- func (r *RoleBindingsListResponse) Status() int
- func (r *RoleBindingsListResponse) Total() int
- type RoleBindingsListServerRequest
- func (r *RoleBindingsListServerRequest) GetPage() (value int, ok bool)
- func (r *RoleBindingsListServerRequest) GetSize() (value int, ok bool)
- func (r *RoleBindingsListServerRequest) GetTotal() (value int, ok bool)
- func (r *RoleBindingsListServerRequest) Page() int
- func (r *RoleBindingsListServerRequest) Size() int
- func (r *RoleBindingsListServerRequest) Total() int
- type RoleBindingsListServerResponse
- func (r *RoleBindingsListServerResponse) Items(value *RoleBindingList) *RoleBindingsListServerResponse
- func (r *RoleBindingsListServerResponse) Page(value int) *RoleBindingsListServerResponse
- func (r *RoleBindingsListServerResponse) SetStatusCode(status int) *RoleBindingsListServerResponse
- func (r *RoleBindingsListServerResponse) Size(value int) *RoleBindingsListServerResponse
- func (r *RoleBindingsListServerResponse) Total(value int) *RoleBindingsListServerResponse
- type RoleBindingsServer
- type RoleBindingsServerAdapter
- type RoleBuilder
- func (b *RoleBuilder) Build() (object *Role, err error)
- func (b *RoleBuilder) HREF(value string) *RoleBuilder
- func (b *RoleBuilder) ID(value string) *RoleBuilder
- func (b *RoleBuilder) Link(value bool) *RoleBuilder
- func (b *RoleBuilder) Name(value string) *RoleBuilder
- func (b *RoleBuilder) Permissions(values ...*PermissionBuilder) *RoleBuilder
- type RoleClient
- type RoleDeleteRequest
- func (r *RoleDeleteRequest) Header(name string, value interface{}) *RoleDeleteRequest
- func (r *RoleDeleteRequest) Parameter(name string, value interface{}) *RoleDeleteRequest
- func (r *RoleDeleteRequest) Send() (result *RoleDeleteResponse, err error)
- func (r *RoleDeleteRequest) SendContext(ctx context.Context) (result *RoleDeleteResponse, err error)
- type RoleDeleteResponse
- type RoleDeleteServerRequest
- type RoleDeleteServerResponse
- type RoleGetRequest
- func (r *RoleGetRequest) Header(name string, value interface{}) *RoleGetRequest
- func (r *RoleGetRequest) Parameter(name string, value interface{}) *RoleGetRequest
- func (r *RoleGetRequest) Send() (result *RoleGetResponse, err error)
- func (r *RoleGetRequest) SendContext(ctx context.Context) (result *RoleGetResponse, err error)
- type RoleGetResponse
- type RoleGetServerRequest
- type RoleGetServerResponse
- type RoleList
- func (l *RoleList) Each(f func(item *Role) bool)
- func (l *RoleList) Empty() bool
- func (l *RoleList) Get(i int) *Role
- func (l *RoleList) GetHREF() (value string, ok bool)
- func (l *RoleList) HREF() string
- func (l *RoleList) Kind() string
- func (l *RoleList) Len() int
- func (l *RoleList) Link() bool
- func (l *RoleList) Range(f func(index int, item *Role) bool)
- func (l *RoleList) Slice() []*Role
- type RoleListBuilder
- type RoleServer
- type RoleServerAdapter
- type RoleUpdateRequest
- func (r *RoleUpdateRequest) Body(value *Role) *RoleUpdateRequest
- func (r *RoleUpdateRequest) Header(name string, value interface{}) *RoleUpdateRequest
- func (r *RoleUpdateRequest) Parameter(name string, value interface{}) *RoleUpdateRequest
- func (r *RoleUpdateRequest) Send() (result *RoleUpdateResponse, err error)
- func (r *RoleUpdateRequest) SendContext(ctx context.Context) (result *RoleUpdateResponse, err error)
- type RoleUpdateResponse
- type RoleUpdateServerRequest
- type RoleUpdateServerResponse
- type RolesAddRequest
- func (r *RolesAddRequest) Body(value *Role) *RolesAddRequest
- func (r *RolesAddRequest) Header(name string, value interface{}) *RolesAddRequest
- func (r *RolesAddRequest) Parameter(name string, value interface{}) *RolesAddRequest
- func (r *RolesAddRequest) Send() (result *RolesAddResponse, err error)
- func (r *RolesAddRequest) SendContext(ctx context.Context) (result *RolesAddResponse, err error)
- type RolesAddResponse
- type RolesAddServerRequest
- type RolesAddServerResponse
- type RolesClient
- type RolesListRequest
- func (r *RolesListRequest) Header(name string, value interface{}) *RolesListRequest
- func (r *RolesListRequest) Page(value int) *RolesListRequest
- func (r *RolesListRequest) Parameter(name string, value interface{}) *RolesListRequest
- func (r *RolesListRequest) Send() (result *RolesListResponse, err error)
- func (r *RolesListRequest) SendContext(ctx context.Context) (result *RolesListResponse, err error)
- func (r *RolesListRequest) Size(value int) *RolesListRequest
- func (r *RolesListRequest) Total(value int) *RolesListRequest
- type RolesListResponse
- func (r *RolesListResponse) Error() *errors.Error
- func (r *RolesListResponse) GetItems() (value *RoleList, ok bool)
- func (r *RolesListResponse) GetPage() (value int, ok bool)
- func (r *RolesListResponse) GetSize() (value int, ok bool)
- func (r *RolesListResponse) GetTotal() (value int, ok bool)
- func (r *RolesListResponse) Header() http.Header
- func (r *RolesListResponse) Items() *RoleList
- func (r *RolesListResponse) Page() int
- func (r *RolesListResponse) Size() int
- func (r *RolesListResponse) Status() int
- func (r *RolesListResponse) Total() int
- type RolesListServerRequest
- func (r *RolesListServerRequest) GetPage() (value int, ok bool)
- func (r *RolesListServerRequest) GetSize() (value int, ok bool)
- func (r *RolesListServerRequest) GetTotal() (value int, ok bool)
- func (r *RolesListServerRequest) Page() int
- func (r *RolesListServerRequest) Size() int
- func (r *RolesListServerRequest) Total() int
- type RolesListServerResponse
- func (r *RolesListServerResponse) Items(value *RoleList) *RolesListServerResponse
- func (r *RolesListServerResponse) Page(value int) *RolesListServerResponse
- func (r *RolesListServerResponse) SetStatusCode(status int) *RolesListServerResponse
- func (r *RolesListServerResponse) Size(value int) *RolesListServerResponse
- func (r *RolesListServerResponse) Total(value int) *RolesListServerResponse
- type RolesServer
- type RolesServerAdapter
- type RootClient
- func (c *RootClient) AccessToken() *AccessTokenClient
- func (c *RootClient) Accounts() *AccountsClient
- func (c *RootClient) ClusterAuthorizations() *ClusterAuthorizationsClient
- func (c *RootClient) ClusterRegistrations() *ClusterRegistrationsClient
- func (c *RootClient) CurrentAccount() *CurrentAccountClient
- func (c *RootClient) Organizations() *OrganizationsClient
- func (c *RootClient) Permissions() *PermissionsClient
- func (c *RootClient) Registries() *RegistriesClient
- func (c *RootClient) RegistryCredentials() *RegistryCredentialsClient
- func (c *RootClient) RoleBindings() *RoleBindingsClient
- func (c *RootClient) Roles() *RolesClient
- func (c *RootClient) Subscriptions() *SubscriptionsClient
- type RootServer
- type RootServerAdapter
- type Subscription
- func (o *Subscription) ClusterID() string
- func (o *Subscription) Creator() *Account
- func (o *Subscription) Empty() bool
- func (o *Subscription) ExternalClusterID() string
- func (o *Subscription) GetClusterID() (value string, ok bool)
- func (o *Subscription) GetCreator() (value *Account, ok bool)
- func (o *Subscription) GetExternalClusterID() (value string, ok bool)
- func (o *Subscription) GetHREF() (value string, ok bool)
- func (o *Subscription) GetID() (value string, ok bool)
- func (o *Subscription) GetLastTelemetryDate() (value time.Time, ok bool)
- func (o *Subscription) GetOrganizationID() (value string, ok bool)
- func (o *Subscription) GetPlan() (value *Plan, ok bool)
- func (o *Subscription) GetRegistryCredential() (value *RegistryCredential, ok bool)
- func (o *Subscription) HREF() string
- func (o *Subscription) ID() string
- func (o *Subscription) Kind() string
- func (o *Subscription) LastTelemetryDate() time.Time
- func (o *Subscription) Link() bool
- func (o *Subscription) OrganizationID() string
- func (o *Subscription) Plan() *Plan
- func (o *Subscription) RegistryCredential() *RegistryCredential
- type SubscriptionBuilder
- func (b *SubscriptionBuilder) Build() (object *Subscription, err error)
- func (b *SubscriptionBuilder) ClusterID(value string) *SubscriptionBuilder
- func (b *SubscriptionBuilder) Creator(value *AccountBuilder) *SubscriptionBuilder
- func (b *SubscriptionBuilder) ExternalClusterID(value string) *SubscriptionBuilder
- func (b *SubscriptionBuilder) HREF(value string) *SubscriptionBuilder
- func (b *SubscriptionBuilder) ID(value string) *SubscriptionBuilder
- func (b *SubscriptionBuilder) LastTelemetryDate(value time.Time) *SubscriptionBuilder
- func (b *SubscriptionBuilder) Link(value bool) *SubscriptionBuilder
- func (b *SubscriptionBuilder) OrganizationID(value string) *SubscriptionBuilder
- func (b *SubscriptionBuilder) Plan(value *PlanBuilder) *SubscriptionBuilder
- func (b *SubscriptionBuilder) RegistryCredential(value *RegistryCredentialBuilder) *SubscriptionBuilder
- type SubscriptionClient
- type SubscriptionDeleteRequest
- func (r *SubscriptionDeleteRequest) Header(name string, value interface{}) *SubscriptionDeleteRequest
- func (r *SubscriptionDeleteRequest) Parameter(name string, value interface{}) *SubscriptionDeleteRequest
- func (r *SubscriptionDeleteRequest) Send() (result *SubscriptionDeleteResponse, err error)
- func (r *SubscriptionDeleteRequest) SendContext(ctx context.Context) (result *SubscriptionDeleteResponse, err error)
- type SubscriptionDeleteResponse
- type SubscriptionDeleteServerRequest
- type SubscriptionDeleteServerResponse
- type SubscriptionGetRequest
- func (r *SubscriptionGetRequest) Header(name string, value interface{}) *SubscriptionGetRequest
- func (r *SubscriptionGetRequest) Parameter(name string, value interface{}) *SubscriptionGetRequest
- func (r *SubscriptionGetRequest) Send() (result *SubscriptionGetResponse, err error)
- func (r *SubscriptionGetRequest) SendContext(ctx context.Context) (result *SubscriptionGetResponse, err error)
- type SubscriptionGetResponse
- type SubscriptionGetServerRequest
- type SubscriptionGetServerResponse
- type SubscriptionList
- func (l *SubscriptionList) Each(f func(item *Subscription) bool)
- func (l *SubscriptionList) Empty() bool
- func (l *SubscriptionList) Get(i int) *Subscription
- func (l *SubscriptionList) GetHREF() (value string, ok bool)
- func (l *SubscriptionList) HREF() string
- func (l *SubscriptionList) Kind() string
- func (l *SubscriptionList) Len() int
- func (l *SubscriptionList) Link() bool
- func (l *SubscriptionList) Range(f func(index int, item *Subscription) bool)
- func (l *SubscriptionList) Slice() []*Subscription
- type SubscriptionListBuilder
- type SubscriptionServer
- type SubscriptionServerAdapter
- type SubscriptionsClient
- type SubscriptionsListRequest
- func (r *SubscriptionsListRequest) Header(name string, value interface{}) *SubscriptionsListRequest
- func (r *SubscriptionsListRequest) Page(value int) *SubscriptionsListRequest
- func (r *SubscriptionsListRequest) Parameter(name string, value interface{}) *SubscriptionsListRequest
- func (r *SubscriptionsListRequest) Send() (result *SubscriptionsListResponse, err error)
- func (r *SubscriptionsListRequest) SendContext(ctx context.Context) (result *SubscriptionsListResponse, err error)
- func (r *SubscriptionsListRequest) Size(value int) *SubscriptionsListRequest
- func (r *SubscriptionsListRequest) Total(value int) *SubscriptionsListRequest
- type SubscriptionsListResponse
- func (r *SubscriptionsListResponse) Error() *errors.Error
- func (r *SubscriptionsListResponse) GetItems() (value *SubscriptionList, ok bool)
- func (r *SubscriptionsListResponse) GetPage() (value int, ok bool)
- func (r *SubscriptionsListResponse) GetSize() (value int, ok bool)
- func (r *SubscriptionsListResponse) GetTotal() (value int, ok bool)
- func (r *SubscriptionsListResponse) Header() http.Header
- func (r *SubscriptionsListResponse) Items() *SubscriptionList
- func (r *SubscriptionsListResponse) Page() int
- func (r *SubscriptionsListResponse) Size() int
- func (r *SubscriptionsListResponse) Status() int
- func (r *SubscriptionsListResponse) Total() int
- type SubscriptionsListServerRequest
- func (r *SubscriptionsListServerRequest) GetPage() (value int, ok bool)
- func (r *SubscriptionsListServerRequest) GetSize() (value int, ok bool)
- func (r *SubscriptionsListServerRequest) GetTotal() (value int, ok bool)
- func (r *SubscriptionsListServerRequest) Page() int
- func (r *SubscriptionsListServerRequest) Size() int
- func (r *SubscriptionsListServerRequest) Total() int
- type SubscriptionsListServerResponse
- func (r *SubscriptionsListServerResponse) Items(value *SubscriptionList) *SubscriptionsListServerResponse
- func (r *SubscriptionsListServerResponse) Page(value int) *SubscriptionsListServerResponse
- func (r *SubscriptionsListServerResponse) SetStatusCode(status int) *SubscriptionsListServerResponse
- func (r *SubscriptionsListServerResponse) Size(value int) *SubscriptionsListServerResponse
- func (r *SubscriptionsListServerResponse) Total(value int) *SubscriptionsListServerResponse
- type SubscriptionsServer
- type SubscriptionsServerAdapter
Constants ¶
const AccountKind = "Account"
AccountKind is the name of the type used to represent objects of type 'account'.
const AccountLinkKind = "AccountLink"
AccountLinkKind is the name of the type used to represent links to objects of type 'account'.
const AccountListKind = "AccountList"
AccountListKind is the name of the type used to represent list of objects of type 'account'.
const AccountListLinkKind = "AccountListLink"
AccountListLinkKind is the name of the type used to represent links to list of objects of type 'account'.
const AccountListNilKind = "AccountListNil"
AccountNilKind is the name of the type used to nil lists of objects of type 'account'.
const AccountNilKind = "AccountNil"
AccountNilKind is the name of the type used to nil references to objects of type 'account'.
const OrganizationKind = "Organization"
OrganizationKind is the name of the type used to represent objects of type 'organization'.
const OrganizationLinkKind = "OrganizationLink"
OrganizationLinkKind is the name of the type used to represent links to objects of type 'organization'.
const OrganizationListKind = "OrganizationList"
OrganizationListKind is the name of the type used to represent list of objects of type 'organization'.
const OrganizationListLinkKind = "OrganizationListLink"
OrganizationListLinkKind is the name of the type used to represent links to list of objects of type 'organization'.
const OrganizationListNilKind = "OrganizationListNil"
OrganizationNilKind is the name of the type used to nil lists of objects of type 'organization'.
const OrganizationNilKind = "OrganizationNil"
OrganizationNilKind is the name of the type used to nil references to objects of type 'organization'.
const PermissionKind = "Permission"
PermissionKind is the name of the type used to represent objects of type 'permission'.
const PermissionLinkKind = "PermissionLink"
PermissionLinkKind is the name of the type used to represent links to objects of type 'permission'.
const PermissionListKind = "PermissionList"
PermissionListKind is the name of the type used to represent list of objects of type 'permission'.
const PermissionListLinkKind = "PermissionListLink"
PermissionListLinkKind is the name of the type used to represent links to list of objects of type 'permission'.
const PermissionListNilKind = "PermissionListNil"
PermissionNilKind is the name of the type used to nil lists of objects of type 'permission'.
const PermissionNilKind = "PermissionNil"
PermissionNilKind is the name of the type used to nil references to objects of type 'permission'.
const PlanKind = "Plan"
PlanKind is the name of the type used to represent objects of type 'plan'.
const PlanLinkKind = "PlanLink"
PlanLinkKind is the name of the type used to represent links to objects of type 'plan'.
const PlanListKind = "PlanList"
PlanListKind is the name of the type used to represent list of objects of type 'plan'.
const PlanListLinkKind = "PlanListLink"
PlanListLinkKind is the name of the type used to represent links to list of objects of type 'plan'.
const PlanListNilKind = "PlanListNil"
PlanNilKind is the name of the type used to nil lists of objects of type 'plan'.
const PlanNilKind = "PlanNil"
PlanNilKind is the name of the type used to nil references to objects of type 'plan'.
const RegistryCredentialKind = "RegistryCredential"
RegistryCredentialKind is the name of the type used to represent objects of type 'registry_credential'.
const RegistryCredentialLinkKind = "RegistryCredentialLink"
RegistryCredentialLinkKind is the name of the type used to represent links to objects of type 'registry_credential'.
const RegistryCredentialListKind = "RegistryCredentialList"
RegistryCredentialListKind is the name of the type used to represent list of objects of type 'registry_credential'.
const RegistryCredentialListLinkKind = "RegistryCredentialListLink"
RegistryCredentialListLinkKind is the name of the type used to represent links to list of objects of type 'registry_credential'.
const RegistryCredentialListNilKind = "RegistryCredentialListNil"
RegistryCredentialNilKind is the name of the type used to nil lists of objects of type 'registry_credential'.
const RegistryCredentialNilKind = "RegistryCredentialNil"
RegistryCredentialNilKind is the name of the type used to nil references to objects of type 'registry_credential'.
const RegistryKind = "Registry"
RegistryKind is the name of the type used to represent objects of type 'registry'.
const RegistryLinkKind = "RegistryLink"
RegistryLinkKind is the name of the type used to represent links to objects of type 'registry'.
const RegistryListKind = "RegistryList"
RegistryListKind is the name of the type used to represent list of objects of type 'registry'.
const RegistryListLinkKind = "RegistryListLink"
RegistryListLinkKind is the name of the type used to represent links to list of objects of type 'registry'.
const RegistryListNilKind = "RegistryListNil"
RegistryNilKind is the name of the type used to nil lists of objects of type 'registry'.
const RegistryNilKind = "RegistryNil"
RegistryNilKind is the name of the type used to nil references to objects of type 'registry'.
const ResourceQuotaKind = "ResourceQuota"
ResourceQuotaKind is the name of the type used to represent objects of type 'resource_quota'.
const ResourceQuotaLinkKind = "ResourceQuotaLink"
ResourceQuotaLinkKind is the name of the type used to represent links to objects of type 'resource_quota'.
const ResourceQuotaListKind = "ResourceQuotaList"
ResourceQuotaListKind is the name of the type used to represent list of objects of type 'resource_quota'.
const ResourceQuotaListLinkKind = "ResourceQuotaListLink"
ResourceQuotaListLinkKind is the name of the type used to represent links to list of objects of type 'resource_quota'.
const ResourceQuotaListNilKind = "ResourceQuotaListNil"
ResourceQuotaNilKind is the name of the type used to nil lists of objects of type 'resource_quota'.
const ResourceQuotaNilKind = "ResourceQuotaNil"
ResourceQuotaNilKind is the name of the type used to nil references to objects of type 'resource_quota'.
const RoleBindingKind = "RoleBinding"
RoleBindingKind is the name of the type used to represent objects of type 'role_binding'.
const RoleBindingLinkKind = "RoleBindingLink"
RoleBindingLinkKind is the name of the type used to represent links to objects of type 'role_binding'.
const RoleBindingListKind = "RoleBindingList"
RoleBindingListKind is the name of the type used to represent list of objects of type 'role_binding'.
const RoleBindingListLinkKind = "RoleBindingListLink"
RoleBindingListLinkKind is the name of the type used to represent links to list of objects of type 'role_binding'.
const RoleBindingListNilKind = "RoleBindingListNil"
RoleBindingNilKind is the name of the type used to nil lists of objects of type 'role_binding'.
const RoleBindingNilKind = "RoleBindingNil"
RoleBindingNilKind is the name of the type used to nil references to objects of type 'role_binding'.
const RoleKind = "Role"
RoleKind is the name of the type used to represent objects of type 'role'.
const RoleLinkKind = "RoleLink"
RoleLinkKind is the name of the type used to represent links to objects of type 'role'.
const RoleListKind = "RoleList"
RoleListKind is the name of the type used to represent list of objects of type 'role'.
const RoleListLinkKind = "RoleListLink"
RoleListLinkKind is the name of the type used to represent links to list of objects of type 'role'.
const RoleListNilKind = "RoleListNil"
RoleNilKind is the name of the type used to nil lists of objects of type 'role'.
const RoleNilKind = "RoleNil"
RoleNilKind is the name of the type used to nil references to objects of type 'role'.
const SubscriptionKind = "Subscription"
SubscriptionKind is the name of the type used to represent objects of type 'subscription'.
const SubscriptionLinkKind = "SubscriptionLink"
SubscriptionLinkKind is the name of the type used to represent links to objects of type 'subscription'.
const SubscriptionListKind = "SubscriptionList"
SubscriptionListKind is the name of the type used to represent list of objects of type 'subscription'.
const SubscriptionListLinkKind = "SubscriptionListLink"
SubscriptionListLinkKind is the name of the type used to represent links to list of objects of type 'subscription'.
const SubscriptionListNilKind = "SubscriptionListNil"
SubscriptionNilKind is the name of the type used to nil lists of objects of type 'subscription'.
const SubscriptionNilKind = "SubscriptionNil"
SubscriptionNilKind is the name of the type used to nil references to objects of type 'subscription'.
Variables ¶
This section is empty.
Functions ¶
func MarshalAccessToken ¶
func MarshalAccessToken(object *AccessToken, target interface{}) error
MarshalAccessToken writes a value of the 'access_token' to the given target, which can be a writer or a JSON encoder.
func MarshalAccount ¶
MarshalAccount writes a value of the 'account' to the given target, which can be a writer or a JSON encoder.
func MarshalClusterAuthorizationRequest ¶
func MarshalClusterAuthorizationRequest(object *ClusterAuthorizationRequest, target interface{}) error
MarshalClusterAuthorizationRequest writes a value of the 'cluster_authorization_request' to the given target, which can be a writer or a JSON encoder.
func MarshalClusterAuthorizationResponse ¶
func MarshalClusterAuthorizationResponse(object *ClusterAuthorizationResponse, target interface{}) error
MarshalClusterAuthorizationResponse writes a value of the 'cluster_authorization_response' to the given target, which can be a writer or a JSON encoder.
func MarshalClusterRegistrationRequest ¶
func MarshalClusterRegistrationRequest(object *ClusterRegistrationRequest, target interface{}) error
MarshalClusterRegistrationRequest writes a value of the 'cluster_registration_request' to the given target, which can be a writer or a JSON encoder.
func MarshalClusterRegistrationResponse ¶
func MarshalClusterRegistrationResponse(object *ClusterRegistrationResponse, target interface{}) error
MarshalClusterRegistrationResponse writes a value of the 'cluster_registration_response' to the given target, which can be a writer or a JSON encoder.
func MarshalOrganization ¶
func MarshalOrganization(object *Organization, target interface{}) error
MarshalOrganization writes a value of the 'organization' to the given target, which can be a writer or a JSON encoder.
func MarshalPermission ¶
func MarshalPermission(object *Permission, target interface{}) error
MarshalPermission writes a value of the 'permission' to the given target, which can be a writer or a JSON encoder.
func MarshalPlan ¶
MarshalPlan writes a value of the 'plan' to the given target, which can be a writer or a JSON encoder.
func MarshalQuotaSummary ¶ added in v0.1.26
func MarshalQuotaSummary(object *QuotaSummary, target interface{}) error
MarshalQuotaSummary writes a value of the 'quota_summary' to the given target, which can be a writer or a JSON encoder.
func MarshalRegistry ¶
MarshalRegistry writes a value of the 'registry' to the given target, which can be a writer or a JSON encoder.
func MarshalRegistryCredential ¶
func MarshalRegistryCredential(object *RegistryCredential, target interface{}) error
MarshalRegistryCredential writes a value of the 'registry_credential' to the given target, which can be a writer or a JSON encoder.
func MarshalReservedResource ¶
func MarshalReservedResource(object *ReservedResource, target interface{}) error
MarshalReservedResource writes a value of the 'reserved_resource' to the given target, which can be a writer or a JSON encoder.
func MarshalResourceQuota ¶
func MarshalResourceQuota(object *ResourceQuota, target interface{}) error
MarshalResourceQuota writes a value of the 'resource_quota' to the given target, which can be a writer or a JSON encoder.
func MarshalRole ¶
MarshalRole writes a value of the 'role' to the given target, which can be a writer or a JSON encoder.
func MarshalRoleBinding ¶
func MarshalRoleBinding(object *RoleBinding, target interface{}) error
MarshalRoleBinding writes a value of the 'role_binding' to the given target, which can be a writer or a JSON encoder.
func MarshalSubscription ¶
func MarshalSubscription(object *Subscription, target interface{}) error
MarshalSubscription writes a value of the 'subscription' to the given target, which can be a writer or a JSON encoder.
Types ¶
type AccessToken ¶
type AccessToken struct { }
AccessToken represents the values of the 'access_token' type.
func UnmarshalAccessToken ¶
func UnmarshalAccessToken(source interface{}) (object *AccessToken, err error)
UnmarshalAccessToken reads a value of the 'access_token' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*AccessToken) Empty ¶ added in v0.1.8
func (o *AccessToken) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
type AccessTokenBuilder ¶
type AccessTokenBuilder struct { }
AccessTokenBuilder contains the data and logic needed to build 'access_token' objects.
func NewAccessToken ¶
func NewAccessToken() *AccessTokenBuilder
NewAccessToken creates a new builder of 'access_token' objects.
func (*AccessTokenBuilder) Build ¶
func (b *AccessTokenBuilder) Build() (object *AccessToken, err error)
Build creates a 'access_token' object using the configuration stored in the builder.
type AccessTokenClient ¶
type AccessTokenClient struct {
// contains filtered or unexported fields
}
AccessTokenClient is the client of the 'access_token' resource.
Manages access tokens.
func NewAccessTokenClient ¶
func NewAccessTokenClient(transport http.RoundTripper, path string, metric string) *AccessTokenClient
NewAccessTokenClient creates a new client for the 'access_token' resource using the given transport to sned the requests and receive the responses.
func (*AccessTokenClient) Post ¶
func (c *AccessTokenClient) Post() *AccessTokenPostRequest
Post creates a request for the 'post' method.
Returns access token generated from registries in docker format.
type AccessTokenList ¶
type AccessTokenList struct {
// contains filtered or unexported fields
}
AccessTokenList is a list of values of the 'access_token' type.
func UnmarshalAccessTokenList ¶
func UnmarshalAccessTokenList(source interface{}) (list *AccessTokenList, err error)
UnmarshalAccessTokenList reads a list of values of the 'access_token' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*AccessTokenList) Each ¶
func (l *AccessTokenList) Each(f func(item *AccessToken) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*AccessTokenList) Empty ¶ added in v0.1.8
func (l *AccessTokenList) Empty() bool
Empty returns true if the list is empty.
func (*AccessTokenList) Get ¶ added in v0.1.17
func (l *AccessTokenList) Get(i int) *AccessToken
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*AccessTokenList) Len ¶
func (l *AccessTokenList) Len() int
Len returns the length of the list.
func (*AccessTokenList) Range ¶
func (l *AccessTokenList) Range(f func(index int, item *AccessToken) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*AccessTokenList) Slice ¶
func (l *AccessTokenList) Slice() []*AccessToken
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type AccessTokenListBuilder ¶
type AccessTokenListBuilder struct {
// contains filtered or unexported fields
}
AccessTokenListBuilder contains the data and logic needed to build 'access_token' objects.
func NewAccessTokenList ¶
func NewAccessTokenList() *AccessTokenListBuilder
NewAccessTokenList creates a new builder of 'access_token' objects.
func (*AccessTokenListBuilder) Build ¶
func (b *AccessTokenListBuilder) Build() (list *AccessTokenList, err error)
Build creates a list of 'access_token' objects using the configuration stored in the builder.
func (*AccessTokenListBuilder) Items ¶
func (b *AccessTokenListBuilder) Items(values ...*AccessTokenBuilder) *AccessTokenListBuilder
Items sets the items of the list.
type AccessTokenPostRequest ¶
type AccessTokenPostRequest struct {
// contains filtered or unexported fields
}
AccessTokenPostRequest is the request for the 'post' method.
func (*AccessTokenPostRequest) Header ¶
func (r *AccessTokenPostRequest) Header(name string, value interface{}) *AccessTokenPostRequest
Header adds a request header.
func (*AccessTokenPostRequest) Parameter ¶
func (r *AccessTokenPostRequest) Parameter(name string, value interface{}) *AccessTokenPostRequest
Parameter adds a query parameter.
func (*AccessTokenPostRequest) Send ¶
func (r *AccessTokenPostRequest) Send() (result *AccessTokenPostResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AccessTokenPostRequest) SendContext ¶ added in v0.1.10
func (r *AccessTokenPostRequest) SendContext(ctx context.Context) (result *AccessTokenPostResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type AccessTokenPostResponse ¶
type AccessTokenPostResponse struct {
// contains filtered or unexported fields
}
AccessTokenPostResponse is the response for the 'post' method.
func (*AccessTokenPostResponse) Body ¶
func (r *AccessTokenPostResponse) Body() *AccessToken
Body returns the value of the 'body' parameter.
func (*AccessTokenPostResponse) Error ¶
func (r *AccessTokenPostResponse) Error() *errors.Error
Error returns the response error.
func (*AccessTokenPostResponse) GetBody ¶ added in v0.1.16
func (r *AccessTokenPostResponse) GetBody() (value *AccessToken, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*AccessTokenPostResponse) Header ¶
func (r *AccessTokenPostResponse) Header() http.Header
Header returns header of the response.
func (*AccessTokenPostResponse) Status ¶
func (r *AccessTokenPostResponse) Status() int
Status returns the response status code.
type AccessTokenPostServerRequest ¶ added in v0.1.27
type AccessTokenPostServerRequest struct {
// contains filtered or unexported fields
}
AccessTokenPostServerRequest is the request for the 'post' method.
type AccessTokenPostServerResponse ¶ added in v0.1.27
type AccessTokenPostServerResponse struct {
// contains filtered or unexported fields
}
AccessTokenPostServerResponse is the response for the 'post' method.
func (*AccessTokenPostServerResponse) Body ¶ added in v0.1.27
func (r *AccessTokenPostServerResponse) Body(value *AccessToken) *AccessTokenPostServerResponse
Body sets the value of the 'body' parameter.
func (*AccessTokenPostServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *AccessTokenPostServerResponse) SetStatusCode(status int) *AccessTokenPostServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type AccessTokenServer ¶ added in v0.1.27
type AccessTokenServer interface { // Post handles a request for the 'post' method. // // Returns access token generated from registries in docker format. Post(ctx context.Context, request *AccessTokenPostServerRequest, response *AccessTokenPostServerResponse) error }
AccessTokenServer represents the interface the manages the 'access_token' resource.
type AccessTokenServerAdapter ¶ added in v0.1.27
type AccessTokenServerAdapter struct {
// contains filtered or unexported fields
}
AccessTokenServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewAccessTokenServerAdapter ¶ added in v0.1.27
func NewAccessTokenServerAdapter(server AccessTokenServer, router *mux.Router) *AccessTokenServerAdapter
func (*AccessTokenServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *AccessTokenServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Account ¶
type Account struct {
// contains filtered or unexported fields
}
Account represents the values of the 'account' type.
func UnmarshalAccount ¶
UnmarshalAccount reads a value of the 'account' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*Account) BanDescription ¶
BanDescription returns the value of the 'ban_description' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Account) Banned ¶
Banned returns the value of the 'banned' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Account) Email ¶
Email returns the value of the 'email' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Account) Empty ¶ added in v0.1.8
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Account) FirstName ¶ added in v0.1.15
FirstName returns the value of the 'first_name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Account) GetBanDescription ¶
GetBanDescription returns the value of the 'ban_description' attribute and a flag indicating if the attribute has a value.
func (*Account) GetBanned ¶
GetBanned returns the value of the 'banned' attribute and a flag indicating if the attribute has a value.
func (*Account) GetEmail ¶
GetEmail returns the value of the 'email' attribute and a flag indicating if the attribute has a value.
func (*Account) GetFirstName ¶ added in v0.1.15
GetFirstName returns the value of the 'first_name' attribute and a flag indicating if the attribute has a value.
func (*Account) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Account) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Account) GetLastName ¶ added in v0.1.15
GetLastName returns the value of the 'last_name' attribute and a flag indicating if the attribute has a value.
func (*Account) GetName ¶
GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.
func (*Account) GetOrganization ¶
func (o *Account) GetOrganization() (value *Organization, ok bool)
GetOrganization returns the value of the 'organization' attribute and a flag indicating if the attribute has a value.
func (*Account) GetUsername ¶
GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.
func (*Account) LastName ¶ added in v0.1.15
LastName returns the value of the 'last_name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Account) Name ¶
Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Account) Organization ¶
func (o *Account) Organization() *Organization
Organization returns the value of the 'organization' attribute, or the zero value of the type if the attribute doesn't have a value.
type AccountBuilder ¶
type AccountBuilder struct {
// contains filtered or unexported fields
}
AccountBuilder contains the data and logic needed to build 'account' objects.
func NewAccount ¶
func NewAccount() *AccountBuilder
NewAccount creates a new builder of 'account' objects.
func (*AccountBuilder) BanDescription ¶
func (b *AccountBuilder) BanDescription(value string) *AccountBuilder
BanDescription sets the value of the 'ban_description' attribute to the given value.
func (*AccountBuilder) Banned ¶
func (b *AccountBuilder) Banned(value bool) *AccountBuilder
Banned sets the value of the 'banned' attribute to the given value.
func (*AccountBuilder) Build ¶
func (b *AccountBuilder) Build() (object *Account, err error)
Build creates a 'account' object using the configuration stored in the builder.
func (*AccountBuilder) Email ¶
func (b *AccountBuilder) Email(value string) *AccountBuilder
Email sets the value of the 'email' attribute to the given value.
func (*AccountBuilder) FirstName ¶ added in v0.1.15
func (b *AccountBuilder) FirstName(value string) *AccountBuilder
FirstName sets the value of the 'first_name' attribute to the given value.
func (*AccountBuilder) HREF ¶
func (b *AccountBuilder) HREF(value string) *AccountBuilder
HREF sets the link to the object.
func (*AccountBuilder) ID ¶
func (b *AccountBuilder) ID(value string) *AccountBuilder
ID sets the identifier of the object.
func (*AccountBuilder) LastName ¶ added in v0.1.15
func (b *AccountBuilder) LastName(value string) *AccountBuilder
LastName sets the value of the 'last_name' attribute to the given value.
func (*AccountBuilder) Link ¶
func (b *AccountBuilder) Link(value bool) *AccountBuilder
Link sets the flag that indicates if this is a link.
func (*AccountBuilder) Name ¶
func (b *AccountBuilder) Name(value string) *AccountBuilder
Name sets the value of the 'name' attribute to the given value.
func (*AccountBuilder) Organization ¶
func (b *AccountBuilder) Organization(value *OrganizationBuilder) *AccountBuilder
Organization sets the value of the 'organization' attribute to the given value.
func (*AccountBuilder) Username ¶
func (b *AccountBuilder) Username(value string) *AccountBuilder
Username sets the value of the 'username' attribute to the given value.
type AccountClient ¶
type AccountClient struct {
// contains filtered or unexported fields
}
AccountClient is the client of the 'account' resource.
Manages a specific account.
func NewAccountClient ¶
func NewAccountClient(transport http.RoundTripper, path string, metric string) *AccountClient
NewAccountClient creates a new client for the 'account' resource using the given transport to sned the requests and receive the responses.
func (*AccountClient) Get ¶
func (c *AccountClient) Get() *AccountGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the account.
func (*AccountClient) Update ¶
func (c *AccountClient) Update() *AccountUpdateRequest
Update creates a request for the 'update' method.
Updates the account.
type AccountGetRequest ¶
type AccountGetRequest struct {
// contains filtered or unexported fields
}
AccountGetRequest is the request for the 'get' method.
func (*AccountGetRequest) Header ¶
func (r *AccountGetRequest) Header(name string, value interface{}) *AccountGetRequest
Header adds a request header.
func (*AccountGetRequest) Parameter ¶
func (r *AccountGetRequest) Parameter(name string, value interface{}) *AccountGetRequest
Parameter adds a query parameter.
func (*AccountGetRequest) Send ¶
func (r *AccountGetRequest) Send() (result *AccountGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AccountGetRequest) SendContext ¶ added in v0.1.10
func (r *AccountGetRequest) SendContext(ctx context.Context) (result *AccountGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type AccountGetResponse ¶
type AccountGetResponse struct {
// contains filtered or unexported fields
}
AccountGetResponse is the response for the 'get' method.
func (*AccountGetResponse) Body ¶
func (r *AccountGetResponse) Body() *Account
Body returns the value of the 'body' parameter.
func (*AccountGetResponse) Error ¶
func (r *AccountGetResponse) Error() *errors.Error
Error returns the response error.
func (*AccountGetResponse) GetBody ¶ added in v0.1.16
func (r *AccountGetResponse) GetBody() (value *Account, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*AccountGetResponse) Header ¶
func (r *AccountGetResponse) Header() http.Header
Header returns header of the response.
func (*AccountGetResponse) Status ¶
func (r *AccountGetResponse) Status() int
Status returns the response status code.
type AccountGetServerRequest ¶ added in v0.1.27
type AccountGetServerRequest struct {
// contains filtered or unexported fields
}
AccountGetServerRequest is the request for the 'get' method.
type AccountGetServerResponse ¶ added in v0.1.27
type AccountGetServerResponse struct {
// contains filtered or unexported fields
}
AccountGetServerResponse is the response for the 'get' method.
func (*AccountGetServerResponse) Body ¶ added in v0.1.27
func (r *AccountGetServerResponse) Body(value *Account) *AccountGetServerResponse
Body sets the value of the 'body' parameter.
func (*AccountGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *AccountGetServerResponse) SetStatusCode(status int) *AccountGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type AccountList ¶
type AccountList struct {
// contains filtered or unexported fields
}
AccountList is a list of values of the 'account' type.
func UnmarshalAccountList ¶
func UnmarshalAccountList(source interface{}) (list *AccountList, err error)
UnmarshalAccountList reads a list of values of the 'account' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*AccountList) Each ¶
func (l *AccountList) Each(f func(item *Account) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*AccountList) Empty ¶ added in v0.1.8
func (l *AccountList) Empty() bool
Empty returns true if the list is empty.
func (*AccountList) Get ¶ added in v0.1.17
func (l *AccountList) Get(i int) *Account
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*AccountList) GetHREF ¶ added in v0.1.7
func (l *AccountList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*AccountList) HREF ¶ added in v0.1.7
func (l *AccountList) HREF() string
HREF returns the link to the list.
func (*AccountList) Kind ¶ added in v0.1.7
func (l *AccountList) Kind() string
Kind returns the name of the type of the object.
func (*AccountList) Link ¶ added in v0.1.7
func (l *AccountList) Link() bool
Link returns true iif this is a link.
func (*AccountList) Range ¶
func (l *AccountList) Range(f func(index int, item *Account) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*AccountList) Slice ¶
func (l *AccountList) Slice() []*Account
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type AccountListBuilder ¶
type AccountListBuilder struct {
// contains filtered or unexported fields
}
AccountListBuilder contains the data and logic needed to build 'account' objects.
func NewAccountList ¶
func NewAccountList() *AccountListBuilder
NewAccountList creates a new builder of 'account' objects.
func (*AccountListBuilder) Build ¶
func (b *AccountListBuilder) Build() (list *AccountList, err error)
Build creates a list of 'account' objects using the configuration stored in the builder.
func (*AccountListBuilder) Items ¶
func (b *AccountListBuilder) Items(values ...*AccountBuilder) *AccountListBuilder
Items sets the items of the list.
type AccountServer ¶ added in v0.1.27
type AccountServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the account. Get(ctx context.Context, request *AccountGetServerRequest, response *AccountGetServerResponse) error // Update handles a request for the 'update' method. // // Updates the account. Update(ctx context.Context, request *AccountUpdateServerRequest, response *AccountUpdateServerResponse) error }
AccountServer represents the interface the manages the 'account' resource.
type AccountServerAdapter ¶ added in v0.1.27
type AccountServerAdapter struct {
// contains filtered or unexported fields
}
AccountServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewAccountServerAdapter ¶ added in v0.1.27
func NewAccountServerAdapter(server AccountServer, router *mux.Router) *AccountServerAdapter
func (*AccountServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *AccountServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type AccountUpdateRequest ¶
type AccountUpdateRequest struct {
// contains filtered or unexported fields
}
AccountUpdateRequest is the request for the 'update' method.
func (*AccountUpdateRequest) Body ¶
func (r *AccountUpdateRequest) Body(value *Account) *AccountUpdateRequest
Body sets the value of the 'body' parameter.
func (*AccountUpdateRequest) Header ¶
func (r *AccountUpdateRequest) Header(name string, value interface{}) *AccountUpdateRequest
Header adds a request header.
func (*AccountUpdateRequest) Parameter ¶
func (r *AccountUpdateRequest) Parameter(name string, value interface{}) *AccountUpdateRequest
Parameter adds a query parameter.
func (*AccountUpdateRequest) Send ¶
func (r *AccountUpdateRequest) Send() (result *AccountUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AccountUpdateRequest) SendContext ¶ added in v0.1.10
func (r *AccountUpdateRequest) SendContext(ctx context.Context) (result *AccountUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type AccountUpdateResponse ¶
type AccountUpdateResponse struct {
// contains filtered or unexported fields
}
AccountUpdateResponse is the response for the 'update' method.
func (*AccountUpdateResponse) Body ¶
func (r *AccountUpdateResponse) Body() *Account
Body returns the value of the 'body' parameter.
func (*AccountUpdateResponse) Error ¶
func (r *AccountUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*AccountUpdateResponse) GetBody ¶ added in v0.1.16
func (r *AccountUpdateResponse) GetBody() (value *Account, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*AccountUpdateResponse) Header ¶
func (r *AccountUpdateResponse) Header() http.Header
Header returns header of the response.
func (*AccountUpdateResponse) Status ¶
func (r *AccountUpdateResponse) Status() int
Status returns the response status code.
type AccountUpdateServerRequest ¶ added in v0.1.27
type AccountUpdateServerRequest struct {
// contains filtered or unexported fields
}
AccountUpdateServerRequest is the request for the 'update' method.
func (*AccountUpdateServerRequest) Body ¶ added in v0.1.27
func (r *AccountUpdateServerRequest) Body() *Account
Body returns the value of the 'body' parameter.
func (*AccountUpdateServerRequest) GetBody ¶ added in v0.1.27
func (r *AccountUpdateServerRequest) GetBody() (value *Account, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
type AccountUpdateServerResponse ¶ added in v0.1.27
type AccountUpdateServerResponse struct {
// contains filtered or unexported fields
}
AccountUpdateServerResponse is the response for the 'update' method.
func (*AccountUpdateServerResponse) Body ¶ added in v0.1.27
func (r *AccountUpdateServerResponse) Body(value *Account) *AccountUpdateServerResponse
Body sets the value of the 'body' parameter.
func (*AccountUpdateServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *AccountUpdateServerResponse) SetStatusCode(status int) *AccountUpdateServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type AccountsAddRequest ¶
type AccountsAddRequest struct {
// contains filtered or unexported fields
}
AccountsAddRequest is the request for the 'add' method.
func (*AccountsAddRequest) Body ¶
func (r *AccountsAddRequest) Body(value *Account) *AccountsAddRequest
Body sets the value of the 'body' parameter.
Account data.
func (*AccountsAddRequest) Header ¶
func (r *AccountsAddRequest) Header(name string, value interface{}) *AccountsAddRequest
Header adds a request header.
func (*AccountsAddRequest) Parameter ¶
func (r *AccountsAddRequest) Parameter(name string, value interface{}) *AccountsAddRequest
Parameter adds a query parameter.
func (*AccountsAddRequest) Send ¶
func (r *AccountsAddRequest) Send() (result *AccountsAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AccountsAddRequest) SendContext ¶ added in v0.1.10
func (r *AccountsAddRequest) SendContext(ctx context.Context) (result *AccountsAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type AccountsAddResponse ¶
type AccountsAddResponse struct {
// contains filtered or unexported fields
}
AccountsAddResponse is the response for the 'add' method.
func (*AccountsAddResponse) Body ¶
func (r *AccountsAddResponse) Body() *Account
Body returns the value of the 'body' parameter.
Account data.
func (*AccountsAddResponse) Error ¶
func (r *AccountsAddResponse) Error() *errors.Error
Error returns the response error.
func (*AccountsAddResponse) GetBody ¶ added in v0.1.16
func (r *AccountsAddResponse) GetBody() (value *Account, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Account data.
func (*AccountsAddResponse) Header ¶
func (r *AccountsAddResponse) Header() http.Header
Header returns header of the response.
func (*AccountsAddResponse) Status ¶
func (r *AccountsAddResponse) Status() int
Status returns the response status code.
type AccountsAddServerRequest ¶ added in v0.1.27
type AccountsAddServerRequest struct {
// contains filtered or unexported fields
}
AccountsAddServerRequest is the request for the 'add' method.
func (*AccountsAddServerRequest) Body ¶ added in v0.1.27
func (r *AccountsAddServerRequest) Body() *Account
Body returns the value of the 'body' parameter.
Account data.
func (*AccountsAddServerRequest) GetBody ¶ added in v0.1.27
func (r *AccountsAddServerRequest) GetBody() (value *Account, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Account data.
type AccountsAddServerResponse ¶ added in v0.1.27
type AccountsAddServerResponse struct {
// contains filtered or unexported fields
}
AccountsAddServerResponse is the response for the 'add' method.
func (*AccountsAddServerResponse) Body ¶ added in v0.1.27
func (r *AccountsAddServerResponse) Body(value *Account) *AccountsAddServerResponse
Body sets the value of the 'body' parameter.
Account data.
func (*AccountsAddServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *AccountsAddServerResponse) SetStatusCode(status int) *AccountsAddServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type AccountsClient ¶
type AccountsClient struct {
// contains filtered or unexported fields
}
AccountsClient is the client of the 'accounts' resource.
Manages the collection of accounts.
func NewAccountsClient ¶
func NewAccountsClient(transport http.RoundTripper, path string, metric string) *AccountsClient
NewAccountsClient creates a new client for the 'accounts' resource using the given transport to sned the requests and receive the responses.
func (*AccountsClient) Account ¶
func (c *AccountsClient) Account(id string) *AccountClient
Account returns the target 'account' resource for the given identifier.
Reference to the service that manages an specific account.
func (*AccountsClient) Add ¶
func (c *AccountsClient) Add() *AccountsAddRequest
Add creates a request for the 'add' method.
Creates a new account.
func (*AccountsClient) List ¶
func (c *AccountsClient) List() *AccountsListRequest
List creates a request for the 'list' method.
Retrieves the list of accounts.
type AccountsListRequest ¶
type AccountsListRequest struct {
// contains filtered or unexported fields
}
AccountsListRequest is the request for the 'list' method.
func (*AccountsListRequest) Header ¶
func (r *AccountsListRequest) Header(name string, value interface{}) *AccountsListRequest
Header adds a request header.
func (*AccountsListRequest) Page ¶
func (r *AccountsListRequest) Page(value int) *AccountsListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*AccountsListRequest) Parameter ¶
func (r *AccountsListRequest) Parameter(name string, value interface{}) *AccountsListRequest
Parameter adds a query parameter.
func (*AccountsListRequest) Send ¶
func (r *AccountsListRequest) Send() (result *AccountsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*AccountsListRequest) SendContext ¶ added in v0.1.10
func (r *AccountsListRequest) SendContext(ctx context.Context) (result *AccountsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*AccountsListRequest) Size ¶
func (r *AccountsListRequest) Size(value int) *AccountsListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*AccountsListRequest) Total ¶
func (r *AccountsListRequest) Total(value int) *AccountsListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type AccountsListResponse ¶
type AccountsListResponse struct {
// contains filtered or unexported fields
}
AccountsListResponse is the response for the 'list' method.
func (*AccountsListResponse) Error ¶
func (r *AccountsListResponse) Error() *errors.Error
Error returns the response error.
func (*AccountsListResponse) GetItems ¶ added in v0.1.16
func (r *AccountsListResponse) GetItems() (value *AccountList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of accounts.
func (*AccountsListResponse) GetPage ¶ added in v0.1.16
func (r *AccountsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*AccountsListResponse) GetSize ¶ added in v0.1.16
func (r *AccountsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*AccountsListResponse) GetTotal ¶ added in v0.1.16
func (r *AccountsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*AccountsListResponse) Header ¶
func (r *AccountsListResponse) Header() http.Header
Header returns header of the response.
func (*AccountsListResponse) Items ¶
func (r *AccountsListResponse) Items() *AccountList
Items returns the value of the 'items' parameter.
Retrieved list of accounts.
func (*AccountsListResponse) Page ¶
func (r *AccountsListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*AccountsListResponse) Size ¶
func (r *AccountsListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*AccountsListResponse) Status ¶
func (r *AccountsListResponse) Status() int
Status returns the response status code.
func (*AccountsListResponse) Total ¶
func (r *AccountsListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type AccountsListServerRequest ¶ added in v0.1.27
type AccountsListServerRequest struct {
// contains filtered or unexported fields
}
AccountsListServerRequest is the request for the 'list' method.
func (*AccountsListServerRequest) GetPage ¶ added in v0.1.27
func (r *AccountsListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*AccountsListServerRequest) GetSize ¶ added in v0.1.27
func (r *AccountsListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*AccountsListServerRequest) GetTotal ¶ added in v0.1.27
func (r *AccountsListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*AccountsListServerRequest) Page ¶ added in v0.1.27
func (r *AccountsListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*AccountsListServerRequest) Size ¶ added in v0.1.27
func (r *AccountsListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*AccountsListServerRequest) Total ¶ added in v0.1.27
func (r *AccountsListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type AccountsListServerResponse ¶ added in v0.1.27
type AccountsListServerResponse struct {
// contains filtered or unexported fields
}
AccountsListServerResponse is the response for the 'list' method.
func (*AccountsListServerResponse) Items ¶ added in v0.1.27
func (r *AccountsListServerResponse) Items(value *AccountList) *AccountsListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of accounts.
func (*AccountsListServerResponse) Page ¶ added in v0.1.27
func (r *AccountsListServerResponse) Page(value int) *AccountsListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*AccountsListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *AccountsListServerResponse) SetStatusCode(status int) *AccountsListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*AccountsListServerResponse) Size ¶ added in v0.1.27
func (r *AccountsListServerResponse) Size(value int) *AccountsListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*AccountsListServerResponse) Total ¶ added in v0.1.27
func (r *AccountsListServerResponse) Total(value int) *AccountsListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type AccountsServer ¶ added in v0.1.27
type AccountsServer interface { // List handles a request for the 'list' method. // // Retrieves the list of accounts. List(ctx context.Context, request *AccountsListServerRequest, response *AccountsListServerResponse) error // Add handles a request for the 'add' method. // // Creates a new account. Add(ctx context.Context, request *AccountsAddServerRequest, response *AccountsAddServerResponse) error // Account returns the target 'account' server for the given identifier. // // Reference to the service that manages an specific account. Account(id string) AccountServer }
AccountsServer represents the interface the manages the 'accounts' resource.
type AccountsServerAdapter ¶ added in v0.1.27
type AccountsServerAdapter struct {
// contains filtered or unexported fields
}
AccountsServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewAccountsServerAdapter ¶ added in v0.1.27
func NewAccountsServerAdapter(server AccountsServer, router *mux.Router) *AccountsServerAdapter
func (*AccountsServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *AccountsServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ClusterAuthorizationRequest ¶
type ClusterAuthorizationRequest struct {
// contains filtered or unexported fields
}
ClusterAuthorizationRequest represents the values of the 'cluster_authorization_request' type.
func UnmarshalClusterAuthorizationRequest ¶
func UnmarshalClusterAuthorizationRequest(source interface{}) (object *ClusterAuthorizationRequest, err error)
UnmarshalClusterAuthorizationRequest reads a value of the 'cluster_authorization_request' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*ClusterAuthorizationRequest) AccountUsername ¶
func (o *ClusterAuthorizationRequest) AccountUsername() string
AccountUsername returns the value of the 'account_username' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterAuthorizationRequest) AvailabilityZone ¶
func (o *ClusterAuthorizationRequest) AvailabilityZone() string
AvailabilityZone returns the value of the 'availability_zone' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterAuthorizationRequest) BYOC ¶
func (o *ClusterAuthorizationRequest) BYOC() bool
BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterAuthorizationRequest) ClusterID ¶
func (o *ClusterAuthorizationRequest) ClusterID() string
ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterAuthorizationRequest) Empty ¶ added in v0.1.8
func (o *ClusterAuthorizationRequest) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*ClusterAuthorizationRequest) GetAccountUsername ¶
func (o *ClusterAuthorizationRequest) GetAccountUsername() (value string, ok bool)
GetAccountUsername returns the value of the 'account_username' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationRequest) GetAvailabilityZone ¶
func (o *ClusterAuthorizationRequest) GetAvailabilityZone() (value string, ok bool)
GetAvailabilityZone returns the value of the 'availability_zone' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationRequest) GetBYOC ¶
func (o *ClusterAuthorizationRequest) GetBYOC() (value bool, ok bool)
GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationRequest) GetClusterID ¶
func (o *ClusterAuthorizationRequest) GetClusterID() (value string, ok bool)
GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationRequest) GetManaged ¶
func (o *ClusterAuthorizationRequest) GetManaged() (value bool, ok bool)
GetManaged returns the value of the 'managed' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationRequest) GetReserve ¶
func (o *ClusterAuthorizationRequest) GetReserve() (value bool, ok bool)
GetReserve returns the value of the 'reserve' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationRequest) GetResources ¶
func (o *ClusterAuthorizationRequest) GetResources() (value *ReservedResourceList, ok bool)
GetResources returns the value of the 'resources' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationRequest) Managed ¶
func (o *ClusterAuthorizationRequest) Managed() bool
Managed returns the value of the 'managed' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterAuthorizationRequest) Reserve ¶
func (o *ClusterAuthorizationRequest) Reserve() bool
Reserve returns the value of the 'reserve' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterAuthorizationRequest) Resources ¶
func (o *ClusterAuthorizationRequest) Resources() *ReservedResourceList
Resources returns the value of the 'resources' attribute, or the zero value of the type if the attribute doesn't have a value.
type ClusterAuthorizationRequestBuilder ¶
type ClusterAuthorizationRequestBuilder struct {
// contains filtered or unexported fields
}
ClusterAuthorizationRequestBuilder contains the data and logic needed to build 'cluster_authorization_request' objects.
func NewClusterAuthorizationRequest ¶
func NewClusterAuthorizationRequest() *ClusterAuthorizationRequestBuilder
NewClusterAuthorizationRequest creates a new builder of 'cluster_authorization_request' objects.
func (*ClusterAuthorizationRequestBuilder) AccountUsername ¶
func (b *ClusterAuthorizationRequestBuilder) AccountUsername(value string) *ClusterAuthorizationRequestBuilder
AccountUsername sets the value of the 'account_username' attribute to the given value.
func (*ClusterAuthorizationRequestBuilder) AvailabilityZone ¶
func (b *ClusterAuthorizationRequestBuilder) AvailabilityZone(value string) *ClusterAuthorizationRequestBuilder
AvailabilityZone sets the value of the 'availability_zone' attribute to the given value.
func (*ClusterAuthorizationRequestBuilder) BYOC ¶
func (b *ClusterAuthorizationRequestBuilder) BYOC(value bool) *ClusterAuthorizationRequestBuilder
BYOC sets the value of the 'BYOC' attribute to the given value.
func (*ClusterAuthorizationRequestBuilder) Build ¶
func (b *ClusterAuthorizationRequestBuilder) Build() (object *ClusterAuthorizationRequest, err error)
Build creates a 'cluster_authorization_request' object using the configuration stored in the builder.
func (*ClusterAuthorizationRequestBuilder) ClusterID ¶
func (b *ClusterAuthorizationRequestBuilder) ClusterID(value string) *ClusterAuthorizationRequestBuilder
ClusterID sets the value of the 'cluster_ID' attribute to the given value.
func (*ClusterAuthorizationRequestBuilder) Managed ¶
func (b *ClusterAuthorizationRequestBuilder) Managed(value bool) *ClusterAuthorizationRequestBuilder
Managed sets the value of the 'managed' attribute to the given value.
func (*ClusterAuthorizationRequestBuilder) Reserve ¶
func (b *ClusterAuthorizationRequestBuilder) Reserve(value bool) *ClusterAuthorizationRequestBuilder
Reserve sets the value of the 'reserve' attribute to the given value.
func (*ClusterAuthorizationRequestBuilder) Resources ¶
func (b *ClusterAuthorizationRequestBuilder) Resources(values ...*ReservedResourceBuilder) *ClusterAuthorizationRequestBuilder
Resources sets the value of the 'resources' attribute to the given values.
type ClusterAuthorizationRequestList ¶
type ClusterAuthorizationRequestList struct {
// contains filtered or unexported fields
}
ClusterAuthorizationRequestList is a list of values of the 'cluster_authorization_request' type.
func UnmarshalClusterAuthorizationRequestList ¶
func UnmarshalClusterAuthorizationRequestList(source interface{}) (list *ClusterAuthorizationRequestList, err error)
UnmarshalClusterAuthorizationRequestList reads a list of values of the 'cluster_authorization_request' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*ClusterAuthorizationRequestList) Each ¶
func (l *ClusterAuthorizationRequestList) Each(f func(item *ClusterAuthorizationRequest) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ClusterAuthorizationRequestList) Empty ¶ added in v0.1.8
func (l *ClusterAuthorizationRequestList) Empty() bool
Empty returns true if the list is empty.
func (*ClusterAuthorizationRequestList) Get ¶ added in v0.1.17
func (l *ClusterAuthorizationRequestList) Get(i int) *ClusterAuthorizationRequest
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*ClusterAuthorizationRequestList) Len ¶
func (l *ClusterAuthorizationRequestList) Len() int
Len returns the length of the list.
func (*ClusterAuthorizationRequestList) Range ¶
func (l *ClusterAuthorizationRequestList) Range(f func(index int, item *ClusterAuthorizationRequest) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ClusterAuthorizationRequestList) Slice ¶
func (l *ClusterAuthorizationRequestList) Slice() []*ClusterAuthorizationRequest
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type ClusterAuthorizationRequestListBuilder ¶
type ClusterAuthorizationRequestListBuilder struct {
// contains filtered or unexported fields
}
ClusterAuthorizationRequestListBuilder contains the data and logic needed to build 'cluster_authorization_request' objects.
func NewClusterAuthorizationRequestList ¶
func NewClusterAuthorizationRequestList() *ClusterAuthorizationRequestListBuilder
NewClusterAuthorizationRequestList creates a new builder of 'cluster_authorization_request' objects.
func (*ClusterAuthorizationRequestListBuilder) Build ¶
func (b *ClusterAuthorizationRequestListBuilder) Build() (list *ClusterAuthorizationRequestList, err error)
Build creates a list of 'cluster_authorization_request' objects using the configuration stored in the builder.
func (*ClusterAuthorizationRequestListBuilder) Items ¶
func (b *ClusterAuthorizationRequestListBuilder) Items(values ...*ClusterAuthorizationRequestBuilder) *ClusterAuthorizationRequestListBuilder
Items sets the items of the list.
type ClusterAuthorizationResponse ¶
type ClusterAuthorizationResponse struct {
// contains filtered or unexported fields
}
ClusterAuthorizationResponse represents the values of the 'cluster_authorization_response' type.
func UnmarshalClusterAuthorizationResponse ¶
func UnmarshalClusterAuthorizationResponse(source interface{}) (object *ClusterAuthorizationResponse, err error)
UnmarshalClusterAuthorizationResponse reads a value of the 'cluster_authorization_response' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*ClusterAuthorizationResponse) Allowed ¶
func (o *ClusterAuthorizationResponse) Allowed() bool
Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterAuthorizationResponse) Empty ¶ added in v0.1.8
func (o *ClusterAuthorizationResponse) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*ClusterAuthorizationResponse) ExcessResources ¶
func (o *ClusterAuthorizationResponse) ExcessResources() *ReservedResourceList
ExcessResources returns the value of the 'excess_resources' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterAuthorizationResponse) GetAllowed ¶
func (o *ClusterAuthorizationResponse) GetAllowed() (value bool, ok bool)
GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationResponse) GetExcessResources ¶
func (o *ClusterAuthorizationResponse) GetExcessResources() (value *ReservedResourceList, ok bool)
GetExcessResources returns the value of the 'excess_resources' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationResponse) GetSubscription ¶
func (o *ClusterAuthorizationResponse) GetSubscription() (value *Subscription, ok bool)
GetSubscription returns the value of the 'subscription' attribute and a flag indicating if the attribute has a value.
func (*ClusterAuthorizationResponse) Subscription ¶
func (o *ClusterAuthorizationResponse) Subscription() *Subscription
Subscription returns the value of the 'subscription' attribute, or the zero value of the type if the attribute doesn't have a value.
type ClusterAuthorizationResponseBuilder ¶
type ClusterAuthorizationResponseBuilder struct {
// contains filtered or unexported fields
}
ClusterAuthorizationResponseBuilder contains the data and logic needed to build 'cluster_authorization_response' objects.
func NewClusterAuthorizationResponse ¶
func NewClusterAuthorizationResponse() *ClusterAuthorizationResponseBuilder
NewClusterAuthorizationResponse creates a new builder of 'cluster_authorization_response' objects.
func (*ClusterAuthorizationResponseBuilder) Allowed ¶
func (b *ClusterAuthorizationResponseBuilder) Allowed(value bool) *ClusterAuthorizationResponseBuilder
Allowed sets the value of the 'allowed' attribute to the given value.
func (*ClusterAuthorizationResponseBuilder) Build ¶
func (b *ClusterAuthorizationResponseBuilder) Build() (object *ClusterAuthorizationResponse, err error)
Build creates a 'cluster_authorization_response' object using the configuration stored in the builder.
func (*ClusterAuthorizationResponseBuilder) ExcessResources ¶
func (b *ClusterAuthorizationResponseBuilder) ExcessResources(values ...*ReservedResourceBuilder) *ClusterAuthorizationResponseBuilder
ExcessResources sets the value of the 'excess_resources' attribute to the given values.
func (*ClusterAuthorizationResponseBuilder) Subscription ¶
func (b *ClusterAuthorizationResponseBuilder) Subscription(value *SubscriptionBuilder) *ClusterAuthorizationResponseBuilder
Subscription sets the value of the 'subscription' attribute to the given value.
type ClusterAuthorizationResponseList ¶
type ClusterAuthorizationResponseList struct {
// contains filtered or unexported fields
}
ClusterAuthorizationResponseList is a list of values of the 'cluster_authorization_response' type.
func UnmarshalClusterAuthorizationResponseList ¶
func UnmarshalClusterAuthorizationResponseList(source interface{}) (list *ClusterAuthorizationResponseList, err error)
UnmarshalClusterAuthorizationResponseList reads a list of values of the 'cluster_authorization_response' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*ClusterAuthorizationResponseList) Each ¶
func (l *ClusterAuthorizationResponseList) Each(f func(item *ClusterAuthorizationResponse) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ClusterAuthorizationResponseList) Empty ¶ added in v0.1.8
func (l *ClusterAuthorizationResponseList) Empty() bool
Empty returns true if the list is empty.
func (*ClusterAuthorizationResponseList) Get ¶ added in v0.1.17
func (l *ClusterAuthorizationResponseList) Get(i int) *ClusterAuthorizationResponse
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*ClusterAuthorizationResponseList) Len ¶
func (l *ClusterAuthorizationResponseList) Len() int
Len returns the length of the list.
func (*ClusterAuthorizationResponseList) Range ¶
func (l *ClusterAuthorizationResponseList) Range(f func(index int, item *ClusterAuthorizationResponse) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ClusterAuthorizationResponseList) Slice ¶
func (l *ClusterAuthorizationResponseList) Slice() []*ClusterAuthorizationResponse
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type ClusterAuthorizationResponseListBuilder ¶
type ClusterAuthorizationResponseListBuilder struct {
// contains filtered or unexported fields
}
ClusterAuthorizationResponseListBuilder contains the data and logic needed to build 'cluster_authorization_response' objects.
func NewClusterAuthorizationResponseList ¶
func NewClusterAuthorizationResponseList() *ClusterAuthorizationResponseListBuilder
NewClusterAuthorizationResponseList creates a new builder of 'cluster_authorization_response' objects.
func (*ClusterAuthorizationResponseListBuilder) Build ¶
func (b *ClusterAuthorizationResponseListBuilder) Build() (list *ClusterAuthorizationResponseList, err error)
Build creates a list of 'cluster_authorization_response' objects using the configuration stored in the builder.
func (*ClusterAuthorizationResponseListBuilder) Items ¶
func (b *ClusterAuthorizationResponseListBuilder) Items(values ...*ClusterAuthorizationResponseBuilder) *ClusterAuthorizationResponseListBuilder
Items sets the items of the list.
type ClusterAuthorizationsClient ¶
type ClusterAuthorizationsClient struct {
// contains filtered or unexported fields
}
ClusterAuthorizationsClient is the client of the 'cluster_authorizations' resource.
Manages cluster authorizations.
func NewClusterAuthorizationsClient ¶
func NewClusterAuthorizationsClient(transport http.RoundTripper, path string, metric string) *ClusterAuthorizationsClient
NewClusterAuthorizationsClient creates a new client for the 'cluster_authorizations' resource using the given transport to sned the requests and receive the responses.
func (*ClusterAuthorizationsClient) Post ¶
func (c *ClusterAuthorizationsClient) Post() *ClusterAuthorizationsPostRequest
Post creates a request for the 'post' method.
Authorizes new cluster creation against an existing subscription.
type ClusterAuthorizationsPostRequest ¶
type ClusterAuthorizationsPostRequest struct {
// contains filtered or unexported fields
}
ClusterAuthorizationsPostRequest is the request for the 'post' method.
func (*ClusterAuthorizationsPostRequest) Header ¶
func (r *ClusterAuthorizationsPostRequest) Header(name string, value interface{}) *ClusterAuthorizationsPostRequest
Header adds a request header.
func (*ClusterAuthorizationsPostRequest) Parameter ¶
func (r *ClusterAuthorizationsPostRequest) Parameter(name string, value interface{}) *ClusterAuthorizationsPostRequest
Parameter adds a query parameter.
func (*ClusterAuthorizationsPostRequest) Request ¶
func (r *ClusterAuthorizationsPostRequest) Request(value *ClusterAuthorizationRequest) *ClusterAuthorizationsPostRequest
Request sets the value of the 'request' parameter.
func (*ClusterAuthorizationsPostRequest) Send ¶
func (r *ClusterAuthorizationsPostRequest) Send() (result *ClusterAuthorizationsPostResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ClusterAuthorizationsPostRequest) SendContext ¶ added in v0.1.10
func (r *ClusterAuthorizationsPostRequest) SendContext(ctx context.Context) (result *ClusterAuthorizationsPostResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type ClusterAuthorizationsPostResponse ¶
type ClusterAuthorizationsPostResponse struct {
// contains filtered or unexported fields
}
ClusterAuthorizationsPostResponse is the response for the 'post' method.
func (*ClusterAuthorizationsPostResponse) Error ¶
func (r *ClusterAuthorizationsPostResponse) Error() *errors.Error
Error returns the response error.
func (*ClusterAuthorizationsPostResponse) GetResponse ¶ added in v0.1.16
func (r *ClusterAuthorizationsPostResponse) GetResponse() (value *ClusterAuthorizationResponse, ok bool)
GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.
func (*ClusterAuthorizationsPostResponse) Header ¶
func (r *ClusterAuthorizationsPostResponse) Header() http.Header
Header returns header of the response.
func (*ClusterAuthorizationsPostResponse) Response ¶
func (r *ClusterAuthorizationsPostResponse) Response() *ClusterAuthorizationResponse
Response returns the value of the 'response' parameter.
func (*ClusterAuthorizationsPostResponse) Status ¶
func (r *ClusterAuthorizationsPostResponse) Status() int
Status returns the response status code.
type ClusterAuthorizationsPostServerRequest ¶ added in v0.1.27
type ClusterAuthorizationsPostServerRequest struct {
// contains filtered or unexported fields
}
ClusterAuthorizationsPostServerRequest is the request for the 'post' method.
func (*ClusterAuthorizationsPostServerRequest) GetRequest ¶ added in v0.1.27
func (r *ClusterAuthorizationsPostServerRequest) GetRequest() (value *ClusterAuthorizationRequest, ok bool)
GetRequest returns the value of the 'request' parameter and a flag indicating if the parameter has a value.
func (*ClusterAuthorizationsPostServerRequest) Request ¶ added in v0.1.27
func (r *ClusterAuthorizationsPostServerRequest) Request() *ClusterAuthorizationRequest
Request returns the value of the 'request' parameter.
type ClusterAuthorizationsPostServerResponse ¶ added in v0.1.27
type ClusterAuthorizationsPostServerResponse struct {
// contains filtered or unexported fields
}
ClusterAuthorizationsPostServerResponse is the response for the 'post' method.
func (*ClusterAuthorizationsPostServerResponse) Response ¶ added in v0.1.27
func (r *ClusterAuthorizationsPostServerResponse) Response(value *ClusterAuthorizationResponse) *ClusterAuthorizationsPostServerResponse
Response sets the value of the 'response' parameter.
func (*ClusterAuthorizationsPostServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *ClusterAuthorizationsPostServerResponse) SetStatusCode(status int) *ClusterAuthorizationsPostServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type ClusterAuthorizationsServer ¶ added in v0.1.27
type ClusterAuthorizationsServer interface { // Post handles a request for the 'post' method. // // Authorizes new cluster creation against an existing subscription. Post(ctx context.Context, request *ClusterAuthorizationsPostServerRequest, response *ClusterAuthorizationsPostServerResponse) error }
ClusterAuthorizationsServer represents the interface the manages the 'cluster_authorizations' resource.
type ClusterAuthorizationsServerAdapter ¶ added in v0.1.27
type ClusterAuthorizationsServerAdapter struct {
// contains filtered or unexported fields
}
ClusterAuthorizationsServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewClusterAuthorizationsServerAdapter ¶ added in v0.1.27
func NewClusterAuthorizationsServerAdapter(server ClusterAuthorizationsServer, router *mux.Router) *ClusterAuthorizationsServerAdapter
func (*ClusterAuthorizationsServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *ClusterAuthorizationsServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ClusterRegistrationRequest ¶
type ClusterRegistrationRequest struct {
// contains filtered or unexported fields
}
ClusterRegistrationRequest represents the values of the 'cluster_registration_request' type.
func UnmarshalClusterRegistrationRequest ¶
func UnmarshalClusterRegistrationRequest(source interface{}) (object *ClusterRegistrationRequest, err error)
UnmarshalClusterRegistrationRequest reads a value of the 'cluster_registration_request' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*ClusterRegistrationRequest) AuthorizationToken ¶
func (o *ClusterRegistrationRequest) AuthorizationToken() string
AuthorizationToken returns the value of the 'authorization_token' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterRegistrationRequest) ClusterID ¶
func (o *ClusterRegistrationRequest) ClusterID() string
ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterRegistrationRequest) Empty ¶ added in v0.1.8
func (o *ClusterRegistrationRequest) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*ClusterRegistrationRequest) GetAuthorizationToken ¶
func (o *ClusterRegistrationRequest) GetAuthorizationToken() (value string, ok bool)
GetAuthorizationToken returns the value of the 'authorization_token' attribute and a flag indicating if the attribute has a value.
func (*ClusterRegistrationRequest) GetClusterID ¶
func (o *ClusterRegistrationRequest) GetClusterID() (value string, ok bool)
GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.
type ClusterRegistrationRequestBuilder ¶
type ClusterRegistrationRequestBuilder struct {
// contains filtered or unexported fields
}
ClusterRegistrationRequestBuilder contains the data and logic needed to build 'cluster_registration_request' objects.
func NewClusterRegistrationRequest ¶
func NewClusterRegistrationRequest() *ClusterRegistrationRequestBuilder
NewClusterRegistrationRequest creates a new builder of 'cluster_registration_request' objects.
func (*ClusterRegistrationRequestBuilder) AuthorizationToken ¶
func (b *ClusterRegistrationRequestBuilder) AuthorizationToken(value string) *ClusterRegistrationRequestBuilder
AuthorizationToken sets the value of the 'authorization_token' attribute to the given value.
func (*ClusterRegistrationRequestBuilder) Build ¶
func (b *ClusterRegistrationRequestBuilder) Build() (object *ClusterRegistrationRequest, err error)
Build creates a 'cluster_registration_request' object using the configuration stored in the builder.
func (*ClusterRegistrationRequestBuilder) ClusterID ¶
func (b *ClusterRegistrationRequestBuilder) ClusterID(value string) *ClusterRegistrationRequestBuilder
ClusterID sets the value of the 'cluster_ID' attribute to the given value.
type ClusterRegistrationRequestList ¶
type ClusterRegistrationRequestList struct {
// contains filtered or unexported fields
}
ClusterRegistrationRequestList is a list of values of the 'cluster_registration_request' type.
func UnmarshalClusterRegistrationRequestList ¶
func UnmarshalClusterRegistrationRequestList(source interface{}) (list *ClusterRegistrationRequestList, err error)
UnmarshalClusterRegistrationRequestList reads a list of values of the 'cluster_registration_request' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*ClusterRegistrationRequestList) Each ¶
func (l *ClusterRegistrationRequestList) Each(f func(item *ClusterRegistrationRequest) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ClusterRegistrationRequestList) Empty ¶ added in v0.1.8
func (l *ClusterRegistrationRequestList) Empty() bool
Empty returns true if the list is empty.
func (*ClusterRegistrationRequestList) Get ¶ added in v0.1.17
func (l *ClusterRegistrationRequestList) Get(i int) *ClusterRegistrationRequest
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*ClusterRegistrationRequestList) Len ¶
func (l *ClusterRegistrationRequestList) Len() int
Len returns the length of the list.
func (*ClusterRegistrationRequestList) Range ¶
func (l *ClusterRegistrationRequestList) Range(f func(index int, item *ClusterRegistrationRequest) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ClusterRegistrationRequestList) Slice ¶
func (l *ClusterRegistrationRequestList) Slice() []*ClusterRegistrationRequest
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type ClusterRegistrationRequestListBuilder ¶
type ClusterRegistrationRequestListBuilder struct {
// contains filtered or unexported fields
}
ClusterRegistrationRequestListBuilder contains the data and logic needed to build 'cluster_registration_request' objects.
func NewClusterRegistrationRequestList ¶
func NewClusterRegistrationRequestList() *ClusterRegistrationRequestListBuilder
NewClusterRegistrationRequestList creates a new builder of 'cluster_registration_request' objects.
func (*ClusterRegistrationRequestListBuilder) Build ¶
func (b *ClusterRegistrationRequestListBuilder) Build() (list *ClusterRegistrationRequestList, err error)
Build creates a list of 'cluster_registration_request' objects using the configuration stored in the builder.
func (*ClusterRegistrationRequestListBuilder) Items ¶
func (b *ClusterRegistrationRequestListBuilder) Items(values ...*ClusterRegistrationRequestBuilder) *ClusterRegistrationRequestListBuilder
Items sets the items of the list.
type ClusterRegistrationResponse ¶
type ClusterRegistrationResponse struct {
// contains filtered or unexported fields
}
ClusterRegistrationResponse represents the values of the 'cluster_registration_response' type.
func UnmarshalClusterRegistrationResponse ¶
func UnmarshalClusterRegistrationResponse(source interface{}) (object *ClusterRegistrationResponse, err error)
UnmarshalClusterRegistrationResponse reads a value of the 'cluster_registration_response' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*ClusterRegistrationResponse) AccountID ¶
func (o *ClusterRegistrationResponse) AccountID() string
AccountID returns the value of the 'account_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterRegistrationResponse) AuthorizationToken ¶
func (o *ClusterRegistrationResponse) AuthorizationToken() string
AuthorizationToken returns the value of the 'authorization_token' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterRegistrationResponse) ClusterID ¶
func (o *ClusterRegistrationResponse) ClusterID() string
ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ClusterRegistrationResponse) Empty ¶ added in v0.1.8
func (o *ClusterRegistrationResponse) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*ClusterRegistrationResponse) ExpiresAt ¶
func (o *ClusterRegistrationResponse) ExpiresAt() string
ExpiresAt returns the value of the 'expires_at' attribute, or the zero value of the type if the attribute doesn't have a value.
Cluster registration expiration.
func (*ClusterRegistrationResponse) GetAccountID ¶
func (o *ClusterRegistrationResponse) GetAccountID() (value string, ok bool)
GetAccountID returns the value of the 'account_ID' attribute and a flag indicating if the attribute has a value.
func (*ClusterRegistrationResponse) GetAuthorizationToken ¶
func (o *ClusterRegistrationResponse) GetAuthorizationToken() (value string, ok bool)
GetAuthorizationToken returns the value of the 'authorization_token' attribute and a flag indicating if the attribute has a value.
func (*ClusterRegistrationResponse) GetClusterID ¶
func (o *ClusterRegistrationResponse) GetClusterID() (value string, ok bool)
GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.
func (*ClusterRegistrationResponse) GetExpiresAt ¶
func (o *ClusterRegistrationResponse) GetExpiresAt() (value string, ok bool)
GetExpiresAt returns the value of the 'expires_at' attribute and a flag indicating if the attribute has a value.
Cluster registration expiration.
type ClusterRegistrationResponseBuilder ¶
type ClusterRegistrationResponseBuilder struct {
// contains filtered or unexported fields
}
ClusterRegistrationResponseBuilder contains the data and logic needed to build 'cluster_registration_response' objects.
func NewClusterRegistrationResponse ¶
func NewClusterRegistrationResponse() *ClusterRegistrationResponseBuilder
NewClusterRegistrationResponse creates a new builder of 'cluster_registration_response' objects.
func (*ClusterRegistrationResponseBuilder) AccountID ¶
func (b *ClusterRegistrationResponseBuilder) AccountID(value string) *ClusterRegistrationResponseBuilder
AccountID sets the value of the 'account_ID' attribute to the given value.
func (*ClusterRegistrationResponseBuilder) AuthorizationToken ¶
func (b *ClusterRegistrationResponseBuilder) AuthorizationToken(value string) *ClusterRegistrationResponseBuilder
AuthorizationToken sets the value of the 'authorization_token' attribute to the given value.
func (*ClusterRegistrationResponseBuilder) Build ¶
func (b *ClusterRegistrationResponseBuilder) Build() (object *ClusterRegistrationResponse, err error)
Build creates a 'cluster_registration_response' object using the configuration stored in the builder.
func (*ClusterRegistrationResponseBuilder) ClusterID ¶
func (b *ClusterRegistrationResponseBuilder) ClusterID(value string) *ClusterRegistrationResponseBuilder
ClusterID sets the value of the 'cluster_ID' attribute to the given value.
func (*ClusterRegistrationResponseBuilder) ExpiresAt ¶
func (b *ClusterRegistrationResponseBuilder) ExpiresAt(value string) *ClusterRegistrationResponseBuilder
ExpiresAt sets the value of the 'expires_at' attribute to the given value.
type ClusterRegistrationResponseList ¶
type ClusterRegistrationResponseList struct {
// contains filtered or unexported fields
}
ClusterRegistrationResponseList is a list of values of the 'cluster_registration_response' type.
func UnmarshalClusterRegistrationResponseList ¶
func UnmarshalClusterRegistrationResponseList(source interface{}) (list *ClusterRegistrationResponseList, err error)
UnmarshalClusterRegistrationResponseList reads a list of values of the 'cluster_registration_response' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*ClusterRegistrationResponseList) Each ¶
func (l *ClusterRegistrationResponseList) Each(f func(item *ClusterRegistrationResponse) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ClusterRegistrationResponseList) Empty ¶ added in v0.1.8
func (l *ClusterRegistrationResponseList) Empty() bool
Empty returns true if the list is empty.
func (*ClusterRegistrationResponseList) Get ¶ added in v0.1.17
func (l *ClusterRegistrationResponseList) Get(i int) *ClusterRegistrationResponse
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*ClusterRegistrationResponseList) Len ¶
func (l *ClusterRegistrationResponseList) Len() int
Len returns the length of the list.
func (*ClusterRegistrationResponseList) Range ¶
func (l *ClusterRegistrationResponseList) Range(f func(index int, item *ClusterRegistrationResponse) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ClusterRegistrationResponseList) Slice ¶
func (l *ClusterRegistrationResponseList) Slice() []*ClusterRegistrationResponse
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type ClusterRegistrationResponseListBuilder ¶
type ClusterRegistrationResponseListBuilder struct {
// contains filtered or unexported fields
}
ClusterRegistrationResponseListBuilder contains the data and logic needed to build 'cluster_registration_response' objects.
func NewClusterRegistrationResponseList ¶
func NewClusterRegistrationResponseList() *ClusterRegistrationResponseListBuilder
NewClusterRegistrationResponseList creates a new builder of 'cluster_registration_response' objects.
func (*ClusterRegistrationResponseListBuilder) Build ¶
func (b *ClusterRegistrationResponseListBuilder) Build() (list *ClusterRegistrationResponseList, err error)
Build creates a list of 'cluster_registration_response' objects using the configuration stored in the builder.
func (*ClusterRegistrationResponseListBuilder) Items ¶
func (b *ClusterRegistrationResponseListBuilder) Items(values ...*ClusterRegistrationResponseBuilder) *ClusterRegistrationResponseListBuilder
Items sets the items of the list.
type ClusterRegistrationsClient ¶
type ClusterRegistrationsClient struct {
// contains filtered or unexported fields
}
ClusterRegistrationsClient is the client of the 'cluster_registrations' resource.
Manages cluster registrations.
func NewClusterRegistrationsClient ¶
func NewClusterRegistrationsClient(transport http.RoundTripper, path string, metric string) *ClusterRegistrationsClient
NewClusterRegistrationsClient creates a new client for the 'cluster_registrations' resource using the given transport to sned the requests and receive the responses.
func (*ClusterRegistrationsClient) Post ¶
func (c *ClusterRegistrationsClient) Post() *ClusterRegistrationsPostRequest
Post creates a request for the 'post' method.
Finds or creates a cluster registration with a registry credential token and cluster identifier.
type ClusterRegistrationsPostRequest ¶
type ClusterRegistrationsPostRequest struct {
// contains filtered or unexported fields
}
ClusterRegistrationsPostRequest is the request for the 'post' method.
func (*ClusterRegistrationsPostRequest) Header ¶
func (r *ClusterRegistrationsPostRequest) Header(name string, value interface{}) *ClusterRegistrationsPostRequest
Header adds a request header.
func (*ClusterRegistrationsPostRequest) Parameter ¶
func (r *ClusterRegistrationsPostRequest) Parameter(name string, value interface{}) *ClusterRegistrationsPostRequest
Parameter adds a query parameter.
func (*ClusterRegistrationsPostRequest) Request ¶
func (r *ClusterRegistrationsPostRequest) Request(value *ClusterRegistrationRequest) *ClusterRegistrationsPostRequest
Request sets the value of the 'request' parameter.
func (*ClusterRegistrationsPostRequest) Send ¶
func (r *ClusterRegistrationsPostRequest) Send() (result *ClusterRegistrationsPostResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ClusterRegistrationsPostRequest) SendContext ¶ added in v0.1.10
func (r *ClusterRegistrationsPostRequest) SendContext(ctx context.Context) (result *ClusterRegistrationsPostResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type ClusterRegistrationsPostResponse ¶
type ClusterRegistrationsPostResponse struct {
// contains filtered or unexported fields
}
ClusterRegistrationsPostResponse is the response for the 'post' method.
func (*ClusterRegistrationsPostResponse) Error ¶
func (r *ClusterRegistrationsPostResponse) Error() *errors.Error
Error returns the response error.
func (*ClusterRegistrationsPostResponse) GetResponse ¶ added in v0.1.16
func (r *ClusterRegistrationsPostResponse) GetResponse() (value *ClusterRegistrationResponse, ok bool)
GetResponse returns the value of the 'response' parameter and a flag indicating if the parameter has a value.
func (*ClusterRegistrationsPostResponse) Header ¶
func (r *ClusterRegistrationsPostResponse) Header() http.Header
Header returns header of the response.
func (*ClusterRegistrationsPostResponse) Response ¶
func (r *ClusterRegistrationsPostResponse) Response() *ClusterRegistrationResponse
Response returns the value of the 'response' parameter.
func (*ClusterRegistrationsPostResponse) Status ¶
func (r *ClusterRegistrationsPostResponse) Status() int
Status returns the response status code.
type ClusterRegistrationsPostServerRequest ¶ added in v0.1.27
type ClusterRegistrationsPostServerRequest struct {
// contains filtered or unexported fields
}
ClusterRegistrationsPostServerRequest is the request for the 'post' method.
func (*ClusterRegistrationsPostServerRequest) GetRequest ¶ added in v0.1.27
func (r *ClusterRegistrationsPostServerRequest) GetRequest() (value *ClusterRegistrationRequest, ok bool)
GetRequest returns the value of the 'request' parameter and a flag indicating if the parameter has a value.
func (*ClusterRegistrationsPostServerRequest) Request ¶ added in v0.1.27
func (r *ClusterRegistrationsPostServerRequest) Request() *ClusterRegistrationRequest
Request returns the value of the 'request' parameter.
type ClusterRegistrationsPostServerResponse ¶ added in v0.1.27
type ClusterRegistrationsPostServerResponse struct {
// contains filtered or unexported fields
}
ClusterRegistrationsPostServerResponse is the response for the 'post' method.
func (*ClusterRegistrationsPostServerResponse) Response ¶ added in v0.1.27
func (r *ClusterRegistrationsPostServerResponse) Response(value *ClusterRegistrationResponse) *ClusterRegistrationsPostServerResponse
Response sets the value of the 'response' parameter.
func (*ClusterRegistrationsPostServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *ClusterRegistrationsPostServerResponse) SetStatusCode(status int) *ClusterRegistrationsPostServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type ClusterRegistrationsServer ¶ added in v0.1.27
type ClusterRegistrationsServer interface { // Post handles a request for the 'post' method. // // Finds or creates a cluster registration with a registry credential // token and cluster identifier. Post(ctx context.Context, request *ClusterRegistrationsPostServerRequest, response *ClusterRegistrationsPostServerResponse) error }
ClusterRegistrationsServer represents the interface the manages the 'cluster_registrations' resource.
type ClusterRegistrationsServerAdapter ¶ added in v0.1.27
type ClusterRegistrationsServerAdapter struct {
// contains filtered or unexported fields
}
ClusterRegistrationsServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewClusterRegistrationsServerAdapter ¶ added in v0.1.27
func NewClusterRegistrationsServerAdapter(server ClusterRegistrationsServer, router *mux.Router) *ClusterRegistrationsServerAdapter
func (*ClusterRegistrationsServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *ClusterRegistrationsServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type CurrentAccountClient ¶
type CurrentAccountClient struct {
// contains filtered or unexported fields
}
CurrentAccountClient is the client of the 'current_account' resource.
Manages the current authenticated account.
func NewCurrentAccountClient ¶
func NewCurrentAccountClient(transport http.RoundTripper, path string, metric string) *CurrentAccountClient
NewCurrentAccountClient creates a new client for the 'current_account' resource using the given transport to sned the requests and receive the responses.
func (*CurrentAccountClient) Get ¶
func (c *CurrentAccountClient) Get() *CurrentAccountGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the account.
type CurrentAccountGetRequest ¶
type CurrentAccountGetRequest struct {
// contains filtered or unexported fields
}
CurrentAccountGetRequest is the request for the 'get' method.
func (*CurrentAccountGetRequest) Header ¶
func (r *CurrentAccountGetRequest) Header(name string, value interface{}) *CurrentAccountGetRequest
Header adds a request header.
func (*CurrentAccountGetRequest) Parameter ¶
func (r *CurrentAccountGetRequest) Parameter(name string, value interface{}) *CurrentAccountGetRequest
Parameter adds a query parameter.
func (*CurrentAccountGetRequest) Send ¶
func (r *CurrentAccountGetRequest) Send() (result *CurrentAccountGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*CurrentAccountGetRequest) SendContext ¶ added in v0.1.10
func (r *CurrentAccountGetRequest) SendContext(ctx context.Context) (result *CurrentAccountGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type CurrentAccountGetResponse ¶
type CurrentAccountGetResponse struct {
// contains filtered or unexported fields
}
CurrentAccountGetResponse is the response for the 'get' method.
func (*CurrentAccountGetResponse) Body ¶
func (r *CurrentAccountGetResponse) Body() *Account
Body returns the value of the 'body' parameter.
func (*CurrentAccountGetResponse) Error ¶
func (r *CurrentAccountGetResponse) Error() *errors.Error
Error returns the response error.
func (*CurrentAccountGetResponse) GetBody ¶ added in v0.1.16
func (r *CurrentAccountGetResponse) GetBody() (value *Account, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*CurrentAccountGetResponse) Header ¶
func (r *CurrentAccountGetResponse) Header() http.Header
Header returns header of the response.
func (*CurrentAccountGetResponse) Status ¶
func (r *CurrentAccountGetResponse) Status() int
Status returns the response status code.
type CurrentAccountGetServerRequest ¶ added in v0.1.27
type CurrentAccountGetServerRequest struct {
// contains filtered or unexported fields
}
CurrentAccountGetServerRequest is the request for the 'get' method.
type CurrentAccountGetServerResponse ¶ added in v0.1.27
type CurrentAccountGetServerResponse struct {
// contains filtered or unexported fields
}
CurrentAccountGetServerResponse is the response for the 'get' method.
func (*CurrentAccountGetServerResponse) Body ¶ added in v0.1.27
func (r *CurrentAccountGetServerResponse) Body(value *Account) *CurrentAccountGetServerResponse
Body sets the value of the 'body' parameter.
func (*CurrentAccountGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *CurrentAccountGetServerResponse) SetStatusCode(status int) *CurrentAccountGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type CurrentAccountServer ¶ added in v0.1.27
type CurrentAccountServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the account. Get(ctx context.Context, request *CurrentAccountGetServerRequest, response *CurrentAccountGetServerResponse) error }
CurrentAccountServer represents the interface the manages the 'current_account' resource.
type CurrentAccountServerAdapter ¶ added in v0.1.27
type CurrentAccountServerAdapter struct {
// contains filtered or unexported fields
}
CurrentAccountServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewCurrentAccountServerAdapter ¶ added in v0.1.27
func NewCurrentAccountServerAdapter(server CurrentAccountServer, router *mux.Router) *CurrentAccountServerAdapter
func (*CurrentAccountServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *CurrentAccountServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Organization ¶
type Organization struct {
// contains filtered or unexported fields
}
Organization represents the values of the 'organization' type.
func UnmarshalOrganization ¶
func UnmarshalOrganization(source interface{}) (object *Organization, err error)
UnmarshalOrganization reads a value of the 'organization' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*Organization) Empty ¶ added in v0.1.8
func (o *Organization) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Organization) GetHREF ¶
func (o *Organization) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Organization) GetID ¶
func (o *Organization) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Organization) GetName ¶
func (o *Organization) GetName() (value string, ok bool)
GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.
func (*Organization) HREF ¶
func (o *Organization) HREF() string
HREF returns the link to the object.
func (*Organization) ID ¶
func (o *Organization) ID() string
ID returns the identifier of the object.
func (*Organization) Kind ¶
func (o *Organization) Kind() string
Kind returns the name of the type of the object.
func (*Organization) Link ¶
func (o *Organization) Link() bool
Link returns true iif this is a link.
func (*Organization) Name ¶
func (o *Organization) Name() string
Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.
type OrganizationBuilder ¶
type OrganizationBuilder struct {
// contains filtered or unexported fields
}
OrganizationBuilder contains the data and logic needed to build 'organization' objects.
func NewOrganization ¶
func NewOrganization() *OrganizationBuilder
NewOrganization creates a new builder of 'organization' objects.
func (*OrganizationBuilder) Build ¶
func (b *OrganizationBuilder) Build() (object *Organization, err error)
Build creates a 'organization' object using the configuration stored in the builder.
func (*OrganizationBuilder) HREF ¶
func (b *OrganizationBuilder) HREF(value string) *OrganizationBuilder
HREF sets the link to the object.
func (*OrganizationBuilder) ID ¶
func (b *OrganizationBuilder) ID(value string) *OrganizationBuilder
ID sets the identifier of the object.
func (*OrganizationBuilder) Link ¶
func (b *OrganizationBuilder) Link(value bool) *OrganizationBuilder
Link sets the flag that indicates if this is a link.
func (*OrganizationBuilder) Name ¶
func (b *OrganizationBuilder) Name(value string) *OrganizationBuilder
Name sets the value of the 'name' attribute to the given value.
type OrganizationClient ¶
type OrganizationClient struct {
// contains filtered or unexported fields
}
OrganizationClient is the client of the 'organization' resource.
Manages a specific organization.
func NewOrganizationClient ¶
func NewOrganizationClient(transport http.RoundTripper, path string, metric string) *OrganizationClient
NewOrganizationClient creates a new client for the 'organization' resource using the given transport to sned the requests and receive the responses.
func (*OrganizationClient) Get ¶
func (c *OrganizationClient) Get() *OrganizationGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the organization.
func (*OrganizationClient) QuotaSummary ¶ added in v0.1.26
func (c *OrganizationClient) QuotaSummary() *QuotaSummaryClient
QuotaSummary returns the target 'quota_summary' resource.
Reference to the service that returns the summary of the resource quota for this organization.
func (*OrganizationClient) ResourceQuota ¶
func (c *OrganizationClient) ResourceQuota() *ResourceQuotasClient
ResourceQuota returns the target 'resource_quotas' resource.
Reference to the service that manages the resource quotas for this organization.
func (*OrganizationClient) Update ¶
func (c *OrganizationClient) Update() *OrganizationUpdateRequest
Update creates a request for the 'update' method.
Updates the organization.
type OrganizationGetRequest ¶
type OrganizationGetRequest struct {
// contains filtered or unexported fields
}
OrganizationGetRequest is the request for the 'get' method.
func (*OrganizationGetRequest) Header ¶
func (r *OrganizationGetRequest) Header(name string, value interface{}) *OrganizationGetRequest
Header adds a request header.
func (*OrganizationGetRequest) Parameter ¶
func (r *OrganizationGetRequest) Parameter(name string, value interface{}) *OrganizationGetRequest
Parameter adds a query parameter.
func (*OrganizationGetRequest) Send ¶
func (r *OrganizationGetRequest) Send() (result *OrganizationGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*OrganizationGetRequest) SendContext ¶ added in v0.1.10
func (r *OrganizationGetRequest) SendContext(ctx context.Context) (result *OrganizationGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type OrganizationGetResponse ¶
type OrganizationGetResponse struct {
// contains filtered or unexported fields
}
OrganizationGetResponse is the response for the 'get' method.
func (*OrganizationGetResponse) Body ¶
func (r *OrganizationGetResponse) Body() *Organization
Body returns the value of the 'body' parameter.
func (*OrganizationGetResponse) Error ¶
func (r *OrganizationGetResponse) Error() *errors.Error
Error returns the response error.
func (*OrganizationGetResponse) GetBody ¶ added in v0.1.16
func (r *OrganizationGetResponse) GetBody() (value *Organization, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*OrganizationGetResponse) Header ¶
func (r *OrganizationGetResponse) Header() http.Header
Header returns header of the response.
func (*OrganizationGetResponse) Status ¶
func (r *OrganizationGetResponse) Status() int
Status returns the response status code.
type OrganizationGetServerRequest ¶ added in v0.1.27
type OrganizationGetServerRequest struct {
// contains filtered or unexported fields
}
OrganizationGetServerRequest is the request for the 'get' method.
type OrganizationGetServerResponse ¶ added in v0.1.27
type OrganizationGetServerResponse struct {
// contains filtered or unexported fields
}
OrganizationGetServerResponse is the response for the 'get' method.
func (*OrganizationGetServerResponse) Body ¶ added in v0.1.27
func (r *OrganizationGetServerResponse) Body(value *Organization) *OrganizationGetServerResponse
Body sets the value of the 'body' parameter.
func (*OrganizationGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *OrganizationGetServerResponse) SetStatusCode(status int) *OrganizationGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type OrganizationList ¶
type OrganizationList struct {
// contains filtered or unexported fields
}
OrganizationList is a list of values of the 'organization' type.
func UnmarshalOrganizationList ¶
func UnmarshalOrganizationList(source interface{}) (list *OrganizationList, err error)
UnmarshalOrganizationList reads a list of values of the 'organization' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*OrganizationList) Each ¶
func (l *OrganizationList) Each(f func(item *Organization) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*OrganizationList) Empty ¶ added in v0.1.8
func (l *OrganizationList) Empty() bool
Empty returns true if the list is empty.
func (*OrganizationList) Get ¶ added in v0.1.17
func (l *OrganizationList) Get(i int) *Organization
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*OrganizationList) GetHREF ¶ added in v0.1.7
func (l *OrganizationList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*OrganizationList) HREF ¶ added in v0.1.7
func (l *OrganizationList) HREF() string
HREF returns the link to the list.
func (*OrganizationList) Kind ¶ added in v0.1.7
func (l *OrganizationList) Kind() string
Kind returns the name of the type of the object.
func (*OrganizationList) Len ¶
func (l *OrganizationList) Len() int
Len returns the length of the list.
func (*OrganizationList) Link ¶ added in v0.1.7
func (l *OrganizationList) Link() bool
Link returns true iif this is a link.
func (*OrganizationList) Range ¶
func (l *OrganizationList) Range(f func(index int, item *Organization) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*OrganizationList) Slice ¶
func (l *OrganizationList) Slice() []*Organization
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type OrganizationListBuilder ¶
type OrganizationListBuilder struct {
// contains filtered or unexported fields
}
OrganizationListBuilder contains the data and logic needed to build 'organization' objects.
func NewOrganizationList ¶
func NewOrganizationList() *OrganizationListBuilder
NewOrganizationList creates a new builder of 'organization' objects.
func (*OrganizationListBuilder) Build ¶
func (b *OrganizationListBuilder) Build() (list *OrganizationList, err error)
Build creates a list of 'organization' objects using the configuration stored in the builder.
func (*OrganizationListBuilder) Items ¶
func (b *OrganizationListBuilder) Items(values ...*OrganizationBuilder) *OrganizationListBuilder
Items sets the items of the list.
type OrganizationServer ¶ added in v0.1.27
type OrganizationServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the organization. Get(ctx context.Context, request *OrganizationGetServerRequest, response *OrganizationGetServerResponse) error // Update handles a request for the 'update' method. // // Updates the organization. Update(ctx context.Context, request *OrganizationUpdateServerRequest, response *OrganizationUpdateServerResponse) error // ResourceQuota returns the target 'resource_quotas' resource. // // Reference to the service that manages the resource quotas for this // organization. ResourceQuota() ResourceQuotasServer // QuotaSummary returns the target 'quota_summary' resource. // // Reference to the service that returns the summary of the resource quota for this // organization. QuotaSummary() QuotaSummaryServer }
OrganizationServer represents the interface the manages the 'organization' resource.
type OrganizationServerAdapter ¶ added in v0.1.27
type OrganizationServerAdapter struct {
// contains filtered or unexported fields
}
OrganizationServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewOrganizationServerAdapter ¶ added in v0.1.27
func NewOrganizationServerAdapter(server OrganizationServer, router *mux.Router) *OrganizationServerAdapter
func (*OrganizationServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *OrganizationServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type OrganizationUpdateRequest ¶
type OrganizationUpdateRequest struct {
// contains filtered or unexported fields
}
OrganizationUpdateRequest is the request for the 'update' method.
func (*OrganizationUpdateRequest) Body ¶
func (r *OrganizationUpdateRequest) Body(value *Organization) *OrganizationUpdateRequest
Body sets the value of the 'body' parameter.
func (*OrganizationUpdateRequest) Header ¶
func (r *OrganizationUpdateRequest) Header(name string, value interface{}) *OrganizationUpdateRequest
Header adds a request header.
func (*OrganizationUpdateRequest) Parameter ¶
func (r *OrganizationUpdateRequest) Parameter(name string, value interface{}) *OrganizationUpdateRequest
Parameter adds a query parameter.
func (*OrganizationUpdateRequest) Send ¶
func (r *OrganizationUpdateRequest) Send() (result *OrganizationUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*OrganizationUpdateRequest) SendContext ¶ added in v0.1.10
func (r *OrganizationUpdateRequest) SendContext(ctx context.Context) (result *OrganizationUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type OrganizationUpdateResponse ¶
type OrganizationUpdateResponse struct {
// contains filtered or unexported fields
}
OrganizationUpdateResponse is the response for the 'update' method.
func (*OrganizationUpdateResponse) Body ¶
func (r *OrganizationUpdateResponse) Body() *Organization
Body returns the value of the 'body' parameter.
func (*OrganizationUpdateResponse) Error ¶
func (r *OrganizationUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*OrganizationUpdateResponse) GetBody ¶ added in v0.1.16
func (r *OrganizationUpdateResponse) GetBody() (value *Organization, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*OrganizationUpdateResponse) Header ¶
func (r *OrganizationUpdateResponse) Header() http.Header
Header returns header of the response.
func (*OrganizationUpdateResponse) Status ¶
func (r *OrganizationUpdateResponse) Status() int
Status returns the response status code.
type OrganizationUpdateServerRequest ¶ added in v0.1.27
type OrganizationUpdateServerRequest struct {
// contains filtered or unexported fields
}
OrganizationUpdateServerRequest is the request for the 'update' method.
func (*OrganizationUpdateServerRequest) Body ¶ added in v0.1.27
func (r *OrganizationUpdateServerRequest) Body() *Organization
Body returns the value of the 'body' parameter.
func (*OrganizationUpdateServerRequest) GetBody ¶ added in v0.1.27
func (r *OrganizationUpdateServerRequest) GetBody() (value *Organization, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
type OrganizationUpdateServerResponse ¶ added in v0.1.27
type OrganizationUpdateServerResponse struct {
// contains filtered or unexported fields
}
OrganizationUpdateServerResponse is the response for the 'update' method.
func (*OrganizationUpdateServerResponse) Body ¶ added in v0.1.27
func (r *OrganizationUpdateServerResponse) Body(value *Organization) *OrganizationUpdateServerResponse
Body sets the value of the 'body' parameter.
func (*OrganizationUpdateServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *OrganizationUpdateServerResponse) SetStatusCode(status int) *OrganizationUpdateServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type OrganizationsAddRequest ¶
type OrganizationsAddRequest struct {
// contains filtered or unexported fields
}
OrganizationsAddRequest is the request for the 'add' method.
func (*OrganizationsAddRequest) Body ¶
func (r *OrganizationsAddRequest) Body(value *Organization) *OrganizationsAddRequest
Body sets the value of the 'body' parameter.
Organization data.
func (*OrganizationsAddRequest) Header ¶
func (r *OrganizationsAddRequest) Header(name string, value interface{}) *OrganizationsAddRequest
Header adds a request header.
func (*OrganizationsAddRequest) Parameter ¶
func (r *OrganizationsAddRequest) Parameter(name string, value interface{}) *OrganizationsAddRequest
Parameter adds a query parameter.
func (*OrganizationsAddRequest) Send ¶
func (r *OrganizationsAddRequest) Send() (result *OrganizationsAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*OrganizationsAddRequest) SendContext ¶ added in v0.1.10
func (r *OrganizationsAddRequest) SendContext(ctx context.Context) (result *OrganizationsAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type OrganizationsAddResponse ¶
type OrganizationsAddResponse struct {
// contains filtered or unexported fields
}
OrganizationsAddResponse is the response for the 'add' method.
func (*OrganizationsAddResponse) Body ¶
func (r *OrganizationsAddResponse) Body() *Organization
Body returns the value of the 'body' parameter.
Organization data.
func (*OrganizationsAddResponse) Error ¶
func (r *OrganizationsAddResponse) Error() *errors.Error
Error returns the response error.
func (*OrganizationsAddResponse) GetBody ¶ added in v0.1.16
func (r *OrganizationsAddResponse) GetBody() (value *Organization, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Organization data.
func (*OrganizationsAddResponse) Header ¶
func (r *OrganizationsAddResponse) Header() http.Header
Header returns header of the response.
func (*OrganizationsAddResponse) Status ¶
func (r *OrganizationsAddResponse) Status() int
Status returns the response status code.
type OrganizationsAddServerRequest ¶ added in v0.1.27
type OrganizationsAddServerRequest struct {
// contains filtered or unexported fields
}
OrganizationsAddServerRequest is the request for the 'add' method.
func (*OrganizationsAddServerRequest) Body ¶ added in v0.1.27
func (r *OrganizationsAddServerRequest) Body() *Organization
Body returns the value of the 'body' parameter.
Organization data.
func (*OrganizationsAddServerRequest) GetBody ¶ added in v0.1.27
func (r *OrganizationsAddServerRequest) GetBody() (value *Organization, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Organization data.
type OrganizationsAddServerResponse ¶ added in v0.1.27
type OrganizationsAddServerResponse struct {
// contains filtered or unexported fields
}
OrganizationsAddServerResponse is the response for the 'add' method.
func (*OrganizationsAddServerResponse) Body ¶ added in v0.1.27
func (r *OrganizationsAddServerResponse) Body(value *Organization) *OrganizationsAddServerResponse
Body sets the value of the 'body' parameter.
Organization data.
func (*OrganizationsAddServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *OrganizationsAddServerResponse) SetStatusCode(status int) *OrganizationsAddServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type OrganizationsClient ¶
type OrganizationsClient struct {
// contains filtered or unexported fields
}
OrganizationsClient is the client of the 'organizations' resource.
Manages the collection of organizations.
func NewOrganizationsClient ¶
func NewOrganizationsClient(transport http.RoundTripper, path string, metric string) *OrganizationsClient
NewOrganizationsClient creates a new client for the 'organizations' resource using the given transport to sned the requests and receive the responses.
func (*OrganizationsClient) Add ¶
func (c *OrganizationsClient) Add() *OrganizationsAddRequest
Add creates a request for the 'add' method.
Creates a new organization.
func (*OrganizationsClient) List ¶
func (c *OrganizationsClient) List() *OrganizationsListRequest
List creates a request for the 'list' method.
Retrieves a list of organizations.
func (*OrganizationsClient) Organization ¶
func (c *OrganizationsClient) Organization(id string) *OrganizationClient
Organization returns the target 'organization' resource for the given identifier.
Reference to the service that manages a specific organization.
type OrganizationsListRequest ¶
type OrganizationsListRequest struct {
// contains filtered or unexported fields
}
OrganizationsListRequest is the request for the 'list' method.
func (*OrganizationsListRequest) Header ¶
func (r *OrganizationsListRequest) Header(name string, value interface{}) *OrganizationsListRequest
Header adds a request header.
func (*OrganizationsListRequest) Page ¶
func (r *OrganizationsListRequest) Page(value int) *OrganizationsListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*OrganizationsListRequest) Parameter ¶
func (r *OrganizationsListRequest) Parameter(name string, value interface{}) *OrganizationsListRequest
Parameter adds a query parameter.
func (*OrganizationsListRequest) Send ¶
func (r *OrganizationsListRequest) Send() (result *OrganizationsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*OrganizationsListRequest) SendContext ¶ added in v0.1.10
func (r *OrganizationsListRequest) SendContext(ctx context.Context) (result *OrganizationsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*OrganizationsListRequest) Size ¶
func (r *OrganizationsListRequest) Size(value int) *OrganizationsListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*OrganizationsListRequest) Total ¶
func (r *OrganizationsListRequest) Total(value int) *OrganizationsListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type OrganizationsListResponse ¶
type OrganizationsListResponse struct {
// contains filtered or unexported fields
}
OrganizationsListResponse is the response for the 'list' method.
func (*OrganizationsListResponse) Error ¶
func (r *OrganizationsListResponse) Error() *errors.Error
Error returns the response error.
func (*OrganizationsListResponse) GetItems ¶ added in v0.1.16
func (r *OrganizationsListResponse) GetItems() (value *OrganizationList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of organizations.
func (*OrganizationsListResponse) GetPage ¶ added in v0.1.16
func (r *OrganizationsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*OrganizationsListResponse) GetSize ¶ added in v0.1.16
func (r *OrganizationsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*OrganizationsListResponse) GetTotal ¶ added in v0.1.16
func (r *OrganizationsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*OrganizationsListResponse) Header ¶
func (r *OrganizationsListResponse) Header() http.Header
Header returns header of the response.
func (*OrganizationsListResponse) Items ¶
func (r *OrganizationsListResponse) Items() *OrganizationList
Items returns the value of the 'items' parameter.
Retrieved list of organizations.
func (*OrganizationsListResponse) Page ¶
func (r *OrganizationsListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*OrganizationsListResponse) Size ¶
func (r *OrganizationsListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*OrganizationsListResponse) Status ¶
func (r *OrganizationsListResponse) Status() int
Status returns the response status code.
func (*OrganizationsListResponse) Total ¶
func (r *OrganizationsListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type OrganizationsListServerRequest ¶ added in v0.1.27
type OrganizationsListServerRequest struct {
// contains filtered or unexported fields
}
OrganizationsListServerRequest is the request for the 'list' method.
func (*OrganizationsListServerRequest) GetPage ¶ added in v0.1.27
func (r *OrganizationsListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*OrganizationsListServerRequest) GetSize ¶ added in v0.1.27
func (r *OrganizationsListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*OrganizationsListServerRequest) GetTotal ¶ added in v0.1.27
func (r *OrganizationsListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*OrganizationsListServerRequest) Page ¶ added in v0.1.27
func (r *OrganizationsListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*OrganizationsListServerRequest) Size ¶ added in v0.1.27
func (r *OrganizationsListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*OrganizationsListServerRequest) Total ¶ added in v0.1.27
func (r *OrganizationsListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type OrganizationsListServerResponse ¶ added in v0.1.27
type OrganizationsListServerResponse struct {
// contains filtered or unexported fields
}
OrganizationsListServerResponse is the response for the 'list' method.
func (*OrganizationsListServerResponse) Items ¶ added in v0.1.27
func (r *OrganizationsListServerResponse) Items(value *OrganizationList) *OrganizationsListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of organizations.
func (*OrganizationsListServerResponse) Page ¶ added in v0.1.27
func (r *OrganizationsListServerResponse) Page(value int) *OrganizationsListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*OrganizationsListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *OrganizationsListServerResponse) SetStatusCode(status int) *OrganizationsListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*OrganizationsListServerResponse) Size ¶ added in v0.1.27
func (r *OrganizationsListServerResponse) Size(value int) *OrganizationsListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*OrganizationsListServerResponse) Total ¶ added in v0.1.27
func (r *OrganizationsListServerResponse) Total(value int) *OrganizationsListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type OrganizationsServer ¶ added in v0.1.27
type OrganizationsServer interface { // List handles a request for the 'list' method. // // Retrieves a list of organizations. List(ctx context.Context, request *OrganizationsListServerRequest, response *OrganizationsListServerResponse) error // Add handles a request for the 'add' method. // // Creates a new organization. Add(ctx context.Context, request *OrganizationsAddServerRequest, response *OrganizationsAddServerResponse) error // Organization returns the target 'organization' server for the given identifier. // // Reference to the service that manages a specific organization. Organization(id string) OrganizationServer }
OrganizationsServer represents the interface the manages the 'organizations' resource.
type OrganizationsServerAdapter ¶ added in v0.1.27
type OrganizationsServerAdapter struct {
// contains filtered or unexported fields
}
OrganizationsServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewOrganizationsServerAdapter ¶ added in v0.1.27
func NewOrganizationsServerAdapter(server OrganizationsServer, router *mux.Router) *OrganizationsServerAdapter
func (*OrganizationsServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *OrganizationsServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Permission ¶
type Permission struct {
// contains filtered or unexported fields
}
Permission represents the values of the 'permission' type.
func UnmarshalPermission ¶
func UnmarshalPermission(source interface{}) (object *Permission, err error)
UnmarshalPermission reads a value of the 'permission' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*Permission) Action ¶
func (o *Permission) Action() Action
Action returns the value of the 'action' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Permission) Empty ¶ added in v0.1.8
func (o *Permission) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Permission) GetAction ¶
func (o *Permission) GetAction() (value Action, ok bool)
GetAction returns the value of the 'action' attribute and a flag indicating if the attribute has a value.
func (*Permission) GetHREF ¶
func (o *Permission) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Permission) GetID ¶
func (o *Permission) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Permission) GetResourceType ¶
func (o *Permission) GetResourceType() (value string, ok bool)
GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.
func (*Permission) GetRoleID ¶
func (o *Permission) GetRoleID() (value string, ok bool)
GetRoleID returns the value of the 'role_ID' attribute and a flag indicating if the attribute has a value.
func (*Permission) Kind ¶
func (o *Permission) Kind() string
Kind returns the name of the type of the object.
func (*Permission) ResourceType ¶
func (o *Permission) ResourceType() string
ResourceType returns the value of the 'resource_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Permission) RoleID ¶
func (o *Permission) RoleID() string
RoleID returns the value of the 'role_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
type PermissionBuilder ¶
type PermissionBuilder struct {
// contains filtered or unexported fields
}
PermissionBuilder contains the data and logic needed to build 'permission' objects.
func NewPermission ¶
func NewPermission() *PermissionBuilder
NewPermission creates a new builder of 'permission' objects.
func (*PermissionBuilder) Action ¶
func (b *PermissionBuilder) Action(value Action) *PermissionBuilder
Action sets the value of the 'action' attribute to the given value.
Possible actions for a permission.
func (*PermissionBuilder) Build ¶
func (b *PermissionBuilder) Build() (object *Permission, err error)
Build creates a 'permission' object using the configuration stored in the builder.
func (*PermissionBuilder) HREF ¶
func (b *PermissionBuilder) HREF(value string) *PermissionBuilder
HREF sets the link to the object.
func (*PermissionBuilder) ID ¶
func (b *PermissionBuilder) ID(value string) *PermissionBuilder
ID sets the identifier of the object.
func (*PermissionBuilder) Link ¶
func (b *PermissionBuilder) Link(value bool) *PermissionBuilder
Link sets the flag that indicates if this is a link.
func (*PermissionBuilder) ResourceType ¶
func (b *PermissionBuilder) ResourceType(value string) *PermissionBuilder
ResourceType sets the value of the 'resource_type' attribute to the given value.
func (*PermissionBuilder) RoleID ¶
func (b *PermissionBuilder) RoleID(value string) *PermissionBuilder
RoleID sets the value of the 'role_ID' attribute to the given value.
type PermissionClient ¶
type PermissionClient struct {
// contains filtered or unexported fields
}
PermissionClient is the client of the 'permission' resource.
Manages a specific permission.
func NewPermissionClient ¶
func NewPermissionClient(transport http.RoundTripper, path string, metric string) *PermissionClient
NewPermissionClient creates a new client for the 'permission' resource using the given transport to sned the requests and receive the responses.
func (*PermissionClient) Delete ¶
func (c *PermissionClient) Delete() *PermissionDeleteRequest
Delete creates a request for the 'delete' method.
Deletes the permission.
func (*PermissionClient) Get ¶
func (c *PermissionClient) Get() *PermissionGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the permission.
type PermissionDeleteRequest ¶
type PermissionDeleteRequest struct {
// contains filtered or unexported fields
}
PermissionDeleteRequest is the request for the 'delete' method.
func (*PermissionDeleteRequest) Header ¶
func (r *PermissionDeleteRequest) Header(name string, value interface{}) *PermissionDeleteRequest
Header adds a request header.
func (*PermissionDeleteRequest) Parameter ¶
func (r *PermissionDeleteRequest) Parameter(name string, value interface{}) *PermissionDeleteRequest
Parameter adds a query parameter.
func (*PermissionDeleteRequest) Send ¶
func (r *PermissionDeleteRequest) Send() (result *PermissionDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*PermissionDeleteRequest) SendContext ¶ added in v0.1.10
func (r *PermissionDeleteRequest) SendContext(ctx context.Context) (result *PermissionDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type PermissionDeleteResponse ¶
type PermissionDeleteResponse struct {
// contains filtered or unexported fields
}
PermissionDeleteResponse is the response for the 'delete' method.
func (*PermissionDeleteResponse) Error ¶
func (r *PermissionDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*PermissionDeleteResponse) Header ¶
func (r *PermissionDeleteResponse) Header() http.Header
Header returns header of the response.
func (*PermissionDeleteResponse) Status ¶
func (r *PermissionDeleteResponse) Status() int
Status returns the response status code.
type PermissionDeleteServerRequest ¶ added in v0.1.27
type PermissionDeleteServerRequest struct {
// contains filtered or unexported fields
}
PermissionDeleteServerRequest is the request for the 'delete' method.
type PermissionDeleteServerResponse ¶ added in v0.1.27
type PermissionDeleteServerResponse struct {
// contains filtered or unexported fields
}
PermissionDeleteServerResponse is the response for the 'delete' method.
func (*PermissionDeleteServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *PermissionDeleteServerResponse) SetStatusCode(status int) *PermissionDeleteServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type PermissionGetRequest ¶
type PermissionGetRequest struct {
// contains filtered or unexported fields
}
PermissionGetRequest is the request for the 'get' method.
func (*PermissionGetRequest) Header ¶
func (r *PermissionGetRequest) Header(name string, value interface{}) *PermissionGetRequest
Header adds a request header.
func (*PermissionGetRequest) Parameter ¶
func (r *PermissionGetRequest) Parameter(name string, value interface{}) *PermissionGetRequest
Parameter adds a query parameter.
func (*PermissionGetRequest) Send ¶
func (r *PermissionGetRequest) Send() (result *PermissionGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*PermissionGetRequest) SendContext ¶ added in v0.1.10
func (r *PermissionGetRequest) SendContext(ctx context.Context) (result *PermissionGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type PermissionGetResponse ¶
type PermissionGetResponse struct {
// contains filtered or unexported fields
}
PermissionGetResponse is the response for the 'get' method.
func (*PermissionGetResponse) Body ¶
func (r *PermissionGetResponse) Body() *Permission
Body returns the value of the 'body' parameter.
func (*PermissionGetResponse) Error ¶
func (r *PermissionGetResponse) Error() *errors.Error
Error returns the response error.
func (*PermissionGetResponse) GetBody ¶ added in v0.1.16
func (r *PermissionGetResponse) GetBody() (value *Permission, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*PermissionGetResponse) Header ¶
func (r *PermissionGetResponse) Header() http.Header
Header returns header of the response.
func (*PermissionGetResponse) Status ¶
func (r *PermissionGetResponse) Status() int
Status returns the response status code.
type PermissionGetServerRequest ¶ added in v0.1.27
type PermissionGetServerRequest struct {
// contains filtered or unexported fields
}
PermissionGetServerRequest is the request for the 'get' method.
type PermissionGetServerResponse ¶ added in v0.1.27
type PermissionGetServerResponse struct {
// contains filtered or unexported fields
}
PermissionGetServerResponse is the response for the 'get' method.
func (*PermissionGetServerResponse) Body ¶ added in v0.1.27
func (r *PermissionGetServerResponse) Body(value *Permission) *PermissionGetServerResponse
Body sets the value of the 'body' parameter.
func (*PermissionGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *PermissionGetServerResponse) SetStatusCode(status int) *PermissionGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type PermissionList ¶
type PermissionList struct {
// contains filtered or unexported fields
}
PermissionList is a list of values of the 'permission' type.
func UnmarshalPermissionList ¶
func UnmarshalPermissionList(source interface{}) (list *PermissionList, err error)
UnmarshalPermissionList reads a list of values of the 'permission' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*PermissionList) Each ¶
func (l *PermissionList) Each(f func(item *Permission) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*PermissionList) Empty ¶ added in v0.1.8
func (l *PermissionList) Empty() bool
Empty returns true if the list is empty.
func (*PermissionList) Get ¶ added in v0.1.17
func (l *PermissionList) Get(i int) *Permission
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*PermissionList) GetHREF ¶ added in v0.1.7
func (l *PermissionList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*PermissionList) HREF ¶ added in v0.1.7
func (l *PermissionList) HREF() string
HREF returns the link to the list.
func (*PermissionList) Kind ¶ added in v0.1.7
func (l *PermissionList) Kind() string
Kind returns the name of the type of the object.
func (*PermissionList) Link ¶ added in v0.1.7
func (l *PermissionList) Link() bool
Link returns true iif this is a link.
func (*PermissionList) Range ¶
func (l *PermissionList) Range(f func(index int, item *Permission) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*PermissionList) Slice ¶
func (l *PermissionList) Slice() []*Permission
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type PermissionListBuilder ¶
type PermissionListBuilder struct {
// contains filtered or unexported fields
}
PermissionListBuilder contains the data and logic needed to build 'permission' objects.
func NewPermissionList ¶
func NewPermissionList() *PermissionListBuilder
NewPermissionList creates a new builder of 'permission' objects.
func (*PermissionListBuilder) Build ¶
func (b *PermissionListBuilder) Build() (list *PermissionList, err error)
Build creates a list of 'permission' objects using the configuration stored in the builder.
func (*PermissionListBuilder) Items ¶
func (b *PermissionListBuilder) Items(values ...*PermissionBuilder) *PermissionListBuilder
Items sets the items of the list.
type PermissionServer ¶ added in v0.1.27
type PermissionServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the permission. Get(ctx context.Context, request *PermissionGetServerRequest, response *PermissionGetServerResponse) error // Delete handles a request for the 'delete' method. // // Deletes the permission. Delete(ctx context.Context, request *PermissionDeleteServerRequest, response *PermissionDeleteServerResponse) error }
PermissionServer represents the interface the manages the 'permission' resource.
type PermissionServerAdapter ¶ added in v0.1.27
type PermissionServerAdapter struct {
// contains filtered or unexported fields
}
PermissionServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewPermissionServerAdapter ¶ added in v0.1.27
func NewPermissionServerAdapter(server PermissionServer, router *mux.Router) *PermissionServerAdapter
func (*PermissionServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *PermissionServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type PermissionsAddRequest ¶
type PermissionsAddRequest struct {
// contains filtered or unexported fields
}
PermissionsAddRequest is the request for the 'add' method.
func (*PermissionsAddRequest) Body ¶
func (r *PermissionsAddRequest) Body(value *Permission) *PermissionsAddRequest
Body sets the value of the 'body' parameter.
Permission data.
func (*PermissionsAddRequest) Header ¶
func (r *PermissionsAddRequest) Header(name string, value interface{}) *PermissionsAddRequest
Header adds a request header.
func (*PermissionsAddRequest) Parameter ¶
func (r *PermissionsAddRequest) Parameter(name string, value interface{}) *PermissionsAddRequest
Parameter adds a query parameter.
func (*PermissionsAddRequest) Send ¶
func (r *PermissionsAddRequest) Send() (result *PermissionsAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*PermissionsAddRequest) SendContext ¶ added in v0.1.10
func (r *PermissionsAddRequest) SendContext(ctx context.Context) (result *PermissionsAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type PermissionsAddResponse ¶
type PermissionsAddResponse struct {
// contains filtered or unexported fields
}
PermissionsAddResponse is the response for the 'add' method.
func (*PermissionsAddResponse) Body ¶
func (r *PermissionsAddResponse) Body() *Permission
Body returns the value of the 'body' parameter.
Permission data.
func (*PermissionsAddResponse) Error ¶
func (r *PermissionsAddResponse) Error() *errors.Error
Error returns the response error.
func (*PermissionsAddResponse) GetBody ¶ added in v0.1.16
func (r *PermissionsAddResponse) GetBody() (value *Permission, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Permission data.
func (*PermissionsAddResponse) Header ¶
func (r *PermissionsAddResponse) Header() http.Header
Header returns header of the response.
func (*PermissionsAddResponse) Status ¶
func (r *PermissionsAddResponse) Status() int
Status returns the response status code.
type PermissionsAddServerRequest ¶ added in v0.1.27
type PermissionsAddServerRequest struct {
// contains filtered or unexported fields
}
PermissionsAddServerRequest is the request for the 'add' method.
func (*PermissionsAddServerRequest) Body ¶ added in v0.1.27
func (r *PermissionsAddServerRequest) Body() *Permission
Body returns the value of the 'body' parameter.
Permission data.
func (*PermissionsAddServerRequest) GetBody ¶ added in v0.1.27
func (r *PermissionsAddServerRequest) GetBody() (value *Permission, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Permission data.
type PermissionsAddServerResponse ¶ added in v0.1.27
type PermissionsAddServerResponse struct {
// contains filtered or unexported fields
}
PermissionsAddServerResponse is the response for the 'add' method.
func (*PermissionsAddServerResponse) Body ¶ added in v0.1.27
func (r *PermissionsAddServerResponse) Body(value *Permission) *PermissionsAddServerResponse
Body sets the value of the 'body' parameter.
Permission data.
func (*PermissionsAddServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *PermissionsAddServerResponse) SetStatusCode(status int) *PermissionsAddServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type PermissionsClient ¶
type PermissionsClient struct {
// contains filtered or unexported fields
}
PermissionsClient is the client of the 'permissions' resource.
Manages the collection of permissions.
func NewPermissionsClient ¶
func NewPermissionsClient(transport http.RoundTripper, path string, metric string) *PermissionsClient
NewPermissionsClient creates a new client for the 'permissions' resource using the given transport to sned the requests and receive the responses.
func (*PermissionsClient) Add ¶
func (c *PermissionsClient) Add() *PermissionsAddRequest
Add creates a request for the 'add' method.
Creates a new permission.
func (*PermissionsClient) List ¶
func (c *PermissionsClient) List() *PermissionsListRequest
List creates a request for the 'list' method.
Retrieves a list of permissions.
func (*PermissionsClient) Permission ¶
func (c *PermissionsClient) Permission(id string) *PermissionClient
Permission returns the target 'permission' resource for the given identifier.
Reference to the service that manages an specific permission.
type PermissionsListRequest ¶
type PermissionsListRequest struct {
// contains filtered or unexported fields
}
PermissionsListRequest is the request for the 'list' method.
func (*PermissionsListRequest) Header ¶
func (r *PermissionsListRequest) Header(name string, value interface{}) *PermissionsListRequest
Header adds a request header.
func (*PermissionsListRequest) Page ¶
func (r *PermissionsListRequest) Page(value int) *PermissionsListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*PermissionsListRequest) Parameter ¶
func (r *PermissionsListRequest) Parameter(name string, value interface{}) *PermissionsListRequest
Parameter adds a query parameter.
func (*PermissionsListRequest) Send ¶
func (r *PermissionsListRequest) Send() (result *PermissionsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*PermissionsListRequest) SendContext ¶ added in v0.1.10
func (r *PermissionsListRequest) SendContext(ctx context.Context) (result *PermissionsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*PermissionsListRequest) Size ¶
func (r *PermissionsListRequest) Size(value int) *PermissionsListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*PermissionsListRequest) Total ¶
func (r *PermissionsListRequest) Total(value int) *PermissionsListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type PermissionsListResponse ¶
type PermissionsListResponse struct {
// contains filtered or unexported fields
}
PermissionsListResponse is the response for the 'list' method.
func (*PermissionsListResponse) Error ¶
func (r *PermissionsListResponse) Error() *errors.Error
Error returns the response error.
func (*PermissionsListResponse) GetItems ¶ added in v0.1.16
func (r *PermissionsListResponse) GetItems() (value *PermissionList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of permissions.
func (*PermissionsListResponse) GetPage ¶ added in v0.1.16
func (r *PermissionsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*PermissionsListResponse) GetSize ¶ added in v0.1.16
func (r *PermissionsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*PermissionsListResponse) GetTotal ¶ added in v0.1.16
func (r *PermissionsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*PermissionsListResponse) Header ¶
func (r *PermissionsListResponse) Header() http.Header
Header returns header of the response.
func (*PermissionsListResponse) Items ¶
func (r *PermissionsListResponse) Items() *PermissionList
Items returns the value of the 'items' parameter.
Retrieved list of permissions.
func (*PermissionsListResponse) Page ¶
func (r *PermissionsListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*PermissionsListResponse) Size ¶
func (r *PermissionsListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*PermissionsListResponse) Status ¶
func (r *PermissionsListResponse) Status() int
Status returns the response status code.
func (*PermissionsListResponse) Total ¶
func (r *PermissionsListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type PermissionsListServerRequest ¶ added in v0.1.27
type PermissionsListServerRequest struct {
// contains filtered or unexported fields
}
PermissionsListServerRequest is the request for the 'list' method.
func (*PermissionsListServerRequest) GetPage ¶ added in v0.1.27
func (r *PermissionsListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*PermissionsListServerRequest) GetSize ¶ added in v0.1.27
func (r *PermissionsListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*PermissionsListServerRequest) GetTotal ¶ added in v0.1.27
func (r *PermissionsListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*PermissionsListServerRequest) Page ¶ added in v0.1.27
func (r *PermissionsListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*PermissionsListServerRequest) Size ¶ added in v0.1.27
func (r *PermissionsListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*PermissionsListServerRequest) Total ¶ added in v0.1.27
func (r *PermissionsListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type PermissionsListServerResponse ¶ added in v0.1.27
type PermissionsListServerResponse struct {
// contains filtered or unexported fields
}
PermissionsListServerResponse is the response for the 'list' method.
func (*PermissionsListServerResponse) Items ¶ added in v0.1.27
func (r *PermissionsListServerResponse) Items(value *PermissionList) *PermissionsListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of permissions.
func (*PermissionsListServerResponse) Page ¶ added in v0.1.27
func (r *PermissionsListServerResponse) Page(value int) *PermissionsListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*PermissionsListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *PermissionsListServerResponse) SetStatusCode(status int) *PermissionsListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*PermissionsListServerResponse) Size ¶ added in v0.1.27
func (r *PermissionsListServerResponse) Size(value int) *PermissionsListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*PermissionsListServerResponse) Total ¶ added in v0.1.27
func (r *PermissionsListServerResponse) Total(value int) *PermissionsListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type PermissionsServer ¶ added in v0.1.27
type PermissionsServer interface { // List handles a request for the 'list' method. // // Retrieves a list of permissions. List(ctx context.Context, request *PermissionsListServerRequest, response *PermissionsListServerResponse) error // Add handles a request for the 'add' method. // // Creates a new permission. Add(ctx context.Context, request *PermissionsAddServerRequest, response *PermissionsAddServerResponse) error // Permission returns the target 'permission' server for the given identifier. // // Reference to the service that manages an specific permission. Permission(id string) PermissionServer }
PermissionsServer represents the interface the manages the 'permissions' resource.
type PermissionsServerAdapter ¶ added in v0.1.27
type PermissionsServerAdapter struct {
// contains filtered or unexported fields
}
PermissionsServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewPermissionsServerAdapter ¶ added in v0.1.27
func NewPermissionsServerAdapter(server PermissionsServer, router *mux.Router) *PermissionsServerAdapter
func (*PermissionsServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *PermissionsServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Plan ¶
type Plan struct {
// contains filtered or unexported fields
}
Plan represents the values of the 'plan' type.
func UnmarshalPlan ¶
UnmarshalPlan reads a value of the 'plan' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*Plan) Empty ¶ added in v0.1.8
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Plan) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
type PlanBuilder ¶
type PlanBuilder struct {
// contains filtered or unexported fields
}
PlanBuilder contains the data and logic needed to build 'plan' objects.
func (*PlanBuilder) Build ¶
func (b *PlanBuilder) Build() (object *Plan, err error)
Build creates a 'plan' object using the configuration stored in the builder.
func (*PlanBuilder) HREF ¶
func (b *PlanBuilder) HREF(value string) *PlanBuilder
HREF sets the link to the object.
func (*PlanBuilder) ID ¶
func (b *PlanBuilder) ID(value string) *PlanBuilder
ID sets the identifier of the object.
func (*PlanBuilder) Link ¶
func (b *PlanBuilder) Link(value bool) *PlanBuilder
Link sets the flag that indicates if this is a link.
type PlanList ¶
type PlanList struct {
// contains filtered or unexported fields
}
PlanList is a list of values of the 'plan' type.
func UnmarshalPlanList ¶
UnmarshalPlanList reads a list of values of the 'plan' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*PlanList) Each ¶
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*PlanList) Get ¶ added in v0.1.17
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*PlanList) GetHREF ¶ added in v0.1.7
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*PlanList) Range ¶
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*PlanList) Slice ¶
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type PlanListBuilder ¶
type PlanListBuilder struct {
// contains filtered or unexported fields
}
PlanListBuilder contains the data and logic needed to build 'plan' objects.
func NewPlanList ¶
func NewPlanList() *PlanListBuilder
NewPlanList creates a new builder of 'plan' objects.
func (*PlanListBuilder) Build ¶
func (b *PlanListBuilder) Build() (list *PlanList, err error)
Build creates a list of 'plan' objects using the configuration stored in the builder.
func (*PlanListBuilder) Items ¶
func (b *PlanListBuilder) Items(values ...*PlanBuilder) *PlanListBuilder
Items sets the items of the list.
type QuotaSummary ¶ added in v0.1.26
type QuotaSummary struct {
// contains filtered or unexported fields
}
QuotaSummary represents the values of the 'quota_summary' type.
func UnmarshalQuotaSummary ¶ added in v0.1.26
func UnmarshalQuotaSummary(source interface{}) (object *QuotaSummary, err error)
UnmarshalQuotaSummary reads a value of the 'quota_summary' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*QuotaSummary) Allowed ¶ added in v0.1.26
func (o *QuotaSummary) Allowed() int
Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*QuotaSummary) AvailabilityZoneType ¶ added in v0.1.26
func (o *QuotaSummary) AvailabilityZoneType() string
AvailabilityZoneType returns the value of the 'availability_zone_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*QuotaSummary) BYOC ¶ added in v0.1.26
func (o *QuotaSummary) BYOC() bool
BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*QuotaSummary) Empty ¶ added in v0.1.26
func (o *QuotaSummary) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*QuotaSummary) GetAllowed ¶ added in v0.1.26
func (o *QuotaSummary) GetAllowed() (value int, ok bool)
GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.
func (*QuotaSummary) GetAvailabilityZoneType ¶ added in v0.1.26
func (o *QuotaSummary) GetAvailabilityZoneType() (value string, ok bool)
GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.
func (*QuotaSummary) GetBYOC ¶ added in v0.1.26
func (o *QuotaSummary) GetBYOC() (value bool, ok bool)
GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.
func (*QuotaSummary) GetOrganizationID ¶ added in v0.1.26
func (o *QuotaSummary) GetOrganizationID() (value string, ok bool)
GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.
func (*QuotaSummary) GetReserved ¶ added in v0.1.26
func (o *QuotaSummary) GetReserved() (value int, ok bool)
GetReserved returns the value of the 'reserved' attribute and a flag indicating if the attribute has a value.
func (*QuotaSummary) GetResourceName ¶ added in v0.1.26
func (o *QuotaSummary) GetResourceName() (value string, ok bool)
GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.
func (*QuotaSummary) GetResourceType ¶ added in v0.1.26
func (o *QuotaSummary) GetResourceType() (value string, ok bool)
GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.
func (*QuotaSummary) OrganizationID ¶ added in v0.1.26
func (o *QuotaSummary) OrganizationID() string
OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*QuotaSummary) Reserved ¶ added in v0.1.26
func (o *QuotaSummary) Reserved() int
Reserved returns the value of the 'reserved' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*QuotaSummary) ResourceName ¶ added in v0.1.26
func (o *QuotaSummary) ResourceName() string
ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*QuotaSummary) ResourceType ¶ added in v0.1.26
func (o *QuotaSummary) ResourceType() string
ResourceType returns the value of the 'resource_type' attribute, or the zero value of the type if the attribute doesn't have a value.
type QuotaSummaryBuilder ¶ added in v0.1.26
type QuotaSummaryBuilder struct {
// contains filtered or unexported fields
}
QuotaSummaryBuilder contains the data and logic needed to build 'quota_summary' objects.
func NewQuotaSummary ¶ added in v0.1.26
func NewQuotaSummary() *QuotaSummaryBuilder
NewQuotaSummary creates a new builder of 'quota_summary' objects.
func (*QuotaSummaryBuilder) Allowed ¶ added in v0.1.26
func (b *QuotaSummaryBuilder) Allowed(value int) *QuotaSummaryBuilder
Allowed sets the value of the 'allowed' attribute to the given value.
func (*QuotaSummaryBuilder) AvailabilityZoneType ¶ added in v0.1.26
func (b *QuotaSummaryBuilder) AvailabilityZoneType(value string) *QuotaSummaryBuilder
AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.
func (*QuotaSummaryBuilder) BYOC ¶ added in v0.1.26
func (b *QuotaSummaryBuilder) BYOC(value bool) *QuotaSummaryBuilder
BYOC sets the value of the 'BYOC' attribute to the given value.
func (*QuotaSummaryBuilder) Build ¶ added in v0.1.26
func (b *QuotaSummaryBuilder) Build() (object *QuotaSummary, err error)
Build creates a 'quota_summary' object using the configuration stored in the builder.
func (*QuotaSummaryBuilder) OrganizationID ¶ added in v0.1.26
func (b *QuotaSummaryBuilder) OrganizationID(value string) *QuotaSummaryBuilder
OrganizationID sets the value of the 'organization_ID' attribute to the given value.
func (*QuotaSummaryBuilder) Reserved ¶ added in v0.1.26
func (b *QuotaSummaryBuilder) Reserved(value int) *QuotaSummaryBuilder
Reserved sets the value of the 'reserved' attribute to the given value.
func (*QuotaSummaryBuilder) ResourceName ¶ added in v0.1.26
func (b *QuotaSummaryBuilder) ResourceName(value string) *QuotaSummaryBuilder
ResourceName sets the value of the 'resource_name' attribute to the given value.
func (*QuotaSummaryBuilder) ResourceType ¶ added in v0.1.26
func (b *QuotaSummaryBuilder) ResourceType(value string) *QuotaSummaryBuilder
ResourceType sets the value of the 'resource_type' attribute to the given value.
type QuotaSummaryClient ¶ added in v0.1.26
type QuotaSummaryClient struct {
// contains filtered or unexported fields
}
QuotaSummaryClient is the client of the 'quota_summary' resource.
Manages the quota summary for an organization.
func NewQuotaSummaryClient ¶ added in v0.1.26
func NewQuotaSummaryClient(transport http.RoundTripper, path string, metric string) *QuotaSummaryClient
NewQuotaSummaryClient creates a new client for the 'quota_summary' resource using the given transport to sned the requests and receive the responses.
func (*QuotaSummaryClient) List ¶ added in v0.1.26
func (c *QuotaSummaryClient) List() *QuotaSummaryListRequest
List creates a request for the 'list' method.
Retrieves the Quota summary.
type QuotaSummaryList ¶ added in v0.1.26
type QuotaSummaryList struct {
// contains filtered or unexported fields
}
QuotaSummaryList is a list of values of the 'quota_summary' type.
func UnmarshalQuotaSummaryList ¶ added in v0.1.26
func UnmarshalQuotaSummaryList(source interface{}) (list *QuotaSummaryList, err error)
UnmarshalQuotaSummaryList reads a list of values of the 'quota_summary' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*QuotaSummaryList) Each ¶ added in v0.1.26
func (l *QuotaSummaryList) Each(f func(item *QuotaSummary) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*QuotaSummaryList) Empty ¶ added in v0.1.26
func (l *QuotaSummaryList) Empty() bool
Empty returns true if the list is empty.
func (*QuotaSummaryList) Get ¶ added in v0.1.26
func (l *QuotaSummaryList) Get(i int) *QuotaSummary
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*QuotaSummaryList) Len ¶ added in v0.1.26
func (l *QuotaSummaryList) Len() int
Len returns the length of the list.
func (*QuotaSummaryList) Range ¶ added in v0.1.26
func (l *QuotaSummaryList) Range(f func(index int, item *QuotaSummary) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*QuotaSummaryList) Slice ¶ added in v0.1.26
func (l *QuotaSummaryList) Slice() []*QuotaSummary
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type QuotaSummaryListBuilder ¶ added in v0.1.26
type QuotaSummaryListBuilder struct {
// contains filtered or unexported fields
}
QuotaSummaryListBuilder contains the data and logic needed to build 'quota_summary' objects.
func NewQuotaSummaryList ¶ added in v0.1.26
func NewQuotaSummaryList() *QuotaSummaryListBuilder
NewQuotaSummaryList creates a new builder of 'quota_summary' objects.
func (*QuotaSummaryListBuilder) Build ¶ added in v0.1.26
func (b *QuotaSummaryListBuilder) Build() (list *QuotaSummaryList, err error)
Build creates a list of 'quota_summary' objects using the configuration stored in the builder.
func (*QuotaSummaryListBuilder) Items ¶ added in v0.1.26
func (b *QuotaSummaryListBuilder) Items(values ...*QuotaSummaryBuilder) *QuotaSummaryListBuilder
Items sets the items of the list.
type QuotaSummaryListRequest ¶ added in v0.1.26
type QuotaSummaryListRequest struct {
// contains filtered or unexported fields
}
QuotaSummaryListRequest is the request for the 'list' method.
func (*QuotaSummaryListRequest) Header ¶ added in v0.1.26
func (r *QuotaSummaryListRequest) Header(name string, value interface{}) *QuotaSummaryListRequest
Header adds a request header.
func (*QuotaSummaryListRequest) Page ¶ added in v0.1.26
func (r *QuotaSummaryListRequest) Page(value int) *QuotaSummaryListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*QuotaSummaryListRequest) Parameter ¶ added in v0.1.26
func (r *QuotaSummaryListRequest) Parameter(name string, value interface{}) *QuotaSummaryListRequest
Parameter adds a query parameter.
func (*QuotaSummaryListRequest) Search ¶ added in v0.1.26
func (r *QuotaSummaryListRequest) Search(value string) *QuotaSummaryListRequest
Search sets the value of the 'search' parameter.
Search criteria.
The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the quota summary instead of the names of the columns of a table. For example, in order to retrieve the quota summary for clusters that run in multiple availability zones:
[source,sql] ---- availability_zone_type = 'multi' ----
If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.
func (*QuotaSummaryListRequest) Send ¶ added in v0.1.26
func (r *QuotaSummaryListRequest) Send() (result *QuotaSummaryListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*QuotaSummaryListRequest) SendContext ¶ added in v0.1.26
func (r *QuotaSummaryListRequest) SendContext(ctx context.Context) (result *QuotaSummaryListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*QuotaSummaryListRequest) Size ¶ added in v0.1.26
func (r *QuotaSummaryListRequest) Size(value int) *QuotaSummaryListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*QuotaSummaryListRequest) Total ¶ added in v0.1.26
func (r *QuotaSummaryListRequest) Total(value int) *QuotaSummaryListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type QuotaSummaryListResponse ¶ added in v0.1.26
type QuotaSummaryListResponse struct {
// contains filtered or unexported fields
}
QuotaSummaryListResponse is the response for the 'list' method.
func (*QuotaSummaryListResponse) Error ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) Error() *errors.Error
Error returns the response error.
func (*QuotaSummaryListResponse) GetItems ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) GetItems() (value *QuotaSummaryList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved quota summary items.
func (*QuotaSummaryListResponse) GetPage ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*QuotaSummaryListResponse) GetSize ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*QuotaSummaryListResponse) GetTotal ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*QuotaSummaryListResponse) Header ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) Header() http.Header
Header returns header of the response.
func (*QuotaSummaryListResponse) Items ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) Items() *QuotaSummaryList
Items returns the value of the 'items' parameter.
Retrieved quota summary items.
func (*QuotaSummaryListResponse) Page ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*QuotaSummaryListResponse) Size ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*QuotaSummaryListResponse) Status ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) Status() int
Status returns the response status code.
func (*QuotaSummaryListResponse) Total ¶ added in v0.1.26
func (r *QuotaSummaryListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type QuotaSummaryListServerRequest ¶ added in v0.1.27
type QuotaSummaryListServerRequest struct {
// contains filtered or unexported fields
}
QuotaSummaryListServerRequest is the request for the 'list' method.
func (*QuotaSummaryListServerRequest) GetPage ¶ added in v0.1.27
func (r *QuotaSummaryListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*QuotaSummaryListServerRequest) GetSearch ¶ added in v0.1.27
func (r *QuotaSummaryListServerRequest) GetSearch() (value string, ok bool)
GetSearch returns the value of the 'search' parameter and a flag indicating if the parameter has a value.
Search criteria.
The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the quota summary instead of the names of the columns of a table. For example, in order to retrieve the quota summary for clusters that run in multiple availability zones:
[source,sql] ---- availability_zone_type = 'multi' ----
If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.
func (*QuotaSummaryListServerRequest) GetSize ¶ added in v0.1.27
func (r *QuotaSummaryListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*QuotaSummaryListServerRequest) GetTotal ¶ added in v0.1.27
func (r *QuotaSummaryListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*QuotaSummaryListServerRequest) Page ¶ added in v0.1.27
func (r *QuotaSummaryListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*QuotaSummaryListServerRequest) Search ¶ added in v0.1.27
func (r *QuotaSummaryListServerRequest) Search() string
Search returns the value of the 'search' parameter.
Search criteria.
The syntax of this parameter is similar to the syntax of the _where_ clause of an SQL statement, but using the names of the attributes of the quota summary instead of the names of the columns of a table. For example, in order to retrieve the quota summary for clusters that run in multiple availability zones:
[source,sql] ---- availability_zone_type = 'multi' ----
If the parameter isn't provided, or if the value is empty, then all the items that the user has permission to see will be returned.
func (*QuotaSummaryListServerRequest) Size ¶ added in v0.1.27
func (r *QuotaSummaryListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*QuotaSummaryListServerRequest) Total ¶ added in v0.1.27
func (r *QuotaSummaryListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type QuotaSummaryListServerResponse ¶ added in v0.1.27
type QuotaSummaryListServerResponse struct {
// contains filtered or unexported fields
}
QuotaSummaryListServerResponse is the response for the 'list' method.
func (*QuotaSummaryListServerResponse) Items ¶ added in v0.1.27
func (r *QuotaSummaryListServerResponse) Items(value *QuotaSummaryList) *QuotaSummaryListServerResponse
Items sets the value of the 'items' parameter.
Retrieved quota summary items.
func (*QuotaSummaryListServerResponse) Page ¶ added in v0.1.27
func (r *QuotaSummaryListServerResponse) Page(value int) *QuotaSummaryListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*QuotaSummaryListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *QuotaSummaryListServerResponse) SetStatusCode(status int) *QuotaSummaryListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*QuotaSummaryListServerResponse) Size ¶ added in v0.1.27
func (r *QuotaSummaryListServerResponse) Size(value int) *QuotaSummaryListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*QuotaSummaryListServerResponse) Total ¶ added in v0.1.27
func (r *QuotaSummaryListServerResponse) Total(value int) *QuotaSummaryListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type QuotaSummaryServer ¶ added in v0.1.27
type QuotaSummaryServer interface { // List handles a request for the 'list' method. // // Retrieves the Quota summary. List(ctx context.Context, request *QuotaSummaryListServerRequest, response *QuotaSummaryListServerResponse) error }
QuotaSummaryServer represents the interface the manages the 'quota_summary' resource.
type QuotaSummaryServerAdapter ¶ added in v0.1.27
type QuotaSummaryServerAdapter struct {
// contains filtered or unexported fields
}
QuotaSummaryServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewQuotaSummaryServerAdapter ¶ added in v0.1.27
func NewQuotaSummaryServerAdapter(server QuotaSummaryServer, router *mux.Router) *QuotaSummaryServerAdapter
func (*QuotaSummaryServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *QuotaSummaryServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RegistriesClient ¶
type RegistriesClient struct {
// contains filtered or unexported fields
}
RegistriesClient is the client of the 'registries' resource.
Manages the collection of registries.
func NewRegistriesClient ¶
func NewRegistriesClient(transport http.RoundTripper, path string, metric string) *RegistriesClient
NewRegistriesClient creates a new client for the 'registries' resource using the given transport to sned the requests and receive the responses.
func (*RegistriesClient) List ¶
func (c *RegistriesClient) List() *RegistriesListRequest
List creates a request for the 'list' method.
Retrieves a list of registries.
func (*RegistriesClient) Registry ¶
func (c *RegistriesClient) Registry(id string) *RegistryClient
Registry returns the target 'registry' resource for the given identifier.
Reference to the service that manages a specific registry.
type RegistriesListRequest ¶
type RegistriesListRequest struct {
// contains filtered or unexported fields
}
RegistriesListRequest is the request for the 'list' method.
func (*RegistriesListRequest) Header ¶
func (r *RegistriesListRequest) Header(name string, value interface{}) *RegistriesListRequest
Header adds a request header.
func (*RegistriesListRequest) Page ¶
func (r *RegistriesListRequest) Page(value int) *RegistriesListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistriesListRequest) Parameter ¶
func (r *RegistriesListRequest) Parameter(name string, value interface{}) *RegistriesListRequest
Parameter adds a query parameter.
func (*RegistriesListRequest) Send ¶
func (r *RegistriesListRequest) Send() (result *RegistriesListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RegistriesListRequest) SendContext ¶ added in v0.1.10
func (r *RegistriesListRequest) SendContext(ctx context.Context) (result *RegistriesListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*RegistriesListRequest) Size ¶
func (r *RegistriesListRequest) Size(value int) *RegistriesListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistriesListRequest) Total ¶
func (r *RegistriesListRequest) Total(value int) *RegistriesListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RegistriesListResponse ¶
type RegistriesListResponse struct {
// contains filtered or unexported fields
}
RegistriesListResponse is the response for the 'list' method.
func (*RegistriesListResponse) Error ¶
func (r *RegistriesListResponse) Error() *errors.Error
Error returns the response error.
func (*RegistriesListResponse) GetItems ¶ added in v0.1.16
func (r *RegistriesListResponse) GetItems() (value *RegistryList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of registries.
func (*RegistriesListResponse) GetPage ¶ added in v0.1.16
func (r *RegistriesListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistriesListResponse) GetSize ¶ added in v0.1.16
func (r *RegistriesListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistriesListResponse) GetTotal ¶ added in v0.1.16
func (r *RegistriesListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*RegistriesListResponse) Header ¶
func (r *RegistriesListResponse) Header() http.Header
Header returns header of the response.
func (*RegistriesListResponse) Items ¶
func (r *RegistriesListResponse) Items() *RegistryList
Items returns the value of the 'items' parameter.
Retrieved list of registries.
func (*RegistriesListResponse) Page ¶
func (r *RegistriesListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistriesListResponse) Size ¶
func (r *RegistriesListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistriesListResponse) Status ¶
func (r *RegistriesListResponse) Status() int
Status returns the response status code.
func (*RegistriesListResponse) Total ¶
func (r *RegistriesListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RegistriesListServerRequest ¶ added in v0.1.27
type RegistriesListServerRequest struct {
// contains filtered or unexported fields
}
RegistriesListServerRequest is the request for the 'list' method.
func (*RegistriesListServerRequest) GetPage ¶ added in v0.1.27
func (r *RegistriesListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistriesListServerRequest) GetSize ¶ added in v0.1.27
func (r *RegistriesListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistriesListServerRequest) GetTotal ¶ added in v0.1.27
func (r *RegistriesListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*RegistriesListServerRequest) Page ¶ added in v0.1.27
func (r *RegistriesListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistriesListServerRequest) Size ¶ added in v0.1.27
func (r *RegistriesListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistriesListServerRequest) Total ¶ added in v0.1.27
func (r *RegistriesListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RegistriesListServerResponse ¶ added in v0.1.27
type RegistriesListServerResponse struct {
// contains filtered or unexported fields
}
RegistriesListServerResponse is the response for the 'list' method.
func (*RegistriesListServerResponse) Items ¶ added in v0.1.27
func (r *RegistriesListServerResponse) Items(value *RegistryList) *RegistriesListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of registries.
func (*RegistriesListServerResponse) Page ¶ added in v0.1.27
func (r *RegistriesListServerResponse) Page(value int) *RegistriesListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistriesListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RegistriesListServerResponse) SetStatusCode(status int) *RegistriesListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*RegistriesListServerResponse) Size ¶ added in v0.1.27
func (r *RegistriesListServerResponse) Size(value int) *RegistriesListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistriesListServerResponse) Total ¶ added in v0.1.27
func (r *RegistriesListServerResponse) Total(value int) *RegistriesListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RegistriesServer ¶ added in v0.1.27
type RegistriesServer interface { // List handles a request for the 'list' method. // // Retrieves a list of registries. List(ctx context.Context, request *RegistriesListServerRequest, response *RegistriesListServerResponse) error // Registry returns the target 'registry' server for the given identifier. // // Reference to the service that manages a specific registry. Registry(id string) RegistryServer }
RegistriesServer represents the interface the manages the 'registries' resource.
type RegistriesServerAdapter ¶ added in v0.1.27
type RegistriesServerAdapter struct {
// contains filtered or unexported fields
}
RegistriesServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRegistriesServerAdapter ¶ added in v0.1.27
func NewRegistriesServerAdapter(server RegistriesServer, router *mux.Router) *RegistriesServerAdapter
func (*RegistriesServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RegistriesServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
Registry represents the values of the 'registry' type.
func UnmarshalRegistry ¶
UnmarshalRegistry reads a value of the 'registry' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*Registry) CloudAlias ¶
CloudAlias returns the value of the 'cloud_alias' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Registry) Empty ¶ added in v0.1.8
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Registry) GetCloudAlias ¶
GetCloudAlias returns the value of the 'cloud_alias' attribute and a flag indicating if the attribute has a value.
func (*Registry) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Registry) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Registry) GetName ¶
GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.
func (*Registry) GetOrgName ¶
GetOrgName returns the value of the 'org_name' attribute and a flag indicating if the attribute has a value.
func (*Registry) GetTeamName ¶
GetTeamName returns the value of the 'team_name' attribute and a flag indicating if the attribute has a value.
func (*Registry) GetType ¶
GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.
func (*Registry) GetURL ¶
GetURL returns the value of the 'URL' attribute and a flag indicating if the attribute has a value.
func (*Registry) Name ¶
Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Registry) OrgName ¶
OrgName returns the value of the 'org_name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Registry) TeamName ¶
TeamName returns the value of the 'team_name' attribute, or the zero value of the type if the attribute doesn't have a value.
type RegistryBuilder ¶
type RegistryBuilder struct {
// contains filtered or unexported fields
}
RegistryBuilder contains the data and logic needed to build 'registry' objects.
func NewRegistry ¶
func NewRegistry() *RegistryBuilder
NewRegistry creates a new builder of 'registry' objects.
func (*RegistryBuilder) Build ¶
func (b *RegistryBuilder) Build() (object *Registry, err error)
Build creates a 'registry' object using the configuration stored in the builder.
func (*RegistryBuilder) CloudAlias ¶
func (b *RegistryBuilder) CloudAlias(value bool) *RegistryBuilder
CloudAlias sets the value of the 'cloud_alias' attribute to the given value.
func (*RegistryBuilder) HREF ¶
func (b *RegistryBuilder) HREF(value string) *RegistryBuilder
HREF sets the link to the object.
func (*RegistryBuilder) ID ¶
func (b *RegistryBuilder) ID(value string) *RegistryBuilder
ID sets the identifier of the object.
func (*RegistryBuilder) Link ¶
func (b *RegistryBuilder) Link(value bool) *RegistryBuilder
Link sets the flag that indicates if this is a link.
func (*RegistryBuilder) Name ¶
func (b *RegistryBuilder) Name(value string) *RegistryBuilder
Name sets the value of the 'name' attribute to the given value.
func (*RegistryBuilder) OrgName ¶
func (b *RegistryBuilder) OrgName(value string) *RegistryBuilder
OrgName sets the value of the 'org_name' attribute to the given value.
func (*RegistryBuilder) TeamName ¶
func (b *RegistryBuilder) TeamName(value string) *RegistryBuilder
TeamName sets the value of the 'team_name' attribute to the given value.
func (*RegistryBuilder) Type ¶
func (b *RegistryBuilder) Type(value string) *RegistryBuilder
Type sets the value of the 'type' attribute to the given value.
func (*RegistryBuilder) URL ¶
func (b *RegistryBuilder) URL(value string) *RegistryBuilder
URL sets the value of the 'URL' attribute to the given value.
type RegistryClient ¶
type RegistryClient struct {
// contains filtered or unexported fields
}
RegistryClient is the client of the 'registry' resource.
Manages a specific registry.
func NewRegistryClient ¶
func NewRegistryClient(transport http.RoundTripper, path string, metric string) *RegistryClient
NewRegistryClient creates a new client for the 'registry' resource using the given transport to sned the requests and receive the responses.
func (*RegistryClient) Get ¶
func (c *RegistryClient) Get() *RegistryGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the registry.
type RegistryCredential ¶
type RegistryCredential struct {
// contains filtered or unexported fields
}
RegistryCredential represents the values of the 'registry_credential' type.
func UnmarshalRegistryCredential ¶
func UnmarshalRegistryCredential(source interface{}) (object *RegistryCredential, err error)
UnmarshalRegistryCredential reads a value of the 'registry_credential' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*RegistryCredential) Account ¶
func (o *RegistryCredential) Account() *Account
Account returns the value of the 'account' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*RegistryCredential) Empty ¶ added in v0.1.8
func (o *RegistryCredential) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*RegistryCredential) GetAccount ¶
func (o *RegistryCredential) GetAccount() (value *Account, ok bool)
GetAccount returns the value of the 'account' attribute and a flag indicating if the attribute has a value.
func (*RegistryCredential) GetHREF ¶
func (o *RegistryCredential) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*RegistryCredential) GetID ¶
func (o *RegistryCredential) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*RegistryCredential) GetRegistry ¶
func (o *RegistryCredential) GetRegistry() (value *Registry, ok bool)
GetRegistry returns the value of the 'registry' attribute and a flag indicating if the attribute has a value.
func (*RegistryCredential) GetToken ¶
func (o *RegistryCredential) GetToken() (value string, ok bool)
GetToken returns the value of the 'token' attribute and a flag indicating if the attribute has a value.
func (*RegistryCredential) GetUsername ¶
func (o *RegistryCredential) GetUsername() (value string, ok bool)
GetUsername returns the value of the 'username' attribute and a flag indicating if the attribute has a value.
func (*RegistryCredential) HREF ¶
func (o *RegistryCredential) HREF() string
HREF returns the link to the object.
func (*RegistryCredential) ID ¶
func (o *RegistryCredential) ID() string
ID returns the identifier of the object.
func (*RegistryCredential) Kind ¶
func (o *RegistryCredential) Kind() string
Kind returns the name of the type of the object.
func (*RegistryCredential) Link ¶
func (o *RegistryCredential) Link() bool
Link returns true iif this is a link.
func (*RegistryCredential) Registry ¶
func (o *RegistryCredential) Registry() *Registry
Registry returns the value of the 'registry' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*RegistryCredential) Token ¶
func (o *RegistryCredential) Token() string
Token returns the value of the 'token' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*RegistryCredential) Username ¶
func (o *RegistryCredential) Username() string
Username returns the value of the 'username' attribute, or the zero value of the type if the attribute doesn't have a value.
type RegistryCredentialBuilder ¶
type RegistryCredentialBuilder struct {
// contains filtered or unexported fields
}
RegistryCredentialBuilder contains the data and logic needed to build 'registry_credential' objects.
func NewRegistryCredential ¶
func NewRegistryCredential() *RegistryCredentialBuilder
NewRegistryCredential creates a new builder of 'registry_credential' objects.
func (*RegistryCredentialBuilder) Account ¶
func (b *RegistryCredentialBuilder) Account(value *AccountBuilder) *RegistryCredentialBuilder
Account sets the value of the 'account' attribute to the given value.
func (*RegistryCredentialBuilder) Build ¶
func (b *RegistryCredentialBuilder) Build() (object *RegistryCredential, err error)
Build creates a 'registry_credential' object using the configuration stored in the builder.
func (*RegistryCredentialBuilder) HREF ¶
func (b *RegistryCredentialBuilder) HREF(value string) *RegistryCredentialBuilder
HREF sets the link to the object.
func (*RegistryCredentialBuilder) ID ¶
func (b *RegistryCredentialBuilder) ID(value string) *RegistryCredentialBuilder
ID sets the identifier of the object.
func (*RegistryCredentialBuilder) Link ¶
func (b *RegistryCredentialBuilder) Link(value bool) *RegistryCredentialBuilder
Link sets the flag that indicates if this is a link.
func (*RegistryCredentialBuilder) Registry ¶
func (b *RegistryCredentialBuilder) Registry(value *RegistryBuilder) *RegistryCredentialBuilder
Registry sets the value of the 'registry' attribute to the given value.
func (*RegistryCredentialBuilder) Token ¶
func (b *RegistryCredentialBuilder) Token(value string) *RegistryCredentialBuilder
Token sets the value of the 'token' attribute to the given value.
func (*RegistryCredentialBuilder) Username ¶
func (b *RegistryCredentialBuilder) Username(value string) *RegistryCredentialBuilder
Username sets the value of the 'username' attribute to the given value.
type RegistryCredentialClient ¶
type RegistryCredentialClient struct {
// contains filtered or unexported fields
}
RegistryCredentialClient is the client of the 'registry_credential' resource.
Manages a specific registry credential.
func NewRegistryCredentialClient ¶
func NewRegistryCredentialClient(transport http.RoundTripper, path string, metric string) *RegistryCredentialClient
NewRegistryCredentialClient creates a new client for the 'registry_credential' resource using the given transport to sned the requests and receive the responses.
func (*RegistryCredentialClient) Get ¶
func (c *RegistryCredentialClient) Get() *RegistryCredentialGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the registry credential.
type RegistryCredentialGetRequest ¶
type RegistryCredentialGetRequest struct {
// contains filtered or unexported fields
}
RegistryCredentialGetRequest is the request for the 'get' method.
func (*RegistryCredentialGetRequest) Header ¶
func (r *RegistryCredentialGetRequest) Header(name string, value interface{}) *RegistryCredentialGetRequest
Header adds a request header.
func (*RegistryCredentialGetRequest) Parameter ¶
func (r *RegistryCredentialGetRequest) Parameter(name string, value interface{}) *RegistryCredentialGetRequest
Parameter adds a query parameter.
func (*RegistryCredentialGetRequest) Send ¶
func (r *RegistryCredentialGetRequest) Send() (result *RegistryCredentialGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RegistryCredentialGetRequest) SendContext ¶ added in v0.1.10
func (r *RegistryCredentialGetRequest) SendContext(ctx context.Context) (result *RegistryCredentialGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RegistryCredentialGetResponse ¶
type RegistryCredentialGetResponse struct {
// contains filtered or unexported fields
}
RegistryCredentialGetResponse is the response for the 'get' method.
func (*RegistryCredentialGetResponse) Body ¶
func (r *RegistryCredentialGetResponse) Body() *RegistryCredential
Body returns the value of the 'body' parameter.
func (*RegistryCredentialGetResponse) Error ¶
func (r *RegistryCredentialGetResponse) Error() *errors.Error
Error returns the response error.
func (*RegistryCredentialGetResponse) GetBody ¶ added in v0.1.16
func (r *RegistryCredentialGetResponse) GetBody() (value *RegistryCredential, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*RegistryCredentialGetResponse) Header ¶
func (r *RegistryCredentialGetResponse) Header() http.Header
Header returns header of the response.
func (*RegistryCredentialGetResponse) Status ¶
func (r *RegistryCredentialGetResponse) Status() int
Status returns the response status code.
type RegistryCredentialGetServerRequest ¶ added in v0.1.27
type RegistryCredentialGetServerRequest struct {
// contains filtered or unexported fields
}
RegistryCredentialGetServerRequest is the request for the 'get' method.
type RegistryCredentialGetServerResponse ¶ added in v0.1.27
type RegistryCredentialGetServerResponse struct {
// contains filtered or unexported fields
}
RegistryCredentialGetServerResponse is the response for the 'get' method.
func (*RegistryCredentialGetServerResponse) Body ¶ added in v0.1.27
func (r *RegistryCredentialGetServerResponse) Body(value *RegistryCredential) *RegistryCredentialGetServerResponse
Body sets the value of the 'body' parameter.
func (*RegistryCredentialGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RegistryCredentialGetServerResponse) SetStatusCode(status int) *RegistryCredentialGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RegistryCredentialList ¶
type RegistryCredentialList struct {
// contains filtered or unexported fields
}
RegistryCredentialList is a list of values of the 'registry_credential' type.
func UnmarshalRegistryCredentialList ¶
func UnmarshalRegistryCredentialList(source interface{}) (list *RegistryCredentialList, err error)
UnmarshalRegistryCredentialList reads a list of values of the 'registry_credential' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*RegistryCredentialList) Each ¶
func (l *RegistryCredentialList) Each(f func(item *RegistryCredential) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*RegistryCredentialList) Empty ¶ added in v0.1.8
func (l *RegistryCredentialList) Empty() bool
Empty returns true if the list is empty.
func (*RegistryCredentialList) Get ¶ added in v0.1.17
func (l *RegistryCredentialList) Get(i int) *RegistryCredential
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*RegistryCredentialList) GetHREF ¶ added in v0.1.7
func (l *RegistryCredentialList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*RegistryCredentialList) HREF ¶ added in v0.1.7
func (l *RegistryCredentialList) HREF() string
HREF returns the link to the list.
func (*RegistryCredentialList) Kind ¶ added in v0.1.7
func (l *RegistryCredentialList) Kind() string
Kind returns the name of the type of the object.
func (*RegistryCredentialList) Len ¶
func (l *RegistryCredentialList) Len() int
Len returns the length of the list.
func (*RegistryCredentialList) Link ¶ added in v0.1.7
func (l *RegistryCredentialList) Link() bool
Link returns true iif this is a link.
func (*RegistryCredentialList) Range ¶
func (l *RegistryCredentialList) Range(f func(index int, item *RegistryCredential) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*RegistryCredentialList) Slice ¶
func (l *RegistryCredentialList) Slice() []*RegistryCredential
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type RegistryCredentialListBuilder ¶
type RegistryCredentialListBuilder struct {
// contains filtered or unexported fields
}
RegistryCredentialListBuilder contains the data and logic needed to build 'registry_credential' objects.
func NewRegistryCredentialList ¶
func NewRegistryCredentialList() *RegistryCredentialListBuilder
NewRegistryCredentialList creates a new builder of 'registry_credential' objects.
func (*RegistryCredentialListBuilder) Build ¶
func (b *RegistryCredentialListBuilder) Build() (list *RegistryCredentialList, err error)
Build creates a list of 'registry_credential' objects using the configuration stored in the builder.
func (*RegistryCredentialListBuilder) Items ¶
func (b *RegistryCredentialListBuilder) Items(values ...*RegistryCredentialBuilder) *RegistryCredentialListBuilder
Items sets the items of the list.
type RegistryCredentialServer ¶ added in v0.1.27
type RegistryCredentialServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the registry credential. Get(ctx context.Context, request *RegistryCredentialGetServerRequest, response *RegistryCredentialGetServerResponse) error }
RegistryCredentialServer represents the interface the manages the 'registry_credential' resource.
type RegistryCredentialServerAdapter ¶ added in v0.1.27
type RegistryCredentialServerAdapter struct {
// contains filtered or unexported fields
}
RegistryCredentialServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRegistryCredentialServerAdapter ¶ added in v0.1.27
func NewRegistryCredentialServerAdapter(server RegistryCredentialServer, router *mux.Router) *RegistryCredentialServerAdapter
func (*RegistryCredentialServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RegistryCredentialServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RegistryCredentialsAddRequest ¶
type RegistryCredentialsAddRequest struct {
// contains filtered or unexported fields
}
RegistryCredentialsAddRequest is the request for the 'add' method.
func (*RegistryCredentialsAddRequest) Body ¶
func (r *RegistryCredentialsAddRequest) Body(value *RegistryCredential) *RegistryCredentialsAddRequest
Body sets the value of the 'body' parameter.
Registry credential data.
func (*RegistryCredentialsAddRequest) Header ¶
func (r *RegistryCredentialsAddRequest) Header(name string, value interface{}) *RegistryCredentialsAddRequest
Header adds a request header.
func (*RegistryCredentialsAddRequest) Parameter ¶
func (r *RegistryCredentialsAddRequest) Parameter(name string, value interface{}) *RegistryCredentialsAddRequest
Parameter adds a query parameter.
func (*RegistryCredentialsAddRequest) Send ¶
func (r *RegistryCredentialsAddRequest) Send() (result *RegistryCredentialsAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RegistryCredentialsAddRequest) SendContext ¶ added in v0.1.10
func (r *RegistryCredentialsAddRequest) SendContext(ctx context.Context) (result *RegistryCredentialsAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RegistryCredentialsAddResponse ¶
type RegistryCredentialsAddResponse struct {
// contains filtered or unexported fields
}
RegistryCredentialsAddResponse is the response for the 'add' method.
func (*RegistryCredentialsAddResponse) Body ¶
func (r *RegistryCredentialsAddResponse) Body() *RegistryCredential
Body returns the value of the 'body' parameter.
Registry credential data.
func (*RegistryCredentialsAddResponse) Error ¶
func (r *RegistryCredentialsAddResponse) Error() *errors.Error
Error returns the response error.
func (*RegistryCredentialsAddResponse) GetBody ¶ added in v0.1.16
func (r *RegistryCredentialsAddResponse) GetBody() (value *RegistryCredential, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Registry credential data.
func (*RegistryCredentialsAddResponse) Header ¶
func (r *RegistryCredentialsAddResponse) Header() http.Header
Header returns header of the response.
func (*RegistryCredentialsAddResponse) Status ¶
func (r *RegistryCredentialsAddResponse) Status() int
Status returns the response status code.
type RegistryCredentialsAddServerRequest ¶ added in v0.1.27
type RegistryCredentialsAddServerRequest struct {
// contains filtered or unexported fields
}
RegistryCredentialsAddServerRequest is the request for the 'add' method.
func (*RegistryCredentialsAddServerRequest) Body ¶ added in v0.1.27
func (r *RegistryCredentialsAddServerRequest) Body() *RegistryCredential
Body returns the value of the 'body' parameter.
Registry credential data.
func (*RegistryCredentialsAddServerRequest) GetBody ¶ added in v0.1.27
func (r *RegistryCredentialsAddServerRequest) GetBody() (value *RegistryCredential, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Registry credential data.
type RegistryCredentialsAddServerResponse ¶ added in v0.1.27
type RegistryCredentialsAddServerResponse struct {
// contains filtered or unexported fields
}
RegistryCredentialsAddServerResponse is the response for the 'add' method.
func (*RegistryCredentialsAddServerResponse) Body ¶ added in v0.1.27
func (r *RegistryCredentialsAddServerResponse) Body(value *RegistryCredential) *RegistryCredentialsAddServerResponse
Body sets the value of the 'body' parameter.
Registry credential data.
func (*RegistryCredentialsAddServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RegistryCredentialsAddServerResponse) SetStatusCode(status int) *RegistryCredentialsAddServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RegistryCredentialsClient ¶
type RegistryCredentialsClient struct {
// contains filtered or unexported fields
}
RegistryCredentialsClient is the client of the 'registry_credentials' resource.
Manages the collection of registry credentials.
func NewRegistryCredentialsClient ¶
func NewRegistryCredentialsClient(transport http.RoundTripper, path string, metric string) *RegistryCredentialsClient
NewRegistryCredentialsClient creates a new client for the 'registry_credentials' resource using the given transport to sned the requests and receive the responses.
func (*RegistryCredentialsClient) Add ¶
func (c *RegistryCredentialsClient) Add() *RegistryCredentialsAddRequest
Add creates a request for the 'add' method.
Creates a new registry credential.
func (*RegistryCredentialsClient) List ¶
func (c *RegistryCredentialsClient) List() *RegistryCredentialsListRequest
List creates a request for the 'list' method.
Retrieves the list of accounts.
func (*RegistryCredentialsClient) RegistryCredential ¶
func (c *RegistryCredentialsClient) RegistryCredential(id string) *RegistryCredentialClient
RegistryCredential returns the target 'registry_credential' resource for the given identifier.
Reference to the service that manages an specific registry credential.
type RegistryCredentialsListRequest ¶
type RegistryCredentialsListRequest struct {
// contains filtered or unexported fields
}
RegistryCredentialsListRequest is the request for the 'list' method.
func (*RegistryCredentialsListRequest) Header ¶
func (r *RegistryCredentialsListRequest) Header(name string, value interface{}) *RegistryCredentialsListRequest
Header adds a request header.
func (*RegistryCredentialsListRequest) Page ¶
func (r *RegistryCredentialsListRequest) Page(value int) *RegistryCredentialsListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistryCredentialsListRequest) Parameter ¶
func (r *RegistryCredentialsListRequest) Parameter(name string, value interface{}) *RegistryCredentialsListRequest
Parameter adds a query parameter.
func (*RegistryCredentialsListRequest) Send ¶
func (r *RegistryCredentialsListRequest) Send() (result *RegistryCredentialsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RegistryCredentialsListRequest) SendContext ¶ added in v0.1.10
func (r *RegistryCredentialsListRequest) SendContext(ctx context.Context) (result *RegistryCredentialsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*RegistryCredentialsListRequest) Size ¶
func (r *RegistryCredentialsListRequest) Size(value int) *RegistryCredentialsListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistryCredentialsListRequest) Total ¶
func (r *RegistryCredentialsListRequest) Total(value int) *RegistryCredentialsListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RegistryCredentialsListResponse ¶
type RegistryCredentialsListResponse struct {
// contains filtered or unexported fields
}
RegistryCredentialsListResponse is the response for the 'list' method.
func (*RegistryCredentialsListResponse) Error ¶
func (r *RegistryCredentialsListResponse) Error() *errors.Error
Error returns the response error.
func (*RegistryCredentialsListResponse) GetItems ¶ added in v0.1.16
func (r *RegistryCredentialsListResponse) GetItems() (value *RegistryCredentialList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of registry credentials.
func (*RegistryCredentialsListResponse) GetPage ¶ added in v0.1.16
func (r *RegistryCredentialsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistryCredentialsListResponse) GetSize ¶ added in v0.1.16
func (r *RegistryCredentialsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistryCredentialsListResponse) GetTotal ¶ added in v0.1.16
func (r *RegistryCredentialsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*RegistryCredentialsListResponse) Header ¶
func (r *RegistryCredentialsListResponse) Header() http.Header
Header returns header of the response.
func (*RegistryCredentialsListResponse) Items ¶
func (r *RegistryCredentialsListResponse) Items() *RegistryCredentialList
Items returns the value of the 'items' parameter.
Retrieved list of registry credentials.
func (*RegistryCredentialsListResponse) Page ¶
func (r *RegistryCredentialsListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistryCredentialsListResponse) Size ¶
func (r *RegistryCredentialsListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistryCredentialsListResponse) Status ¶
func (r *RegistryCredentialsListResponse) Status() int
Status returns the response status code.
func (*RegistryCredentialsListResponse) Total ¶
func (r *RegistryCredentialsListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RegistryCredentialsListServerRequest ¶ added in v0.1.27
type RegistryCredentialsListServerRequest struct {
// contains filtered or unexported fields
}
RegistryCredentialsListServerRequest is the request for the 'list' method.
func (*RegistryCredentialsListServerRequest) GetPage ¶ added in v0.1.27
func (r *RegistryCredentialsListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistryCredentialsListServerRequest) GetSize ¶ added in v0.1.27
func (r *RegistryCredentialsListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistryCredentialsListServerRequest) GetTotal ¶ added in v0.1.27
func (r *RegistryCredentialsListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*RegistryCredentialsListServerRequest) Page ¶ added in v0.1.27
func (r *RegistryCredentialsListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistryCredentialsListServerRequest) Size ¶ added in v0.1.27
func (r *RegistryCredentialsListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistryCredentialsListServerRequest) Total ¶ added in v0.1.27
func (r *RegistryCredentialsListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RegistryCredentialsListServerResponse ¶ added in v0.1.27
type RegistryCredentialsListServerResponse struct {
// contains filtered or unexported fields
}
RegistryCredentialsListServerResponse is the response for the 'list' method.
func (*RegistryCredentialsListServerResponse) Items ¶ added in v0.1.27
func (r *RegistryCredentialsListServerResponse) Items(value *RegistryCredentialList) *RegistryCredentialsListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of registry credentials.
func (*RegistryCredentialsListServerResponse) Page ¶ added in v0.1.27
func (r *RegistryCredentialsListServerResponse) Page(value int) *RegistryCredentialsListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RegistryCredentialsListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RegistryCredentialsListServerResponse) SetStatusCode(status int) *RegistryCredentialsListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*RegistryCredentialsListServerResponse) Size ¶ added in v0.1.27
func (r *RegistryCredentialsListServerResponse) Size(value int) *RegistryCredentialsListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RegistryCredentialsListServerResponse) Total ¶ added in v0.1.27
func (r *RegistryCredentialsListServerResponse) Total(value int) *RegistryCredentialsListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RegistryCredentialsServer ¶ added in v0.1.27
type RegistryCredentialsServer interface { // List handles a request for the 'list' method. // // Retrieves the list of accounts. List(ctx context.Context, request *RegistryCredentialsListServerRequest, response *RegistryCredentialsListServerResponse) error // Add handles a request for the 'add' method. // // Creates a new registry credential. Add(ctx context.Context, request *RegistryCredentialsAddServerRequest, response *RegistryCredentialsAddServerResponse) error // RegistryCredential returns the target 'registry_credential' server for the given identifier. // // Reference to the service that manages an specific registry credential. RegistryCredential(id string) RegistryCredentialServer }
RegistryCredentialsServer represents the interface the manages the 'registry_credentials' resource.
type RegistryCredentialsServerAdapter ¶ added in v0.1.27
type RegistryCredentialsServerAdapter struct {
// contains filtered or unexported fields
}
RegistryCredentialsServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRegistryCredentialsServerAdapter ¶ added in v0.1.27
func NewRegistryCredentialsServerAdapter(server RegistryCredentialsServer, router *mux.Router) *RegistryCredentialsServerAdapter
func (*RegistryCredentialsServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RegistryCredentialsServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RegistryGetRequest ¶
type RegistryGetRequest struct {
// contains filtered or unexported fields
}
RegistryGetRequest is the request for the 'get' method.
func (*RegistryGetRequest) Header ¶
func (r *RegistryGetRequest) Header(name string, value interface{}) *RegistryGetRequest
Header adds a request header.
func (*RegistryGetRequest) Parameter ¶
func (r *RegistryGetRequest) Parameter(name string, value interface{}) *RegistryGetRequest
Parameter adds a query parameter.
func (*RegistryGetRequest) Send ¶
func (r *RegistryGetRequest) Send() (result *RegistryGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RegistryGetRequest) SendContext ¶ added in v0.1.10
func (r *RegistryGetRequest) SendContext(ctx context.Context) (result *RegistryGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RegistryGetResponse ¶
type RegistryGetResponse struct {
// contains filtered or unexported fields
}
RegistryGetResponse is the response for the 'get' method.
func (*RegistryGetResponse) Body ¶
func (r *RegistryGetResponse) Body() *Registry
Body returns the value of the 'body' parameter.
func (*RegistryGetResponse) Error ¶
func (r *RegistryGetResponse) Error() *errors.Error
Error returns the response error.
func (*RegistryGetResponse) GetBody ¶ added in v0.1.16
func (r *RegistryGetResponse) GetBody() (value *Registry, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*RegistryGetResponse) Header ¶
func (r *RegistryGetResponse) Header() http.Header
Header returns header of the response.
func (*RegistryGetResponse) Status ¶
func (r *RegistryGetResponse) Status() int
Status returns the response status code.
type RegistryGetServerRequest ¶ added in v0.1.27
type RegistryGetServerRequest struct {
// contains filtered or unexported fields
}
RegistryGetServerRequest is the request for the 'get' method.
type RegistryGetServerResponse ¶ added in v0.1.27
type RegistryGetServerResponse struct {
// contains filtered or unexported fields
}
RegistryGetServerResponse is the response for the 'get' method.
func (*RegistryGetServerResponse) Body ¶ added in v0.1.27
func (r *RegistryGetServerResponse) Body(value *Registry) *RegistryGetServerResponse
Body sets the value of the 'body' parameter.
func (*RegistryGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RegistryGetServerResponse) SetStatusCode(status int) *RegistryGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RegistryList ¶
type RegistryList struct {
// contains filtered or unexported fields
}
RegistryList is a list of values of the 'registry' type.
func UnmarshalRegistryList ¶
func UnmarshalRegistryList(source interface{}) (list *RegistryList, err error)
UnmarshalRegistryList reads a list of values of the 'registry' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*RegistryList) Each ¶
func (l *RegistryList) Each(f func(item *Registry) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*RegistryList) Empty ¶ added in v0.1.8
func (l *RegistryList) Empty() bool
Empty returns true if the list is empty.
func (*RegistryList) Get ¶ added in v0.1.17
func (l *RegistryList) Get(i int) *Registry
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*RegistryList) GetHREF ¶ added in v0.1.7
func (l *RegistryList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*RegistryList) HREF ¶ added in v0.1.7
func (l *RegistryList) HREF() string
HREF returns the link to the list.
func (*RegistryList) Kind ¶ added in v0.1.7
func (l *RegistryList) Kind() string
Kind returns the name of the type of the object.
func (*RegistryList) Link ¶ added in v0.1.7
func (l *RegistryList) Link() bool
Link returns true iif this is a link.
func (*RegistryList) Range ¶
func (l *RegistryList) Range(f func(index int, item *Registry) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*RegistryList) Slice ¶
func (l *RegistryList) Slice() []*Registry
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type RegistryListBuilder ¶
type RegistryListBuilder struct {
// contains filtered or unexported fields
}
RegistryListBuilder contains the data and logic needed to build 'registry' objects.
func NewRegistryList ¶
func NewRegistryList() *RegistryListBuilder
NewRegistryList creates a new builder of 'registry' objects.
func (*RegistryListBuilder) Build ¶
func (b *RegistryListBuilder) Build() (list *RegistryList, err error)
Build creates a list of 'registry' objects using the configuration stored in the builder.
func (*RegistryListBuilder) Items ¶
func (b *RegistryListBuilder) Items(values ...*RegistryBuilder) *RegistryListBuilder
Items sets the items of the list.
type RegistryServer ¶ added in v0.1.27
type RegistryServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the registry. Get(ctx context.Context, request *RegistryGetServerRequest, response *RegistryGetServerResponse) error }
RegistryServer represents the interface the manages the 'registry' resource.
type RegistryServerAdapter ¶ added in v0.1.27
type RegistryServerAdapter struct {
// contains filtered or unexported fields
}
RegistryServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRegistryServerAdapter ¶ added in v0.1.27
func NewRegistryServerAdapter(server RegistryServer, router *mux.Router) *RegistryServerAdapter
func (*RegistryServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RegistryServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ReservedResource ¶
type ReservedResource struct {
// contains filtered or unexported fields
}
ReservedResource represents the values of the 'reserved_resource' type.
func UnmarshalReservedResource ¶
func UnmarshalReservedResource(source interface{}) (object *ReservedResource, err error)
UnmarshalReservedResource reads a value of the 'reserved_resource' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*ReservedResource) AvailabilityZoneType ¶
func (o *ReservedResource) AvailabilityZoneType() string
AvailabilityZoneType returns the value of the 'availability_zone_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ReservedResource) BYOC ¶
func (o *ReservedResource) BYOC() bool
BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ReservedResource) Count ¶
func (o *ReservedResource) Count() int
Count returns the value of the 'count' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ReservedResource) Empty ¶ added in v0.1.8
func (o *ReservedResource) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*ReservedResource) GetAvailabilityZoneType ¶
func (o *ReservedResource) GetAvailabilityZoneType() (value string, ok bool)
GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.
func (*ReservedResource) GetBYOC ¶
func (o *ReservedResource) GetBYOC() (value bool, ok bool)
GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.
func (*ReservedResource) GetCount ¶
func (o *ReservedResource) GetCount() (value int, ok bool)
GetCount returns the value of the 'count' attribute and a flag indicating if the attribute has a value.
func (*ReservedResource) GetResourceName ¶
func (o *ReservedResource) GetResourceName() (value string, ok bool)
GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.
func (*ReservedResource) GetResourceType ¶
func (o *ReservedResource) GetResourceType() (value string, ok bool)
GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.
func (*ReservedResource) ResourceName ¶
func (o *ReservedResource) ResourceName() string
ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ReservedResource) ResourceType ¶
func (o *ReservedResource) ResourceType() string
ResourceType returns the value of the 'resource_type' attribute, or the zero value of the type if the attribute doesn't have a value.
type ReservedResourceBuilder ¶
type ReservedResourceBuilder struct {
// contains filtered or unexported fields
}
ReservedResourceBuilder contains the data and logic needed to build 'reserved_resource' objects.
func NewReservedResource ¶
func NewReservedResource() *ReservedResourceBuilder
NewReservedResource creates a new builder of 'reserved_resource' objects.
func (*ReservedResourceBuilder) AvailabilityZoneType ¶
func (b *ReservedResourceBuilder) AvailabilityZoneType(value string) *ReservedResourceBuilder
AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.
func (*ReservedResourceBuilder) BYOC ¶
func (b *ReservedResourceBuilder) BYOC(value bool) *ReservedResourceBuilder
BYOC sets the value of the 'BYOC' attribute to the given value.
func (*ReservedResourceBuilder) Build ¶
func (b *ReservedResourceBuilder) Build() (object *ReservedResource, err error)
Build creates a 'reserved_resource' object using the configuration stored in the builder.
func (*ReservedResourceBuilder) Count ¶
func (b *ReservedResourceBuilder) Count(value int) *ReservedResourceBuilder
Count sets the value of the 'count' attribute to the given value.
func (*ReservedResourceBuilder) ResourceName ¶
func (b *ReservedResourceBuilder) ResourceName(value string) *ReservedResourceBuilder
ResourceName sets the value of the 'resource_name' attribute to the given value.
func (*ReservedResourceBuilder) ResourceType ¶
func (b *ReservedResourceBuilder) ResourceType(value string) *ReservedResourceBuilder
ResourceType sets the value of the 'resource_type' attribute to the given value.
type ReservedResourceList ¶
type ReservedResourceList struct {
// contains filtered or unexported fields
}
ReservedResourceList is a list of values of the 'reserved_resource' type.
func UnmarshalReservedResourceList ¶
func UnmarshalReservedResourceList(source interface{}) (list *ReservedResourceList, err error)
UnmarshalReservedResourceList reads a list of values of the 'reserved_resource' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*ReservedResourceList) Each ¶
func (l *ReservedResourceList) Each(f func(item *ReservedResource) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ReservedResourceList) Empty ¶ added in v0.1.8
func (l *ReservedResourceList) Empty() bool
Empty returns true if the list is empty.
func (*ReservedResourceList) Get ¶ added in v0.1.17
func (l *ReservedResourceList) Get(i int) *ReservedResource
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*ReservedResourceList) Len ¶
func (l *ReservedResourceList) Len() int
Len returns the length of the list.
func (*ReservedResourceList) Range ¶
func (l *ReservedResourceList) Range(f func(index int, item *ReservedResource) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ReservedResourceList) Slice ¶
func (l *ReservedResourceList) Slice() []*ReservedResource
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type ReservedResourceListBuilder ¶
type ReservedResourceListBuilder struct {
// contains filtered or unexported fields
}
ReservedResourceListBuilder contains the data and logic needed to build 'reserved_resource' objects.
func NewReservedResourceList ¶
func NewReservedResourceList() *ReservedResourceListBuilder
NewReservedResourceList creates a new builder of 'reserved_resource' objects.
func (*ReservedResourceListBuilder) Build ¶
func (b *ReservedResourceListBuilder) Build() (list *ReservedResourceList, err error)
Build creates a list of 'reserved_resource' objects using the configuration stored in the builder.
func (*ReservedResourceListBuilder) Items ¶
func (b *ReservedResourceListBuilder) Items(values ...*ReservedResourceBuilder) *ReservedResourceListBuilder
Items sets the items of the list.
type ResourceQuota ¶
type ResourceQuota struct {
// contains filtered or unexported fields
}
ResourceQuota represents the values of the 'resource_quota' type.
func UnmarshalResourceQuota ¶
func UnmarshalResourceQuota(source interface{}) (object *ResourceQuota, err error)
UnmarshalResourceQuota reads a value of the 'resource_quota' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*ResourceQuota) Allowed ¶
func (o *ResourceQuota) Allowed() int
Allowed returns the value of the 'allowed' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ResourceQuota) AvailabilityZoneType ¶
func (o *ResourceQuota) AvailabilityZoneType() string
AvailabilityZoneType returns the value of the 'availability_zone_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ResourceQuota) BYOC ¶
func (o *ResourceQuota) BYOC() bool
BYOC returns the value of the 'BYOC' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ResourceQuota) Empty ¶ added in v0.1.8
func (o *ResourceQuota) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*ResourceQuota) GetAllowed ¶
func (o *ResourceQuota) GetAllowed() (value int, ok bool)
GetAllowed returns the value of the 'allowed' attribute and a flag indicating if the attribute has a value.
func (*ResourceQuota) GetAvailabilityZoneType ¶
func (o *ResourceQuota) GetAvailabilityZoneType() (value string, ok bool)
GetAvailabilityZoneType returns the value of the 'availability_zone_type' attribute and a flag indicating if the attribute has a value.
func (*ResourceQuota) GetBYOC ¶
func (o *ResourceQuota) GetBYOC() (value bool, ok bool)
GetBYOC returns the value of the 'BYOC' attribute and a flag indicating if the attribute has a value.
func (*ResourceQuota) GetHREF ¶
func (o *ResourceQuota) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*ResourceQuota) GetID ¶
func (o *ResourceQuota) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*ResourceQuota) GetOrganizationID ¶
func (o *ResourceQuota) GetOrganizationID() (value string, ok bool)
GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.
func (*ResourceQuota) GetReserved ¶
func (o *ResourceQuota) GetReserved() (value int, ok bool)
GetReserved returns the value of the 'reserved' attribute and a flag indicating if the attribute has a value.
func (*ResourceQuota) GetResourceName ¶
func (o *ResourceQuota) GetResourceName() (value string, ok bool)
GetResourceName returns the value of the 'resource_name' attribute and a flag indicating if the attribute has a value.
func (*ResourceQuota) GetResourceType ¶
func (o *ResourceQuota) GetResourceType() (value string, ok bool)
GetResourceType returns the value of the 'resource_type' attribute and a flag indicating if the attribute has a value.
func (*ResourceQuota) GetSKU ¶
func (o *ResourceQuota) GetSKU() (value string, ok bool)
GetSKU returns the value of the 'SKU' attribute and a flag indicating if the attribute has a value.
func (*ResourceQuota) HREF ¶
func (o *ResourceQuota) HREF() string
HREF returns the link to the object.
func (*ResourceQuota) ID ¶
func (o *ResourceQuota) ID() string
ID returns the identifier of the object.
func (*ResourceQuota) Kind ¶
func (o *ResourceQuota) Kind() string
Kind returns the name of the type of the object.
func (*ResourceQuota) Link ¶
func (o *ResourceQuota) Link() bool
Link returns true iif this is a link.
func (*ResourceQuota) OrganizationID ¶
func (o *ResourceQuota) OrganizationID() string
OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ResourceQuota) Reserved ¶
func (o *ResourceQuota) Reserved() int
Reserved returns the value of the 'reserved' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ResourceQuota) ResourceName ¶
func (o *ResourceQuota) ResourceName() string
ResourceName returns the value of the 'resource_name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ResourceQuota) ResourceType ¶
func (o *ResourceQuota) ResourceType() string
ResourceType returns the value of the 'resource_type' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*ResourceQuota) SKU ¶
func (o *ResourceQuota) SKU() string
SKU returns the value of the 'SKU' attribute, or the zero value of the type if the attribute doesn't have a value.
type ResourceQuotaBuilder ¶
type ResourceQuotaBuilder struct {
// contains filtered or unexported fields
}
ResourceQuotaBuilder contains the data and logic needed to build 'resource_quota' objects.
func NewResourceQuota ¶
func NewResourceQuota() *ResourceQuotaBuilder
NewResourceQuota creates a new builder of 'resource_quota' objects.
func (*ResourceQuotaBuilder) Allowed ¶
func (b *ResourceQuotaBuilder) Allowed(value int) *ResourceQuotaBuilder
Allowed sets the value of the 'allowed' attribute to the given value.
func (*ResourceQuotaBuilder) AvailabilityZoneType ¶
func (b *ResourceQuotaBuilder) AvailabilityZoneType(value string) *ResourceQuotaBuilder
AvailabilityZoneType sets the value of the 'availability_zone_type' attribute to the given value.
func (*ResourceQuotaBuilder) BYOC ¶
func (b *ResourceQuotaBuilder) BYOC(value bool) *ResourceQuotaBuilder
BYOC sets the value of the 'BYOC' attribute to the given value.
func (*ResourceQuotaBuilder) Build ¶
func (b *ResourceQuotaBuilder) Build() (object *ResourceQuota, err error)
Build creates a 'resource_quota' object using the configuration stored in the builder.
func (*ResourceQuotaBuilder) HREF ¶
func (b *ResourceQuotaBuilder) HREF(value string) *ResourceQuotaBuilder
HREF sets the link to the object.
func (*ResourceQuotaBuilder) ID ¶
func (b *ResourceQuotaBuilder) ID(value string) *ResourceQuotaBuilder
ID sets the identifier of the object.
func (*ResourceQuotaBuilder) Link ¶
func (b *ResourceQuotaBuilder) Link(value bool) *ResourceQuotaBuilder
Link sets the flag that indicates if this is a link.
func (*ResourceQuotaBuilder) OrganizationID ¶
func (b *ResourceQuotaBuilder) OrganizationID(value string) *ResourceQuotaBuilder
OrganizationID sets the value of the 'organization_ID' attribute to the given value.
func (*ResourceQuotaBuilder) Reserved ¶
func (b *ResourceQuotaBuilder) Reserved(value int) *ResourceQuotaBuilder
Reserved sets the value of the 'reserved' attribute to the given value.
func (*ResourceQuotaBuilder) ResourceName ¶
func (b *ResourceQuotaBuilder) ResourceName(value string) *ResourceQuotaBuilder
ResourceName sets the value of the 'resource_name' attribute to the given value.
func (*ResourceQuotaBuilder) ResourceType ¶
func (b *ResourceQuotaBuilder) ResourceType(value string) *ResourceQuotaBuilder
ResourceType sets the value of the 'resource_type' attribute to the given value.
func (*ResourceQuotaBuilder) SKU ¶
func (b *ResourceQuotaBuilder) SKU(value string) *ResourceQuotaBuilder
SKU sets the value of the 'SKU' attribute to the given value.
type ResourceQuotaClient ¶
type ResourceQuotaClient struct {
// contains filtered or unexported fields
}
ResourceQuotaClient is the client of the 'resource_quota' resource.
Manages a specific resource quota.
func NewResourceQuotaClient ¶
func NewResourceQuotaClient(transport http.RoundTripper, path string, metric string) *ResourceQuotaClient
NewResourceQuotaClient creates a new client for the 'resource_quota' resource using the given transport to sned the requests and receive the responses.
func (*ResourceQuotaClient) Get ¶
func (c *ResourceQuotaClient) Get() *ResourceQuotaGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the resource quota.
func (*ResourceQuotaClient) Update ¶
func (c *ResourceQuotaClient) Update() *ResourceQuotaUpdateRequest
Update creates a request for the 'update' method.
Updates the resource quota.
type ResourceQuotaGetRequest ¶
type ResourceQuotaGetRequest struct {
// contains filtered or unexported fields
}
ResourceQuotaGetRequest is the request for the 'get' method.
func (*ResourceQuotaGetRequest) Header ¶
func (r *ResourceQuotaGetRequest) Header(name string, value interface{}) *ResourceQuotaGetRequest
Header adds a request header.
func (*ResourceQuotaGetRequest) Parameter ¶
func (r *ResourceQuotaGetRequest) Parameter(name string, value interface{}) *ResourceQuotaGetRequest
Parameter adds a query parameter.
func (*ResourceQuotaGetRequest) Send ¶
func (r *ResourceQuotaGetRequest) Send() (result *ResourceQuotaGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ResourceQuotaGetRequest) SendContext ¶ added in v0.1.10
func (r *ResourceQuotaGetRequest) SendContext(ctx context.Context) (result *ResourceQuotaGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type ResourceQuotaGetResponse ¶
type ResourceQuotaGetResponse struct {
// contains filtered or unexported fields
}
ResourceQuotaGetResponse is the response for the 'get' method.
func (*ResourceQuotaGetResponse) Body ¶
func (r *ResourceQuotaGetResponse) Body() *ResourceQuota
Body returns the value of the 'body' parameter.
func (*ResourceQuotaGetResponse) Error ¶
func (r *ResourceQuotaGetResponse) Error() *errors.Error
Error returns the response error.
func (*ResourceQuotaGetResponse) GetBody ¶ added in v0.1.16
func (r *ResourceQuotaGetResponse) GetBody() (value *ResourceQuota, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*ResourceQuotaGetResponse) Header ¶
func (r *ResourceQuotaGetResponse) Header() http.Header
Header returns header of the response.
func (*ResourceQuotaGetResponse) Status ¶
func (r *ResourceQuotaGetResponse) Status() int
Status returns the response status code.
type ResourceQuotaGetServerRequest ¶ added in v0.1.27
type ResourceQuotaGetServerRequest struct {
// contains filtered or unexported fields
}
ResourceQuotaGetServerRequest is the request for the 'get' method.
type ResourceQuotaGetServerResponse ¶ added in v0.1.27
type ResourceQuotaGetServerResponse struct {
// contains filtered or unexported fields
}
ResourceQuotaGetServerResponse is the response for the 'get' method.
func (*ResourceQuotaGetServerResponse) Body ¶ added in v0.1.27
func (r *ResourceQuotaGetServerResponse) Body(value *ResourceQuota) *ResourceQuotaGetServerResponse
Body sets the value of the 'body' parameter.
func (*ResourceQuotaGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *ResourceQuotaGetServerResponse) SetStatusCode(status int) *ResourceQuotaGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type ResourceQuotaList ¶
type ResourceQuotaList struct {
// contains filtered or unexported fields
}
ResourceQuotaList is a list of values of the 'resource_quota' type.
func UnmarshalResourceQuotaList ¶
func UnmarshalResourceQuotaList(source interface{}) (list *ResourceQuotaList, err error)
UnmarshalResourceQuotaList reads a list of values of the 'resource_quota' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*ResourceQuotaList) Each ¶
func (l *ResourceQuotaList) Each(f func(item *ResourceQuota) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ResourceQuotaList) Empty ¶ added in v0.1.8
func (l *ResourceQuotaList) Empty() bool
Empty returns true if the list is empty.
func (*ResourceQuotaList) Get ¶ added in v0.1.17
func (l *ResourceQuotaList) Get(i int) *ResourceQuota
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*ResourceQuotaList) GetHREF ¶ added in v0.1.7
func (l *ResourceQuotaList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*ResourceQuotaList) HREF ¶ added in v0.1.7
func (l *ResourceQuotaList) HREF() string
HREF returns the link to the list.
func (*ResourceQuotaList) Kind ¶ added in v0.1.7
func (l *ResourceQuotaList) Kind() string
Kind returns the name of the type of the object.
func (*ResourceQuotaList) Len ¶
func (l *ResourceQuotaList) Len() int
Len returns the length of the list.
func (*ResourceQuotaList) Link ¶ added in v0.1.7
func (l *ResourceQuotaList) Link() bool
Link returns true iif this is a link.
func (*ResourceQuotaList) Range ¶
func (l *ResourceQuotaList) Range(f func(index int, item *ResourceQuota) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*ResourceQuotaList) Slice ¶
func (l *ResourceQuotaList) Slice() []*ResourceQuota
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type ResourceQuotaListBuilder ¶
type ResourceQuotaListBuilder struct {
// contains filtered or unexported fields
}
ResourceQuotaListBuilder contains the data and logic needed to build 'resource_quota' objects.
func NewResourceQuotaList ¶
func NewResourceQuotaList() *ResourceQuotaListBuilder
NewResourceQuotaList creates a new builder of 'resource_quota' objects.
func (*ResourceQuotaListBuilder) Build ¶
func (b *ResourceQuotaListBuilder) Build() (list *ResourceQuotaList, err error)
Build creates a list of 'resource_quota' objects using the configuration stored in the builder.
func (*ResourceQuotaListBuilder) Items ¶
func (b *ResourceQuotaListBuilder) Items(values ...*ResourceQuotaBuilder) *ResourceQuotaListBuilder
Items sets the items of the list.
type ResourceQuotaServer ¶ added in v0.1.27
type ResourceQuotaServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the resource quota. Get(ctx context.Context, request *ResourceQuotaGetServerRequest, response *ResourceQuotaGetServerResponse) error // Update handles a request for the 'update' method. // // Updates the resource quota. Update(ctx context.Context, request *ResourceQuotaUpdateServerRequest, response *ResourceQuotaUpdateServerResponse) error }
ResourceQuotaServer represents the interface the manages the 'resource_quota' resource.
type ResourceQuotaServerAdapter ¶ added in v0.1.27
type ResourceQuotaServerAdapter struct {
// contains filtered or unexported fields
}
ResourceQuotaServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewResourceQuotaServerAdapter ¶ added in v0.1.27
func NewResourceQuotaServerAdapter(server ResourceQuotaServer, router *mux.Router) *ResourceQuotaServerAdapter
func (*ResourceQuotaServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *ResourceQuotaServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ResourceQuotaUpdateRequest ¶
type ResourceQuotaUpdateRequest struct {
// contains filtered or unexported fields
}
ResourceQuotaUpdateRequest is the request for the 'update' method.
func (*ResourceQuotaUpdateRequest) Body ¶
func (r *ResourceQuotaUpdateRequest) Body(value *ResourceQuota) *ResourceQuotaUpdateRequest
Body sets the value of the 'body' parameter.
func (*ResourceQuotaUpdateRequest) Header ¶
func (r *ResourceQuotaUpdateRequest) Header(name string, value interface{}) *ResourceQuotaUpdateRequest
Header adds a request header.
func (*ResourceQuotaUpdateRequest) Parameter ¶
func (r *ResourceQuotaUpdateRequest) Parameter(name string, value interface{}) *ResourceQuotaUpdateRequest
Parameter adds a query parameter.
func (*ResourceQuotaUpdateRequest) Send ¶
func (r *ResourceQuotaUpdateRequest) Send() (result *ResourceQuotaUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ResourceQuotaUpdateRequest) SendContext ¶ added in v0.1.10
func (r *ResourceQuotaUpdateRequest) SendContext(ctx context.Context) (result *ResourceQuotaUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type ResourceQuotaUpdateResponse ¶
type ResourceQuotaUpdateResponse struct {
// contains filtered or unexported fields
}
ResourceQuotaUpdateResponse is the response for the 'update' method.
func (*ResourceQuotaUpdateResponse) Body ¶
func (r *ResourceQuotaUpdateResponse) Body() *ResourceQuota
Body returns the value of the 'body' parameter.
func (*ResourceQuotaUpdateResponse) Error ¶
func (r *ResourceQuotaUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*ResourceQuotaUpdateResponse) GetBody ¶ added in v0.1.16
func (r *ResourceQuotaUpdateResponse) GetBody() (value *ResourceQuota, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*ResourceQuotaUpdateResponse) Header ¶
func (r *ResourceQuotaUpdateResponse) Header() http.Header
Header returns header of the response.
func (*ResourceQuotaUpdateResponse) Status ¶
func (r *ResourceQuotaUpdateResponse) Status() int
Status returns the response status code.
type ResourceQuotaUpdateServerRequest ¶ added in v0.1.27
type ResourceQuotaUpdateServerRequest struct {
// contains filtered or unexported fields
}
ResourceQuotaUpdateServerRequest is the request for the 'update' method.
func (*ResourceQuotaUpdateServerRequest) Body ¶ added in v0.1.27
func (r *ResourceQuotaUpdateServerRequest) Body() *ResourceQuota
Body returns the value of the 'body' parameter.
func (*ResourceQuotaUpdateServerRequest) GetBody ¶ added in v0.1.27
func (r *ResourceQuotaUpdateServerRequest) GetBody() (value *ResourceQuota, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
type ResourceQuotaUpdateServerResponse ¶ added in v0.1.27
type ResourceQuotaUpdateServerResponse struct {
// contains filtered or unexported fields
}
ResourceQuotaUpdateServerResponse is the response for the 'update' method.
func (*ResourceQuotaUpdateServerResponse) Body ¶ added in v0.1.27
func (r *ResourceQuotaUpdateServerResponse) Body(value *ResourceQuota) *ResourceQuotaUpdateServerResponse
Body sets the value of the 'body' parameter.
func (*ResourceQuotaUpdateServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *ResourceQuotaUpdateServerResponse) SetStatusCode(status int) *ResourceQuotaUpdateServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type ResourceQuotasAddRequest ¶
type ResourceQuotasAddRequest struct {
// contains filtered or unexported fields
}
ResourceQuotasAddRequest is the request for the 'add' method.
func (*ResourceQuotasAddRequest) Body ¶
func (r *ResourceQuotasAddRequest) Body(value *ResourceQuota) *ResourceQuotasAddRequest
Body sets the value of the 'body' parameter.
Resource quota data.
func (*ResourceQuotasAddRequest) Header ¶
func (r *ResourceQuotasAddRequest) Header(name string, value interface{}) *ResourceQuotasAddRequest
Header adds a request header.
func (*ResourceQuotasAddRequest) Parameter ¶
func (r *ResourceQuotasAddRequest) Parameter(name string, value interface{}) *ResourceQuotasAddRequest
Parameter adds a query parameter.
func (*ResourceQuotasAddRequest) Send ¶
func (r *ResourceQuotasAddRequest) Send() (result *ResourceQuotasAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ResourceQuotasAddRequest) SendContext ¶ added in v0.1.10
func (r *ResourceQuotasAddRequest) SendContext(ctx context.Context) (result *ResourceQuotasAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type ResourceQuotasAddResponse ¶
type ResourceQuotasAddResponse struct {
// contains filtered or unexported fields
}
ResourceQuotasAddResponse is the response for the 'add' method.
func (*ResourceQuotasAddResponse) Body ¶
func (r *ResourceQuotasAddResponse) Body() *ResourceQuota
Body returns the value of the 'body' parameter.
Resource quota data.
func (*ResourceQuotasAddResponse) Error ¶
func (r *ResourceQuotasAddResponse) Error() *errors.Error
Error returns the response error.
func (*ResourceQuotasAddResponse) GetBody ¶ added in v0.1.16
func (r *ResourceQuotasAddResponse) GetBody() (value *ResourceQuota, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Resource quota data.
func (*ResourceQuotasAddResponse) Header ¶
func (r *ResourceQuotasAddResponse) Header() http.Header
Header returns header of the response.
func (*ResourceQuotasAddResponse) Status ¶
func (r *ResourceQuotasAddResponse) Status() int
Status returns the response status code.
type ResourceQuotasAddServerRequest ¶ added in v0.1.27
type ResourceQuotasAddServerRequest struct {
// contains filtered or unexported fields
}
ResourceQuotasAddServerRequest is the request for the 'add' method.
func (*ResourceQuotasAddServerRequest) Body ¶ added in v0.1.27
func (r *ResourceQuotasAddServerRequest) Body() *ResourceQuota
Body returns the value of the 'body' parameter.
Resource quota data.
func (*ResourceQuotasAddServerRequest) GetBody ¶ added in v0.1.27
func (r *ResourceQuotasAddServerRequest) GetBody() (value *ResourceQuota, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Resource quota data.
type ResourceQuotasAddServerResponse ¶ added in v0.1.27
type ResourceQuotasAddServerResponse struct {
// contains filtered or unexported fields
}
ResourceQuotasAddServerResponse is the response for the 'add' method.
func (*ResourceQuotasAddServerResponse) Body ¶ added in v0.1.27
func (r *ResourceQuotasAddServerResponse) Body(value *ResourceQuota) *ResourceQuotasAddServerResponse
Body sets the value of the 'body' parameter.
Resource quota data.
func (*ResourceQuotasAddServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *ResourceQuotasAddServerResponse) SetStatusCode(status int) *ResourceQuotasAddServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type ResourceQuotasClient ¶
type ResourceQuotasClient struct {
// contains filtered or unexported fields
}
ResourceQuotasClient is the client of the 'resource_quotas' resource.
Manages the collection of resource quotas for an organization.
func NewResourceQuotasClient ¶
func NewResourceQuotasClient(transport http.RoundTripper, path string, metric string) *ResourceQuotasClient
NewResourceQuotasClient creates a new client for the 'resource_quotas' resource using the given transport to sned the requests and receive the responses.
func (*ResourceQuotasClient) Add ¶
func (c *ResourceQuotasClient) Add() *ResourceQuotasAddRequest
Add creates a request for the 'add' method.
Creates a new resource quota.
func (*ResourceQuotasClient) List ¶
func (c *ResourceQuotasClient) List() *ResourceQuotasListRequest
List creates a request for the 'list' method.
Retrieves the list of resource quotas.
func (*ResourceQuotasClient) ResourceQuota ¶
func (c *ResourceQuotasClient) ResourceQuota(id string) *ResourceQuotaClient
ResourceQuota returns the target 'resource_quota' resource for the given identifier.
Reference to the service that manages an specific resource quota.
type ResourceQuotasListRequest ¶
type ResourceQuotasListRequest struct {
// contains filtered or unexported fields
}
ResourceQuotasListRequest is the request for the 'list' method.
func (*ResourceQuotasListRequest) Header ¶
func (r *ResourceQuotasListRequest) Header(name string, value interface{}) *ResourceQuotasListRequest
Header adds a request header.
func (*ResourceQuotasListRequest) Page ¶
func (r *ResourceQuotasListRequest) Page(value int) *ResourceQuotasListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*ResourceQuotasListRequest) Parameter ¶
func (r *ResourceQuotasListRequest) Parameter(name string, value interface{}) *ResourceQuotasListRequest
Parameter adds a query parameter.
func (*ResourceQuotasListRequest) Send ¶
func (r *ResourceQuotasListRequest) Send() (result *ResourceQuotasListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*ResourceQuotasListRequest) SendContext ¶ added in v0.1.10
func (r *ResourceQuotasListRequest) SendContext(ctx context.Context) (result *ResourceQuotasListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*ResourceQuotasListRequest) Size ¶
func (r *ResourceQuotasListRequest) Size(value int) *ResourceQuotasListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*ResourceQuotasListRequest) Total ¶
func (r *ResourceQuotasListRequest) Total(value int) *ResourceQuotasListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type ResourceQuotasListResponse ¶
type ResourceQuotasListResponse struct {
// contains filtered or unexported fields
}
ResourceQuotasListResponse is the response for the 'list' method.
func (*ResourceQuotasListResponse) Error ¶
func (r *ResourceQuotasListResponse) Error() *errors.Error
Error returns the response error.
func (*ResourceQuotasListResponse) GetItems ¶ added in v0.1.16
func (r *ResourceQuotasListResponse) GetItems() (value *ResourceQuotaList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of resource quotas.
func (*ResourceQuotasListResponse) GetPage ¶ added in v0.1.16
func (r *ResourceQuotasListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*ResourceQuotasListResponse) GetSize ¶ added in v0.1.16
func (r *ResourceQuotasListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*ResourceQuotasListResponse) GetTotal ¶ added in v0.1.16
func (r *ResourceQuotasListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*ResourceQuotasListResponse) Header ¶
func (r *ResourceQuotasListResponse) Header() http.Header
Header returns header of the response.
func (*ResourceQuotasListResponse) Items ¶
func (r *ResourceQuotasListResponse) Items() *ResourceQuotaList
Items returns the value of the 'items' parameter.
Retrieved list of resource quotas.
func (*ResourceQuotasListResponse) Page ¶
func (r *ResourceQuotasListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*ResourceQuotasListResponse) Size ¶
func (r *ResourceQuotasListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*ResourceQuotasListResponse) Status ¶
func (r *ResourceQuotasListResponse) Status() int
Status returns the response status code.
func (*ResourceQuotasListResponse) Total ¶
func (r *ResourceQuotasListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type ResourceQuotasListServerRequest ¶ added in v0.1.27
type ResourceQuotasListServerRequest struct {
// contains filtered or unexported fields
}
ResourceQuotasListServerRequest is the request for the 'list' method.
func (*ResourceQuotasListServerRequest) GetPage ¶ added in v0.1.27
func (r *ResourceQuotasListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*ResourceQuotasListServerRequest) GetSize ¶ added in v0.1.27
func (r *ResourceQuotasListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*ResourceQuotasListServerRequest) GetTotal ¶ added in v0.1.27
func (r *ResourceQuotasListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*ResourceQuotasListServerRequest) Page ¶ added in v0.1.27
func (r *ResourceQuotasListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*ResourceQuotasListServerRequest) Size ¶ added in v0.1.27
func (r *ResourceQuotasListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*ResourceQuotasListServerRequest) Total ¶ added in v0.1.27
func (r *ResourceQuotasListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type ResourceQuotasListServerResponse ¶ added in v0.1.27
type ResourceQuotasListServerResponse struct {
// contains filtered or unexported fields
}
ResourceQuotasListServerResponse is the response for the 'list' method.
func (*ResourceQuotasListServerResponse) Items ¶ added in v0.1.27
func (r *ResourceQuotasListServerResponse) Items(value *ResourceQuotaList) *ResourceQuotasListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of resource quotas.
func (*ResourceQuotasListServerResponse) Page ¶ added in v0.1.27
func (r *ResourceQuotasListServerResponse) Page(value int) *ResourceQuotasListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*ResourceQuotasListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *ResourceQuotasListServerResponse) SetStatusCode(status int) *ResourceQuotasListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*ResourceQuotasListServerResponse) Size ¶ added in v0.1.27
func (r *ResourceQuotasListServerResponse) Size(value int) *ResourceQuotasListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*ResourceQuotasListServerResponse) Total ¶ added in v0.1.27
func (r *ResourceQuotasListServerResponse) Total(value int) *ResourceQuotasListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type ResourceQuotasServer ¶ added in v0.1.27
type ResourceQuotasServer interface { // List handles a request for the 'list' method. // // Retrieves the list of resource quotas. List(ctx context.Context, request *ResourceQuotasListServerRequest, response *ResourceQuotasListServerResponse) error // Add handles a request for the 'add' method. // // Creates a new resource quota. Add(ctx context.Context, request *ResourceQuotasAddServerRequest, response *ResourceQuotasAddServerResponse) error // ResourceQuota returns the target 'resource_quota' server for the given identifier. // // Reference to the service that manages an specific resource quota. ResourceQuota(id string) ResourceQuotaServer }
ResourceQuotasServer represents the interface the manages the 'resource_quotas' resource.
type ResourceQuotasServerAdapter ¶ added in v0.1.27
type ResourceQuotasServerAdapter struct {
// contains filtered or unexported fields
}
ResourceQuotasServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewResourceQuotasServerAdapter ¶ added in v0.1.27
func NewResourceQuotasServerAdapter(server ResourceQuotasServer, router *mux.Router) *ResourceQuotasServerAdapter
func (*ResourceQuotasServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *ResourceQuotasServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Role ¶
type Role struct {
// contains filtered or unexported fields
}
Role represents the values of the 'role' type.
func UnmarshalRole ¶
UnmarshalRole reads a value of the 'role' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*Role) Empty ¶ added in v0.1.8
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Role) GetHREF ¶
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Role) GetID ¶
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Role) GetName ¶
GetName returns the value of the 'name' attribute and a flag indicating if the attribute has a value.
func (*Role) GetPermissions ¶
func (o *Role) GetPermissions() (value *PermissionList, ok bool)
GetPermissions returns the value of the 'permissions' attribute and a flag indicating if the attribute has a value.
func (*Role) Name ¶
Name returns the value of the 'name' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Role) Permissions ¶
func (o *Role) Permissions() *PermissionList
Permissions returns the value of the 'permissions' attribute, or the zero value of the type if the attribute doesn't have a value.
type RoleBinding ¶
type RoleBinding struct {
// contains filtered or unexported fields
}
RoleBinding represents the values of the 'role_binding' type.
func UnmarshalRoleBinding ¶
func UnmarshalRoleBinding(source interface{}) (object *RoleBinding, err error)
UnmarshalRoleBinding reads a value of the 'role_binding' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*RoleBinding) Account ¶
func (o *RoleBinding) Account() *Account
Account returns the value of the 'account' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*RoleBinding) Empty ¶ added in v0.1.8
func (o *RoleBinding) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*RoleBinding) GetAccount ¶
func (o *RoleBinding) GetAccount() (value *Account, ok bool)
GetAccount returns the value of the 'account' attribute and a flag indicating if the attribute has a value.
func (*RoleBinding) GetHREF ¶
func (o *RoleBinding) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*RoleBinding) GetID ¶
func (o *RoleBinding) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*RoleBinding) GetOrganization ¶
func (o *RoleBinding) GetOrganization() (value *Organization, ok bool)
GetOrganization returns the value of the 'organization' attribute and a flag indicating if the attribute has a value.
func (*RoleBinding) GetRole ¶
func (o *RoleBinding) GetRole() (value *Role, ok bool)
GetRole returns the value of the 'role' attribute and a flag indicating if the attribute has a value.
func (*RoleBinding) GetSubscription ¶
func (o *RoleBinding) GetSubscription() (value *Subscription, ok bool)
GetSubscription returns the value of the 'subscription' attribute and a flag indicating if the attribute has a value.
func (*RoleBinding) GetType ¶
func (o *RoleBinding) GetType() (value string, ok bool)
GetType returns the value of the 'type' attribute and a flag indicating if the attribute has a value.
func (*RoleBinding) Kind ¶
func (o *RoleBinding) Kind() string
Kind returns the name of the type of the object.
func (*RoleBinding) Organization ¶
func (o *RoleBinding) Organization() *Organization
Organization returns the value of the 'organization' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*RoleBinding) Role ¶
func (o *RoleBinding) Role() *Role
Role returns the value of the 'role' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*RoleBinding) Subscription ¶
func (o *RoleBinding) Subscription() *Subscription
Subscription returns the value of the 'subscription' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*RoleBinding) Type ¶
func (o *RoleBinding) Type() string
Type returns the value of the 'type' attribute, or the zero value of the type if the attribute doesn't have a value.
type RoleBindingBuilder ¶
type RoleBindingBuilder struct {
// contains filtered or unexported fields
}
RoleBindingBuilder contains the data and logic needed to build 'role_binding' objects.
func NewRoleBinding ¶
func NewRoleBinding() *RoleBindingBuilder
NewRoleBinding creates a new builder of 'role_binding' objects.
func (*RoleBindingBuilder) Account ¶
func (b *RoleBindingBuilder) Account(value *AccountBuilder) *RoleBindingBuilder
Account sets the value of the 'account' attribute to the given value.
func (*RoleBindingBuilder) Build ¶
func (b *RoleBindingBuilder) Build() (object *RoleBinding, err error)
Build creates a 'role_binding' object using the configuration stored in the builder.
func (*RoleBindingBuilder) HREF ¶
func (b *RoleBindingBuilder) HREF(value string) *RoleBindingBuilder
HREF sets the link to the object.
func (*RoleBindingBuilder) ID ¶
func (b *RoleBindingBuilder) ID(value string) *RoleBindingBuilder
ID sets the identifier of the object.
func (*RoleBindingBuilder) Link ¶
func (b *RoleBindingBuilder) Link(value bool) *RoleBindingBuilder
Link sets the flag that indicates if this is a link.
func (*RoleBindingBuilder) Organization ¶
func (b *RoleBindingBuilder) Organization(value *OrganizationBuilder) *RoleBindingBuilder
Organization sets the value of the 'organization' attribute to the given value.
func (*RoleBindingBuilder) Role ¶
func (b *RoleBindingBuilder) Role(value *RoleBuilder) *RoleBindingBuilder
Role sets the value of the 'role' attribute to the given value.
func (*RoleBindingBuilder) Subscription ¶
func (b *RoleBindingBuilder) Subscription(value *SubscriptionBuilder) *RoleBindingBuilder
Subscription sets the value of the 'subscription' attribute to the given value.
func (*RoleBindingBuilder) Type ¶
func (b *RoleBindingBuilder) Type(value string) *RoleBindingBuilder
Type sets the value of the 'type' attribute to the given value.
type RoleBindingClient ¶
type RoleBindingClient struct {
// contains filtered or unexported fields
}
RoleBindingClient is the client of the 'role_binding' resource.
Manages a specific role binding.
func NewRoleBindingClient ¶
func NewRoleBindingClient(transport http.RoundTripper, path string, metric string) *RoleBindingClient
NewRoleBindingClient creates a new client for the 'role_binding' resource using the given transport to sned the requests and receive the responses.
func (*RoleBindingClient) Delete ¶
func (c *RoleBindingClient) Delete() *RoleBindingDeleteRequest
Delete creates a request for the 'delete' method.
Deletes the role binding.
func (*RoleBindingClient) Get ¶
func (c *RoleBindingClient) Get() *RoleBindingGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the role binding.
type RoleBindingDeleteRequest ¶
type RoleBindingDeleteRequest struct {
// contains filtered or unexported fields
}
RoleBindingDeleteRequest is the request for the 'delete' method.
func (*RoleBindingDeleteRequest) Header ¶
func (r *RoleBindingDeleteRequest) Header(name string, value interface{}) *RoleBindingDeleteRequest
Header adds a request header.
func (*RoleBindingDeleteRequest) Parameter ¶
func (r *RoleBindingDeleteRequest) Parameter(name string, value interface{}) *RoleBindingDeleteRequest
Parameter adds a query parameter.
func (*RoleBindingDeleteRequest) Send ¶
func (r *RoleBindingDeleteRequest) Send() (result *RoleBindingDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RoleBindingDeleteRequest) SendContext ¶ added in v0.1.10
func (r *RoleBindingDeleteRequest) SendContext(ctx context.Context) (result *RoleBindingDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RoleBindingDeleteResponse ¶
type RoleBindingDeleteResponse struct {
// contains filtered or unexported fields
}
RoleBindingDeleteResponse is the response for the 'delete' method.
func (*RoleBindingDeleteResponse) Error ¶
func (r *RoleBindingDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*RoleBindingDeleteResponse) Header ¶
func (r *RoleBindingDeleteResponse) Header() http.Header
Header returns header of the response.
func (*RoleBindingDeleteResponse) Status ¶
func (r *RoleBindingDeleteResponse) Status() int
Status returns the response status code.
type RoleBindingDeleteServerRequest ¶ added in v0.1.27
type RoleBindingDeleteServerRequest struct {
// contains filtered or unexported fields
}
RoleBindingDeleteServerRequest is the request for the 'delete' method.
type RoleBindingDeleteServerResponse ¶ added in v0.1.27
type RoleBindingDeleteServerResponse struct {
// contains filtered or unexported fields
}
RoleBindingDeleteServerResponse is the response for the 'delete' method.
func (*RoleBindingDeleteServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RoleBindingDeleteServerResponse) SetStatusCode(status int) *RoleBindingDeleteServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RoleBindingGetRequest ¶
type RoleBindingGetRequest struct {
// contains filtered or unexported fields
}
RoleBindingGetRequest is the request for the 'get' method.
func (*RoleBindingGetRequest) Header ¶
func (r *RoleBindingGetRequest) Header(name string, value interface{}) *RoleBindingGetRequest
Header adds a request header.
func (*RoleBindingGetRequest) Parameter ¶
func (r *RoleBindingGetRequest) Parameter(name string, value interface{}) *RoleBindingGetRequest
Parameter adds a query parameter.
func (*RoleBindingGetRequest) Send ¶
func (r *RoleBindingGetRequest) Send() (result *RoleBindingGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RoleBindingGetRequest) SendContext ¶ added in v0.1.10
func (r *RoleBindingGetRequest) SendContext(ctx context.Context) (result *RoleBindingGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RoleBindingGetResponse ¶
type RoleBindingGetResponse struct {
// contains filtered or unexported fields
}
RoleBindingGetResponse is the response for the 'get' method.
func (*RoleBindingGetResponse) Body ¶
func (r *RoleBindingGetResponse) Body() *RoleBinding
Body returns the value of the 'body' parameter.
func (*RoleBindingGetResponse) Error ¶
func (r *RoleBindingGetResponse) Error() *errors.Error
Error returns the response error.
func (*RoleBindingGetResponse) GetBody ¶ added in v0.1.16
func (r *RoleBindingGetResponse) GetBody() (value *RoleBinding, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*RoleBindingGetResponse) Header ¶
func (r *RoleBindingGetResponse) Header() http.Header
Header returns header of the response.
func (*RoleBindingGetResponse) Status ¶
func (r *RoleBindingGetResponse) Status() int
Status returns the response status code.
type RoleBindingGetServerRequest ¶ added in v0.1.27
type RoleBindingGetServerRequest struct {
// contains filtered or unexported fields
}
RoleBindingGetServerRequest is the request for the 'get' method.
type RoleBindingGetServerResponse ¶ added in v0.1.27
type RoleBindingGetServerResponse struct {
// contains filtered or unexported fields
}
RoleBindingGetServerResponse is the response for the 'get' method.
func (*RoleBindingGetServerResponse) Body ¶ added in v0.1.27
func (r *RoleBindingGetServerResponse) Body(value *RoleBinding) *RoleBindingGetServerResponse
Body sets the value of the 'body' parameter.
func (*RoleBindingGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RoleBindingGetServerResponse) SetStatusCode(status int) *RoleBindingGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RoleBindingList ¶
type RoleBindingList struct {
// contains filtered or unexported fields
}
RoleBindingList is a list of values of the 'role_binding' type.
func UnmarshalRoleBindingList ¶
func UnmarshalRoleBindingList(source interface{}) (list *RoleBindingList, err error)
UnmarshalRoleBindingList reads a list of values of the 'role_binding' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*RoleBindingList) Each ¶
func (l *RoleBindingList) Each(f func(item *RoleBinding) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*RoleBindingList) Empty ¶ added in v0.1.8
func (l *RoleBindingList) Empty() bool
Empty returns true if the list is empty.
func (*RoleBindingList) Get ¶ added in v0.1.17
func (l *RoleBindingList) Get(i int) *RoleBinding
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*RoleBindingList) GetHREF ¶ added in v0.1.7
func (l *RoleBindingList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*RoleBindingList) HREF ¶ added in v0.1.7
func (l *RoleBindingList) HREF() string
HREF returns the link to the list.
func (*RoleBindingList) Kind ¶ added in v0.1.7
func (l *RoleBindingList) Kind() string
Kind returns the name of the type of the object.
func (*RoleBindingList) Len ¶
func (l *RoleBindingList) Len() int
Len returns the length of the list.
func (*RoleBindingList) Link ¶ added in v0.1.7
func (l *RoleBindingList) Link() bool
Link returns true iif this is a link.
func (*RoleBindingList) Range ¶
func (l *RoleBindingList) Range(f func(index int, item *RoleBinding) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*RoleBindingList) Slice ¶
func (l *RoleBindingList) Slice() []*RoleBinding
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type RoleBindingListBuilder ¶
type RoleBindingListBuilder struct {
// contains filtered or unexported fields
}
RoleBindingListBuilder contains the data and logic needed to build 'role_binding' objects.
func NewRoleBindingList ¶
func NewRoleBindingList() *RoleBindingListBuilder
NewRoleBindingList creates a new builder of 'role_binding' objects.
func (*RoleBindingListBuilder) Build ¶
func (b *RoleBindingListBuilder) Build() (list *RoleBindingList, err error)
Build creates a list of 'role_binding' objects using the configuration stored in the builder.
func (*RoleBindingListBuilder) Items ¶
func (b *RoleBindingListBuilder) Items(values ...*RoleBindingBuilder) *RoleBindingListBuilder
Items sets the items of the list.
type RoleBindingServer ¶ added in v0.1.27
type RoleBindingServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the role binding. Get(ctx context.Context, request *RoleBindingGetServerRequest, response *RoleBindingGetServerResponse) error // Delete handles a request for the 'delete' method. // // Deletes the role binding. Delete(ctx context.Context, request *RoleBindingDeleteServerRequest, response *RoleBindingDeleteServerResponse) error }
RoleBindingServer represents the interface the manages the 'role_binding' resource.
type RoleBindingServerAdapter ¶ added in v0.1.27
type RoleBindingServerAdapter struct {
// contains filtered or unexported fields
}
RoleBindingServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRoleBindingServerAdapter ¶ added in v0.1.27
func NewRoleBindingServerAdapter(server RoleBindingServer, router *mux.Router) *RoleBindingServerAdapter
func (*RoleBindingServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RoleBindingServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RoleBindingsAddRequest ¶
type RoleBindingsAddRequest struct {
// contains filtered or unexported fields
}
RoleBindingsAddRequest is the request for the 'add' method.
func (*RoleBindingsAddRequest) Body ¶
func (r *RoleBindingsAddRequest) Body(value *RoleBinding) *RoleBindingsAddRequest
Body sets the value of the 'body' parameter.
Role binding data.
func (*RoleBindingsAddRequest) Header ¶
func (r *RoleBindingsAddRequest) Header(name string, value interface{}) *RoleBindingsAddRequest
Header adds a request header.
func (*RoleBindingsAddRequest) Parameter ¶
func (r *RoleBindingsAddRequest) Parameter(name string, value interface{}) *RoleBindingsAddRequest
Parameter adds a query parameter.
func (*RoleBindingsAddRequest) Send ¶
func (r *RoleBindingsAddRequest) Send() (result *RoleBindingsAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RoleBindingsAddRequest) SendContext ¶ added in v0.1.10
func (r *RoleBindingsAddRequest) SendContext(ctx context.Context) (result *RoleBindingsAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RoleBindingsAddResponse ¶
type RoleBindingsAddResponse struct {
// contains filtered or unexported fields
}
RoleBindingsAddResponse is the response for the 'add' method.
func (*RoleBindingsAddResponse) Body ¶
func (r *RoleBindingsAddResponse) Body() *RoleBinding
Body returns the value of the 'body' parameter.
Role binding data.
func (*RoleBindingsAddResponse) Error ¶
func (r *RoleBindingsAddResponse) Error() *errors.Error
Error returns the response error.
func (*RoleBindingsAddResponse) GetBody ¶ added in v0.1.16
func (r *RoleBindingsAddResponse) GetBody() (value *RoleBinding, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Role binding data.
func (*RoleBindingsAddResponse) Header ¶
func (r *RoleBindingsAddResponse) Header() http.Header
Header returns header of the response.
func (*RoleBindingsAddResponse) Status ¶
func (r *RoleBindingsAddResponse) Status() int
Status returns the response status code.
type RoleBindingsAddServerRequest ¶ added in v0.1.27
type RoleBindingsAddServerRequest struct {
// contains filtered or unexported fields
}
RoleBindingsAddServerRequest is the request for the 'add' method.
func (*RoleBindingsAddServerRequest) Body ¶ added in v0.1.27
func (r *RoleBindingsAddServerRequest) Body() *RoleBinding
Body returns the value of the 'body' parameter.
Role binding data.
func (*RoleBindingsAddServerRequest) GetBody ¶ added in v0.1.27
func (r *RoleBindingsAddServerRequest) GetBody() (value *RoleBinding, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Role binding data.
type RoleBindingsAddServerResponse ¶ added in v0.1.27
type RoleBindingsAddServerResponse struct {
// contains filtered or unexported fields
}
RoleBindingsAddServerResponse is the response for the 'add' method.
func (*RoleBindingsAddServerResponse) Body ¶ added in v0.1.27
func (r *RoleBindingsAddServerResponse) Body(value *RoleBinding) *RoleBindingsAddServerResponse
Body sets the value of the 'body' parameter.
Role binding data.
func (*RoleBindingsAddServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RoleBindingsAddServerResponse) SetStatusCode(status int) *RoleBindingsAddServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RoleBindingsClient ¶
type RoleBindingsClient struct {
// contains filtered or unexported fields
}
RoleBindingsClient is the client of the 'role_bindings' resource.
Manages the collection of role bindings.
func NewRoleBindingsClient ¶
func NewRoleBindingsClient(transport http.RoundTripper, path string, metric string) *RoleBindingsClient
NewRoleBindingsClient creates a new client for the 'role_bindings' resource using the given transport to sned the requests and receive the responses.
func (*RoleBindingsClient) Add ¶
func (c *RoleBindingsClient) Add() *RoleBindingsAddRequest
Add creates a request for the 'add' method.
Creates a new role binding.
func (*RoleBindingsClient) List ¶
func (c *RoleBindingsClient) List() *RoleBindingsListRequest
List creates a request for the 'list' method.
Retrieves a list of role bindings.
func (*RoleBindingsClient) RoleBinding ¶
func (c *RoleBindingsClient) RoleBinding(id string) *RoleBindingClient
RoleBinding returns the target 'role_binding' resource for the given identifier.
Reference to the service that manages a specific role binding.
type RoleBindingsListRequest ¶
type RoleBindingsListRequest struct {
// contains filtered or unexported fields
}
RoleBindingsListRequest is the request for the 'list' method.
func (*RoleBindingsListRequest) Header ¶
func (r *RoleBindingsListRequest) Header(name string, value interface{}) *RoleBindingsListRequest
Header adds a request header.
func (*RoleBindingsListRequest) Page ¶
func (r *RoleBindingsListRequest) Page(value int) *RoleBindingsListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RoleBindingsListRequest) Parameter ¶
func (r *RoleBindingsListRequest) Parameter(name string, value interface{}) *RoleBindingsListRequest
Parameter adds a query parameter.
func (*RoleBindingsListRequest) Send ¶
func (r *RoleBindingsListRequest) Send() (result *RoleBindingsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RoleBindingsListRequest) SendContext ¶ added in v0.1.10
func (r *RoleBindingsListRequest) SendContext(ctx context.Context) (result *RoleBindingsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*RoleBindingsListRequest) Size ¶
func (r *RoleBindingsListRequest) Size(value int) *RoleBindingsListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RoleBindingsListRequest) Total ¶
func (r *RoleBindingsListRequest) Total(value int) *RoleBindingsListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RoleBindingsListResponse ¶
type RoleBindingsListResponse struct {
// contains filtered or unexported fields
}
RoleBindingsListResponse is the response for the 'list' method.
func (*RoleBindingsListResponse) Error ¶
func (r *RoleBindingsListResponse) Error() *errors.Error
Error returns the response error.
func (*RoleBindingsListResponse) GetItems ¶ added in v0.1.16
func (r *RoleBindingsListResponse) GetItems() (value *RoleBindingList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of role bindings.
func (*RoleBindingsListResponse) GetPage ¶ added in v0.1.16
func (r *RoleBindingsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RoleBindingsListResponse) GetSize ¶ added in v0.1.16
func (r *RoleBindingsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RoleBindingsListResponse) GetTotal ¶ added in v0.1.16
func (r *RoleBindingsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*RoleBindingsListResponse) Header ¶
func (r *RoleBindingsListResponse) Header() http.Header
Header returns header of the response.
func (*RoleBindingsListResponse) Items ¶
func (r *RoleBindingsListResponse) Items() *RoleBindingList
Items returns the value of the 'items' parameter.
Retrieved list of role bindings.
func (*RoleBindingsListResponse) Page ¶
func (r *RoleBindingsListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RoleBindingsListResponse) Size ¶
func (r *RoleBindingsListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RoleBindingsListResponse) Status ¶
func (r *RoleBindingsListResponse) Status() int
Status returns the response status code.
func (*RoleBindingsListResponse) Total ¶
func (r *RoleBindingsListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RoleBindingsListServerRequest ¶ added in v0.1.27
type RoleBindingsListServerRequest struct {
// contains filtered or unexported fields
}
RoleBindingsListServerRequest is the request for the 'list' method.
func (*RoleBindingsListServerRequest) GetPage ¶ added in v0.1.27
func (r *RoleBindingsListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RoleBindingsListServerRequest) GetSize ¶ added in v0.1.27
func (r *RoleBindingsListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RoleBindingsListServerRequest) GetTotal ¶ added in v0.1.27
func (r *RoleBindingsListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*RoleBindingsListServerRequest) Page ¶ added in v0.1.27
func (r *RoleBindingsListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RoleBindingsListServerRequest) Size ¶ added in v0.1.27
func (r *RoleBindingsListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RoleBindingsListServerRequest) Total ¶ added in v0.1.27
func (r *RoleBindingsListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RoleBindingsListServerResponse ¶ added in v0.1.27
type RoleBindingsListServerResponse struct {
// contains filtered or unexported fields
}
RoleBindingsListServerResponse is the response for the 'list' method.
func (*RoleBindingsListServerResponse) Items ¶ added in v0.1.27
func (r *RoleBindingsListServerResponse) Items(value *RoleBindingList) *RoleBindingsListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of role bindings.
func (*RoleBindingsListServerResponse) Page ¶ added in v0.1.27
func (r *RoleBindingsListServerResponse) Page(value int) *RoleBindingsListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RoleBindingsListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RoleBindingsListServerResponse) SetStatusCode(status int) *RoleBindingsListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*RoleBindingsListServerResponse) Size ¶ added in v0.1.27
func (r *RoleBindingsListServerResponse) Size(value int) *RoleBindingsListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RoleBindingsListServerResponse) Total ¶ added in v0.1.27
func (r *RoleBindingsListServerResponse) Total(value int) *RoleBindingsListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RoleBindingsServer ¶ added in v0.1.27
type RoleBindingsServer interface { // List handles a request for the 'list' method. // // Retrieves a list of role bindings. List(ctx context.Context, request *RoleBindingsListServerRequest, response *RoleBindingsListServerResponse) error // Add handles a request for the 'add' method. // // Creates a new role binding. Add(ctx context.Context, request *RoleBindingsAddServerRequest, response *RoleBindingsAddServerResponse) error // RoleBinding returns the target 'role_binding' server for the given identifier. // // Reference to the service that manages a specific role binding. RoleBinding(id string) RoleBindingServer }
RoleBindingsServer represents the interface the manages the 'role_bindings' resource.
type RoleBindingsServerAdapter ¶ added in v0.1.27
type RoleBindingsServerAdapter struct {
// contains filtered or unexported fields
}
RoleBindingsServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRoleBindingsServerAdapter ¶ added in v0.1.27
func NewRoleBindingsServerAdapter(server RoleBindingsServer, router *mux.Router) *RoleBindingsServerAdapter
func (*RoleBindingsServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RoleBindingsServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RoleBuilder ¶
type RoleBuilder struct {
// contains filtered or unexported fields
}
RoleBuilder contains the data and logic needed to build 'role' objects.
func (*RoleBuilder) Build ¶
func (b *RoleBuilder) Build() (object *Role, err error)
Build creates a 'role' object using the configuration stored in the builder.
func (*RoleBuilder) HREF ¶
func (b *RoleBuilder) HREF(value string) *RoleBuilder
HREF sets the link to the object.
func (*RoleBuilder) ID ¶
func (b *RoleBuilder) ID(value string) *RoleBuilder
ID sets the identifier of the object.
func (*RoleBuilder) Link ¶
func (b *RoleBuilder) Link(value bool) *RoleBuilder
Link sets the flag that indicates if this is a link.
func (*RoleBuilder) Name ¶
func (b *RoleBuilder) Name(value string) *RoleBuilder
Name sets the value of the 'name' attribute to the given value.
func (*RoleBuilder) Permissions ¶
func (b *RoleBuilder) Permissions(values ...*PermissionBuilder) *RoleBuilder
Permissions sets the value of the 'permissions' attribute to the given values.
type RoleClient ¶
type RoleClient struct {
// contains filtered or unexported fields
}
RoleClient is the client of the 'role' resource.
Manages a specific role.
func NewRoleClient ¶
func NewRoleClient(transport http.RoundTripper, path string, metric string) *RoleClient
NewRoleClient creates a new client for the 'role' resource using the given transport to sned the requests and receive the responses.
func (*RoleClient) Delete ¶
func (c *RoleClient) Delete() *RoleDeleteRequest
Delete creates a request for the 'delete' method.
Deletes the role.
func (*RoleClient) Get ¶
func (c *RoleClient) Get() *RoleGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the role.
func (*RoleClient) Update ¶
func (c *RoleClient) Update() *RoleUpdateRequest
Update creates a request for the 'update' method.
Updates the role.
type RoleDeleteRequest ¶
type RoleDeleteRequest struct {
// contains filtered or unexported fields
}
RoleDeleteRequest is the request for the 'delete' method.
func (*RoleDeleteRequest) Header ¶
func (r *RoleDeleteRequest) Header(name string, value interface{}) *RoleDeleteRequest
Header adds a request header.
func (*RoleDeleteRequest) Parameter ¶
func (r *RoleDeleteRequest) Parameter(name string, value interface{}) *RoleDeleteRequest
Parameter adds a query parameter.
func (*RoleDeleteRequest) Send ¶
func (r *RoleDeleteRequest) Send() (result *RoleDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RoleDeleteRequest) SendContext ¶ added in v0.1.10
func (r *RoleDeleteRequest) SendContext(ctx context.Context) (result *RoleDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RoleDeleteResponse ¶
type RoleDeleteResponse struct {
// contains filtered or unexported fields
}
RoleDeleteResponse is the response for the 'delete' method.
func (*RoleDeleteResponse) Error ¶
func (r *RoleDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*RoleDeleteResponse) Header ¶
func (r *RoleDeleteResponse) Header() http.Header
Header returns header of the response.
func (*RoleDeleteResponse) Status ¶
func (r *RoleDeleteResponse) Status() int
Status returns the response status code.
type RoleDeleteServerRequest ¶ added in v0.1.27
type RoleDeleteServerRequest struct {
// contains filtered or unexported fields
}
RoleDeleteServerRequest is the request for the 'delete' method.
type RoleDeleteServerResponse ¶ added in v0.1.27
type RoleDeleteServerResponse struct {
// contains filtered or unexported fields
}
RoleDeleteServerResponse is the response for the 'delete' method.
func (*RoleDeleteServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RoleDeleteServerResponse) SetStatusCode(status int) *RoleDeleteServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RoleGetRequest ¶
type RoleGetRequest struct {
// contains filtered or unexported fields
}
RoleGetRequest is the request for the 'get' method.
func (*RoleGetRequest) Header ¶
func (r *RoleGetRequest) Header(name string, value interface{}) *RoleGetRequest
Header adds a request header.
func (*RoleGetRequest) Parameter ¶
func (r *RoleGetRequest) Parameter(name string, value interface{}) *RoleGetRequest
Parameter adds a query parameter.
func (*RoleGetRequest) Send ¶
func (r *RoleGetRequest) Send() (result *RoleGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RoleGetRequest) SendContext ¶ added in v0.1.10
func (r *RoleGetRequest) SendContext(ctx context.Context) (result *RoleGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RoleGetResponse ¶
type RoleGetResponse struct {
// contains filtered or unexported fields
}
RoleGetResponse is the response for the 'get' method.
func (*RoleGetResponse) Body ¶
func (r *RoleGetResponse) Body() *Role
Body returns the value of the 'body' parameter.
func (*RoleGetResponse) Error ¶
func (r *RoleGetResponse) Error() *errors.Error
Error returns the response error.
func (*RoleGetResponse) GetBody ¶ added in v0.1.16
func (r *RoleGetResponse) GetBody() (value *Role, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*RoleGetResponse) Header ¶
func (r *RoleGetResponse) Header() http.Header
Header returns header of the response.
func (*RoleGetResponse) Status ¶
func (r *RoleGetResponse) Status() int
Status returns the response status code.
type RoleGetServerRequest ¶ added in v0.1.27
type RoleGetServerRequest struct {
// contains filtered or unexported fields
}
RoleGetServerRequest is the request for the 'get' method.
type RoleGetServerResponse ¶ added in v0.1.27
type RoleGetServerResponse struct {
// contains filtered or unexported fields
}
RoleGetServerResponse is the response for the 'get' method.
func (*RoleGetServerResponse) Body ¶ added in v0.1.27
func (r *RoleGetServerResponse) Body(value *Role) *RoleGetServerResponse
Body sets the value of the 'body' parameter.
func (*RoleGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RoleGetServerResponse) SetStatusCode(status int) *RoleGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RoleList ¶
type RoleList struct {
// contains filtered or unexported fields
}
RoleList is a list of values of the 'role' type.
func UnmarshalRoleList ¶
UnmarshalRoleList reads a list of values of the 'role' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*RoleList) Each ¶
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*RoleList) Get ¶ added in v0.1.17
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*RoleList) GetHREF ¶ added in v0.1.7
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*RoleList) Range ¶
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*RoleList) Slice ¶
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type RoleListBuilder ¶
type RoleListBuilder struct {
// contains filtered or unexported fields
}
RoleListBuilder contains the data and logic needed to build 'role' objects.
func NewRoleList ¶
func NewRoleList() *RoleListBuilder
NewRoleList creates a new builder of 'role' objects.
func (*RoleListBuilder) Build ¶
func (b *RoleListBuilder) Build() (list *RoleList, err error)
Build creates a list of 'role' objects using the configuration stored in the builder.
func (*RoleListBuilder) Items ¶
func (b *RoleListBuilder) Items(values ...*RoleBuilder) *RoleListBuilder
Items sets the items of the list.
type RoleServer ¶ added in v0.1.27
type RoleServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the role. Get(ctx context.Context, request *RoleGetServerRequest, response *RoleGetServerResponse) error // Update handles a request for the 'update' method. // // Updates the role. Update(ctx context.Context, request *RoleUpdateServerRequest, response *RoleUpdateServerResponse) error // Delete handles a request for the 'delete' method. // // Deletes the role. Delete(ctx context.Context, request *RoleDeleteServerRequest, response *RoleDeleteServerResponse) error }
RoleServer represents the interface the manages the 'role' resource.
type RoleServerAdapter ¶ added in v0.1.27
type RoleServerAdapter struct {
// contains filtered or unexported fields
}
RoleServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRoleServerAdapter ¶ added in v0.1.27
func NewRoleServerAdapter(server RoleServer, router *mux.Router) *RoleServerAdapter
func (*RoleServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RoleServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RoleUpdateRequest ¶
type RoleUpdateRequest struct {
// contains filtered or unexported fields
}
RoleUpdateRequest is the request for the 'update' method.
func (*RoleUpdateRequest) Body ¶
func (r *RoleUpdateRequest) Body(value *Role) *RoleUpdateRequest
Body sets the value of the 'body' parameter.
func (*RoleUpdateRequest) Header ¶
func (r *RoleUpdateRequest) Header(name string, value interface{}) *RoleUpdateRequest
Header adds a request header.
func (*RoleUpdateRequest) Parameter ¶
func (r *RoleUpdateRequest) Parameter(name string, value interface{}) *RoleUpdateRequest
Parameter adds a query parameter.
func (*RoleUpdateRequest) Send ¶
func (r *RoleUpdateRequest) Send() (result *RoleUpdateResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RoleUpdateRequest) SendContext ¶ added in v0.1.10
func (r *RoleUpdateRequest) SendContext(ctx context.Context) (result *RoleUpdateResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RoleUpdateResponse ¶
type RoleUpdateResponse struct {
// contains filtered or unexported fields
}
RoleUpdateResponse is the response for the 'update' method.
func (*RoleUpdateResponse) Body ¶
func (r *RoleUpdateResponse) Body() *Role
Body returns the value of the 'body' parameter.
func (*RoleUpdateResponse) Error ¶
func (r *RoleUpdateResponse) Error() *errors.Error
Error returns the response error.
func (*RoleUpdateResponse) GetBody ¶ added in v0.1.16
func (r *RoleUpdateResponse) GetBody() (value *Role, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*RoleUpdateResponse) Header ¶
func (r *RoleUpdateResponse) Header() http.Header
Header returns header of the response.
func (*RoleUpdateResponse) Status ¶
func (r *RoleUpdateResponse) Status() int
Status returns the response status code.
type RoleUpdateServerRequest ¶ added in v0.1.27
type RoleUpdateServerRequest struct {
// contains filtered or unexported fields
}
RoleUpdateServerRequest is the request for the 'update' method.
func (*RoleUpdateServerRequest) Body ¶ added in v0.1.27
func (r *RoleUpdateServerRequest) Body() *Role
Body returns the value of the 'body' parameter.
func (*RoleUpdateServerRequest) GetBody ¶ added in v0.1.27
func (r *RoleUpdateServerRequest) GetBody() (value *Role, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
type RoleUpdateServerResponse ¶ added in v0.1.27
type RoleUpdateServerResponse struct {
// contains filtered or unexported fields
}
RoleUpdateServerResponse is the response for the 'update' method.
func (*RoleUpdateServerResponse) Body ¶ added in v0.1.27
func (r *RoleUpdateServerResponse) Body(value *Role) *RoleUpdateServerResponse
Body sets the value of the 'body' parameter.
func (*RoleUpdateServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RoleUpdateServerResponse) SetStatusCode(status int) *RoleUpdateServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RolesAddRequest ¶
type RolesAddRequest struct {
// contains filtered or unexported fields
}
RolesAddRequest is the request for the 'add' method.
func (*RolesAddRequest) Body ¶
func (r *RolesAddRequest) Body(value *Role) *RolesAddRequest
Body sets the value of the 'body' parameter.
Role data.
func (*RolesAddRequest) Header ¶
func (r *RolesAddRequest) Header(name string, value interface{}) *RolesAddRequest
Header adds a request header.
func (*RolesAddRequest) Parameter ¶
func (r *RolesAddRequest) Parameter(name string, value interface{}) *RolesAddRequest
Parameter adds a query parameter.
func (*RolesAddRequest) Send ¶
func (r *RolesAddRequest) Send() (result *RolesAddResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RolesAddRequest) SendContext ¶ added in v0.1.10
func (r *RolesAddRequest) SendContext(ctx context.Context) (result *RolesAddResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type RolesAddResponse ¶
type RolesAddResponse struct {
// contains filtered or unexported fields
}
RolesAddResponse is the response for the 'add' method.
func (*RolesAddResponse) Body ¶
func (r *RolesAddResponse) Body() *Role
Body returns the value of the 'body' parameter.
Role data.
func (*RolesAddResponse) Error ¶
func (r *RolesAddResponse) Error() *errors.Error
Error returns the response error.
func (*RolesAddResponse) GetBody ¶ added in v0.1.16
func (r *RolesAddResponse) GetBody() (value *Role, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Role data.
func (*RolesAddResponse) Header ¶
func (r *RolesAddResponse) Header() http.Header
Header returns header of the response.
func (*RolesAddResponse) Status ¶
func (r *RolesAddResponse) Status() int
Status returns the response status code.
type RolesAddServerRequest ¶ added in v0.1.27
type RolesAddServerRequest struct {
// contains filtered or unexported fields
}
RolesAddServerRequest is the request for the 'add' method.
func (*RolesAddServerRequest) Body ¶ added in v0.1.27
func (r *RolesAddServerRequest) Body() *Role
Body returns the value of the 'body' parameter.
Role data.
func (*RolesAddServerRequest) GetBody ¶ added in v0.1.27
func (r *RolesAddServerRequest) GetBody() (value *Role, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
Role data.
type RolesAddServerResponse ¶ added in v0.1.27
type RolesAddServerResponse struct {
// contains filtered or unexported fields
}
RolesAddServerResponse is the response for the 'add' method.
func (*RolesAddServerResponse) Body ¶ added in v0.1.27
func (r *RolesAddServerResponse) Body(value *Role) *RolesAddServerResponse
Body sets the value of the 'body' parameter.
Role data.
func (*RolesAddServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RolesAddServerResponse) SetStatusCode(status int) *RolesAddServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type RolesClient ¶
type RolesClient struct {
// contains filtered or unexported fields
}
RolesClient is the client of the 'roles' resource.
Manages the collection of roles.
func NewRolesClient ¶
func NewRolesClient(transport http.RoundTripper, path string, metric string) *RolesClient
NewRolesClient creates a new client for the 'roles' resource using the given transport to sned the requests and receive the responses.
func (*RolesClient) Add ¶
func (c *RolesClient) Add() *RolesAddRequest
Add creates a request for the 'add' method.
Creates a new role.
func (*RolesClient) List ¶
func (c *RolesClient) List() *RolesListRequest
List creates a request for the 'list' method.
Retrieves a list of roles.
func (*RolesClient) Role ¶
func (c *RolesClient) Role(id string) *RoleClient
Role returns the target 'role' resource for the given identifier.
Reference to the service that manages a specific role.
type RolesListRequest ¶
type RolesListRequest struct {
// contains filtered or unexported fields
}
RolesListRequest is the request for the 'list' method.
func (*RolesListRequest) Header ¶
func (r *RolesListRequest) Header(name string, value interface{}) *RolesListRequest
Header adds a request header.
func (*RolesListRequest) Page ¶
func (r *RolesListRequest) Page(value int) *RolesListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RolesListRequest) Parameter ¶
func (r *RolesListRequest) Parameter(name string, value interface{}) *RolesListRequest
Parameter adds a query parameter.
func (*RolesListRequest) Send ¶
func (r *RolesListRequest) Send() (result *RolesListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*RolesListRequest) SendContext ¶ added in v0.1.10
func (r *RolesListRequest) SendContext(ctx context.Context) (result *RolesListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*RolesListRequest) Size ¶
func (r *RolesListRequest) Size(value int) *RolesListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RolesListRequest) Total ¶
func (r *RolesListRequest) Total(value int) *RolesListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RolesListResponse ¶
type RolesListResponse struct {
// contains filtered or unexported fields
}
RolesListResponse is the response for the 'list' method.
func (*RolesListResponse) Error ¶
func (r *RolesListResponse) Error() *errors.Error
Error returns the response error.
func (*RolesListResponse) GetItems ¶ added in v0.1.16
func (r *RolesListResponse) GetItems() (value *RoleList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of roles.
func (*RolesListResponse) GetPage ¶ added in v0.1.16
func (r *RolesListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RolesListResponse) GetSize ¶ added in v0.1.16
func (r *RolesListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RolesListResponse) GetTotal ¶ added in v0.1.16
func (r *RolesListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*RolesListResponse) Header ¶
func (r *RolesListResponse) Header() http.Header
Header returns header of the response.
func (*RolesListResponse) Items ¶
func (r *RolesListResponse) Items() *RoleList
Items returns the value of the 'items' parameter.
Retrieved list of roles.
func (*RolesListResponse) Page ¶
func (r *RolesListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RolesListResponse) Size ¶
func (r *RolesListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RolesListResponse) Status ¶
func (r *RolesListResponse) Status() int
Status returns the response status code.
func (*RolesListResponse) Total ¶
func (r *RolesListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RolesListServerRequest ¶ added in v0.1.27
type RolesListServerRequest struct {
// contains filtered or unexported fields
}
RolesListServerRequest is the request for the 'list' method.
func (*RolesListServerRequest) GetPage ¶ added in v0.1.27
func (r *RolesListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RolesListServerRequest) GetSize ¶ added in v0.1.27
func (r *RolesListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RolesListServerRequest) GetTotal ¶ added in v0.1.27
func (r *RolesListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*RolesListServerRequest) Page ¶ added in v0.1.27
func (r *RolesListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RolesListServerRequest) Size ¶ added in v0.1.27
func (r *RolesListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RolesListServerRequest) Total ¶ added in v0.1.27
func (r *RolesListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RolesListServerResponse ¶ added in v0.1.27
type RolesListServerResponse struct {
// contains filtered or unexported fields
}
RolesListServerResponse is the response for the 'list' method.
func (*RolesListServerResponse) Items ¶ added in v0.1.27
func (r *RolesListServerResponse) Items(value *RoleList) *RolesListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of roles.
func (*RolesListServerResponse) Page ¶ added in v0.1.27
func (r *RolesListServerResponse) Page(value int) *RolesListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*RolesListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *RolesListServerResponse) SetStatusCode(status int) *RolesListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*RolesListServerResponse) Size ¶ added in v0.1.27
func (r *RolesListServerResponse) Size(value int) *RolesListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*RolesListServerResponse) Total ¶ added in v0.1.27
func (r *RolesListServerResponse) Total(value int) *RolesListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type RolesServer ¶ added in v0.1.27
type RolesServer interface { // List handles a request for the 'list' method. // // Retrieves a list of roles. List(ctx context.Context, request *RolesListServerRequest, response *RolesListServerResponse) error // Add handles a request for the 'add' method. // // Creates a new role. Add(ctx context.Context, request *RolesAddServerRequest, response *RolesAddServerResponse) error // Role returns the target 'role' server for the given identifier. // // Reference to the service that manages a specific role. Role(id string) RoleServer }
RolesServer represents the interface the manages the 'roles' resource.
type RolesServerAdapter ¶ added in v0.1.27
type RolesServerAdapter struct {
// contains filtered or unexported fields
}
RolesServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRolesServerAdapter ¶ added in v0.1.27
func NewRolesServerAdapter(server RolesServer, router *mux.Router) *RolesServerAdapter
func (*RolesServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RolesServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type RootClient ¶
type RootClient struct {
// contains filtered or unexported fields
}
RootClient is the client of the 'root' resource.
Root of the tree of resources of the clusters management service.
func NewRootClient ¶
func NewRootClient(transport http.RoundTripper, path string, metric string) *RootClient
NewRootClient creates a new client for the 'root' resource using the given transport to sned the requests and receive the responses.
func (*RootClient) AccessToken ¶
func (c *RootClient) AccessToken() *AccessTokenClient
AccessToken returns the target 'access_token' resource.
Reference to the resource that manages generates access tokens.
func (*RootClient) Accounts ¶
func (c *RootClient) Accounts() *AccountsClient
Accounts returns the target 'accounts' resource.
Reference to the resource that manages the collection of accounts.
func (*RootClient) ClusterAuthorizations ¶
func (c *RootClient) ClusterAuthorizations() *ClusterAuthorizationsClient
ClusterAuthorizations returns the target 'cluster_authorizations' resource.
Reference to the resource that manages cluster authorizations.
func (*RootClient) ClusterRegistrations ¶
func (c *RootClient) ClusterRegistrations() *ClusterRegistrationsClient
ClusterRegistrations returns the target 'cluster_registrations' resource.
Reference to the resource that manages cluster registrations.
func (*RootClient) CurrentAccount ¶
func (c *RootClient) CurrentAccount() *CurrentAccountClient
CurrentAccount returns the target 'current_account' resource.
Reference to the resource that manages the current authenticated acount.
func (*RootClient) Organizations ¶
func (c *RootClient) Organizations() *OrganizationsClient
Organizations returns the target 'organizations' resource.
Reference to the resource that manages the collection of organizations.
func (*RootClient) Permissions ¶
func (c *RootClient) Permissions() *PermissionsClient
Permissions returns the target 'permissions' resource.
Reference to the resource that manages the collection of permissions.
func (*RootClient) Registries ¶
func (c *RootClient) Registries() *RegistriesClient
Registries returns the target 'registries' resource.
Reference to the resource that manages the collection of registries.
func (*RootClient) RegistryCredentials ¶
func (c *RootClient) RegistryCredentials() *RegistryCredentialsClient
RegistryCredentials returns the target 'registry_credentials' resource.
Reference to the resource that manages the collection of registry credentials.
func (*RootClient) RoleBindings ¶
func (c *RootClient) RoleBindings() *RoleBindingsClient
RoleBindings returns the target 'role_bindings' resource.
Reference to the resource that manages the collection of role bindings.
func (*RootClient) Roles ¶
func (c *RootClient) Roles() *RolesClient
Roles returns the target 'roles' resource.
Reference to the resource that manages the collection of roles.
func (*RootClient) Subscriptions ¶
func (c *RootClient) Subscriptions() *SubscriptionsClient
Subscriptions returns the target 'subscriptions' resource.
Reference to the resource that manages the collection of subscriptions.
type RootServer ¶ added in v0.1.27
type RootServer interface { // Accounts returns the target 'accounts' resource. // // Reference to the resource that manages the collection of accounts. Accounts() AccountsServer // CurrentAccount returns the target 'current_account' resource. // // Reference to the resource that manages the current authenticated // acount. CurrentAccount() CurrentAccountServer // Organizations returns the target 'organizations' resource. // // Reference to the resource that manages the collection of // organizations. Organizations() OrganizationsServer // AccessToken returns the target 'access_token' resource. // // Reference to the resource that manages generates access tokens. AccessToken() AccessTokenServer // Permissions returns the target 'permissions' resource. // // Reference to the resource that manages the collection of permissions. Permissions() PermissionsServer // Registries returns the target 'registries' resource. // // Reference to the resource that manages the collection of registries. Registries() RegistriesServer // RegistryCredentials returns the target 'registry_credentials' resource. // // Reference to the resource that manages the collection of registry // credentials. RegistryCredentials() RegistryCredentialsServer // ClusterAuthorizations returns the target 'cluster_authorizations' resource. // // Reference to the resource that manages cluster authorizations. ClusterAuthorizations() ClusterAuthorizationsServer // ClusterRegistrations returns the target 'cluster_registrations' resource. // // Reference to the resource that manages cluster registrations. ClusterRegistrations() ClusterRegistrationsServer // Roles returns the target 'roles' resource. // // Reference to the resource that manages the collection of roles. Roles() RolesServer // RoleBindings returns the target 'role_bindings' resource. // // Reference to the resource that manages the collection of role // bindings. RoleBindings() RoleBindingsServer // Subscriptions returns the target 'subscriptions' resource. // // Reference to the resource that manages the collection of // subscriptions. Subscriptions() SubscriptionsServer }
RootServer represents the interface the manages the 'root' resource.
type RootServerAdapter ¶ added in v0.1.27
type RootServerAdapter struct {
// contains filtered or unexported fields
}
RootServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewRootServerAdapter ¶ added in v0.1.27
func NewRootServerAdapter(server RootServer, router *mux.Router) *RootServerAdapter
func (*RootServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *RootServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type Subscription ¶
type Subscription struct {
// contains filtered or unexported fields
}
Subscription represents the values of the 'subscription' type.
func UnmarshalSubscription ¶
func UnmarshalSubscription(source interface{}) (object *Subscription, err error)
UnmarshalSubscription reads a value of the 'subscription' type from the given source, which can be an slice of bytes, a string, a reader or a JSON decoder.
func (*Subscription) ClusterID ¶
func (o *Subscription) ClusterID() string
ClusterID returns the value of the 'cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Subscription) Creator ¶ added in v0.1.15
func (o *Subscription) Creator() *Account
Creator returns the value of the 'creator' attribute, or the zero value of the type if the attribute doesn't have a value.
Link to the account that created the subscription.
func (*Subscription) Empty ¶ added in v0.1.8
func (o *Subscription) Empty() bool
Empty returns true if the object is empty, i.e. no attribute has a value.
func (*Subscription) ExternalClusterID ¶
func (o *Subscription) ExternalClusterID() string
ExternalClusterID returns the value of the 'external_cluster_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Subscription) GetClusterID ¶
func (o *Subscription) GetClusterID() (value string, ok bool)
GetClusterID returns the value of the 'cluster_ID' attribute and a flag indicating if the attribute has a value.
func (*Subscription) GetCreator ¶ added in v0.1.15
func (o *Subscription) GetCreator() (value *Account, ok bool)
GetCreator returns the value of the 'creator' attribute and a flag indicating if the attribute has a value.
Link to the account that created the subscription.
func (*Subscription) GetExternalClusterID ¶
func (o *Subscription) GetExternalClusterID() (value string, ok bool)
GetExternalClusterID returns the value of the 'external_cluster_ID' attribute and a flag indicating if the attribute has a value.
func (*Subscription) GetHREF ¶
func (o *Subscription) GetHREF() (value string, ok bool)
GetHREF returns the link of the object and a flag indicating if the link has a value.
func (*Subscription) GetID ¶
func (o *Subscription) GetID() (value string, ok bool)
GetID returns the identifier of the object and a flag indicating if the identifier has a value.
func (*Subscription) GetLastTelemetryDate ¶
func (o *Subscription) GetLastTelemetryDate() (value time.Time, ok bool)
GetLastTelemetryDate returns the value of the 'last_telemetry_date' attribute and a flag indicating if the attribute has a value.
Last telemetry authorization request for this subscription.
func (*Subscription) GetOrganizationID ¶
func (o *Subscription) GetOrganizationID() (value string, ok bool)
GetOrganizationID returns the value of the 'organization_ID' attribute and a flag indicating if the attribute has a value.
func (*Subscription) GetPlan ¶
func (o *Subscription) GetPlan() (value *Plan, ok bool)
GetPlan returns the value of the 'plan' attribute and a flag indicating if the attribute has a value.
func (*Subscription) GetRegistryCredential ¶
func (o *Subscription) GetRegistryCredential() (value *RegistryCredential, ok bool)
GetRegistryCredential returns the value of the 'registry_credential' attribute and a flag indicating if the attribute has a value.
func (*Subscription) HREF ¶
func (o *Subscription) HREF() string
HREF returns the link to the object.
func (*Subscription) ID ¶
func (o *Subscription) ID() string
ID returns the identifier of the object.
func (*Subscription) Kind ¶
func (o *Subscription) Kind() string
Kind returns the name of the type of the object.
func (*Subscription) LastTelemetryDate ¶
func (o *Subscription) LastTelemetryDate() time.Time
LastTelemetryDate returns the value of the 'last_telemetry_date' attribute, or the zero value of the type if the attribute doesn't have a value.
Last telemetry authorization request for this subscription.
func (*Subscription) Link ¶
func (o *Subscription) Link() bool
Link returns true iif this is a link.
func (*Subscription) OrganizationID ¶
func (o *Subscription) OrganizationID() string
OrganizationID returns the value of the 'organization_ID' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Subscription) Plan ¶
func (o *Subscription) Plan() *Plan
Plan returns the value of the 'plan' attribute, or the zero value of the type if the attribute doesn't have a value.
func (*Subscription) RegistryCredential ¶
func (o *Subscription) RegistryCredential() *RegistryCredential
RegistryCredential returns the value of the 'registry_credential' attribute, or the zero value of the type if the attribute doesn't have a value.
type SubscriptionBuilder ¶
type SubscriptionBuilder struct {
// contains filtered or unexported fields
}
SubscriptionBuilder contains the data and logic needed to build 'subscription' objects.
func NewSubscription ¶
func NewSubscription() *SubscriptionBuilder
NewSubscription creates a new builder of 'subscription' objects.
func (*SubscriptionBuilder) Build ¶
func (b *SubscriptionBuilder) Build() (object *Subscription, err error)
Build creates a 'subscription' object using the configuration stored in the builder.
func (*SubscriptionBuilder) ClusterID ¶
func (b *SubscriptionBuilder) ClusterID(value string) *SubscriptionBuilder
ClusterID sets the value of the 'cluster_ID' attribute to the given value.
func (*SubscriptionBuilder) Creator ¶ added in v0.1.15
func (b *SubscriptionBuilder) Creator(value *AccountBuilder) *SubscriptionBuilder
Creator sets the value of the 'creator' attribute to the given value.
func (*SubscriptionBuilder) ExternalClusterID ¶
func (b *SubscriptionBuilder) ExternalClusterID(value string) *SubscriptionBuilder
ExternalClusterID sets the value of the 'external_cluster_ID' attribute to the given value.
func (*SubscriptionBuilder) HREF ¶
func (b *SubscriptionBuilder) HREF(value string) *SubscriptionBuilder
HREF sets the link to the object.
func (*SubscriptionBuilder) ID ¶
func (b *SubscriptionBuilder) ID(value string) *SubscriptionBuilder
ID sets the identifier of the object.
func (*SubscriptionBuilder) LastTelemetryDate ¶
func (b *SubscriptionBuilder) LastTelemetryDate(value time.Time) *SubscriptionBuilder
LastTelemetryDate sets the value of the 'last_telemetry_date' attribute to the given value.
func (*SubscriptionBuilder) Link ¶
func (b *SubscriptionBuilder) Link(value bool) *SubscriptionBuilder
Link sets the flag that indicates if this is a link.
func (*SubscriptionBuilder) OrganizationID ¶
func (b *SubscriptionBuilder) OrganizationID(value string) *SubscriptionBuilder
OrganizationID sets the value of the 'organization_ID' attribute to the given value.
func (*SubscriptionBuilder) Plan ¶
func (b *SubscriptionBuilder) Plan(value *PlanBuilder) *SubscriptionBuilder
Plan sets the value of the 'plan' attribute to the given value.
func (*SubscriptionBuilder) RegistryCredential ¶
func (b *SubscriptionBuilder) RegistryCredential(value *RegistryCredentialBuilder) *SubscriptionBuilder
RegistryCredential sets the value of the 'registry_credential' attribute to the given value.
type SubscriptionClient ¶
type SubscriptionClient struct {
// contains filtered or unexported fields
}
SubscriptionClient is the client of the 'subscription' resource.
Manages a specific subscription.
func NewSubscriptionClient ¶
func NewSubscriptionClient(transport http.RoundTripper, path string, metric string) *SubscriptionClient
NewSubscriptionClient creates a new client for the 'subscription' resource using the given transport to sned the requests and receive the responses.
func (*SubscriptionClient) Delete ¶ added in v0.1.12
func (c *SubscriptionClient) Delete() *SubscriptionDeleteRequest
Delete creates a request for the 'delete' method.
Deletes the subscription.
func (*SubscriptionClient) Get ¶
func (c *SubscriptionClient) Get() *SubscriptionGetRequest
Get creates a request for the 'get' method.
Retrieves the details of the subscription.
type SubscriptionDeleteRequest ¶ added in v0.1.12
type SubscriptionDeleteRequest struct {
// contains filtered or unexported fields
}
SubscriptionDeleteRequest is the request for the 'delete' method.
func (*SubscriptionDeleteRequest) Header ¶ added in v0.1.12
func (r *SubscriptionDeleteRequest) Header(name string, value interface{}) *SubscriptionDeleteRequest
Header adds a request header.
func (*SubscriptionDeleteRequest) Parameter ¶ added in v0.1.12
func (r *SubscriptionDeleteRequest) Parameter(name string, value interface{}) *SubscriptionDeleteRequest
Parameter adds a query parameter.
func (*SubscriptionDeleteRequest) Send ¶ added in v0.1.12
func (r *SubscriptionDeleteRequest) Send() (result *SubscriptionDeleteResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*SubscriptionDeleteRequest) SendContext ¶ added in v0.1.12
func (r *SubscriptionDeleteRequest) SendContext(ctx context.Context) (result *SubscriptionDeleteResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type SubscriptionDeleteResponse ¶ added in v0.1.12
type SubscriptionDeleteResponse struct {
// contains filtered or unexported fields
}
SubscriptionDeleteResponse is the response for the 'delete' method.
func (*SubscriptionDeleteResponse) Error ¶ added in v0.1.12
func (r *SubscriptionDeleteResponse) Error() *errors.Error
Error returns the response error.
func (*SubscriptionDeleteResponse) Header ¶ added in v0.1.12
func (r *SubscriptionDeleteResponse) Header() http.Header
Header returns header of the response.
func (*SubscriptionDeleteResponse) Status ¶ added in v0.1.12
func (r *SubscriptionDeleteResponse) Status() int
Status returns the response status code.
type SubscriptionDeleteServerRequest ¶ added in v0.1.27
type SubscriptionDeleteServerRequest struct {
// contains filtered or unexported fields
}
SubscriptionDeleteServerRequest is the request for the 'delete' method.
type SubscriptionDeleteServerResponse ¶ added in v0.1.27
type SubscriptionDeleteServerResponse struct {
// contains filtered or unexported fields
}
SubscriptionDeleteServerResponse is the response for the 'delete' method.
func (*SubscriptionDeleteServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *SubscriptionDeleteServerResponse) SetStatusCode(status int) *SubscriptionDeleteServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type SubscriptionGetRequest ¶
type SubscriptionGetRequest struct {
// contains filtered or unexported fields
}
SubscriptionGetRequest is the request for the 'get' method.
func (*SubscriptionGetRequest) Header ¶
func (r *SubscriptionGetRequest) Header(name string, value interface{}) *SubscriptionGetRequest
Header adds a request header.
func (*SubscriptionGetRequest) Parameter ¶
func (r *SubscriptionGetRequest) Parameter(name string, value interface{}) *SubscriptionGetRequest
Parameter adds a query parameter.
func (*SubscriptionGetRequest) Send ¶
func (r *SubscriptionGetRequest) Send() (result *SubscriptionGetResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*SubscriptionGetRequest) SendContext ¶ added in v0.1.10
func (r *SubscriptionGetRequest) SendContext(ctx context.Context) (result *SubscriptionGetResponse, err error)
SendContext sends this request, waits for the response, and returns it.
type SubscriptionGetResponse ¶
type SubscriptionGetResponse struct {
// contains filtered or unexported fields
}
SubscriptionGetResponse is the response for the 'get' method.
func (*SubscriptionGetResponse) Body ¶
func (r *SubscriptionGetResponse) Body() *Subscription
Body returns the value of the 'body' parameter.
func (*SubscriptionGetResponse) Error ¶
func (r *SubscriptionGetResponse) Error() *errors.Error
Error returns the response error.
func (*SubscriptionGetResponse) GetBody ¶ added in v0.1.16
func (r *SubscriptionGetResponse) GetBody() (value *Subscription, ok bool)
GetBody returns the value of the 'body' parameter and a flag indicating if the parameter has a value.
func (*SubscriptionGetResponse) Header ¶
func (r *SubscriptionGetResponse) Header() http.Header
Header returns header of the response.
func (*SubscriptionGetResponse) Status ¶
func (r *SubscriptionGetResponse) Status() int
Status returns the response status code.
type SubscriptionGetServerRequest ¶ added in v0.1.27
type SubscriptionGetServerRequest struct {
// contains filtered or unexported fields
}
SubscriptionGetServerRequest is the request for the 'get' method.
type SubscriptionGetServerResponse ¶ added in v0.1.27
type SubscriptionGetServerResponse struct {
// contains filtered or unexported fields
}
SubscriptionGetServerResponse is the response for the 'get' method.
func (*SubscriptionGetServerResponse) Body ¶ added in v0.1.27
func (r *SubscriptionGetServerResponse) Body(value *Subscription) *SubscriptionGetServerResponse
Body sets the value of the 'body' parameter.
func (*SubscriptionGetServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *SubscriptionGetServerResponse) SetStatusCode(status int) *SubscriptionGetServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
type SubscriptionList ¶
type SubscriptionList struct {
// contains filtered or unexported fields
}
SubscriptionList is a list of values of the 'subscription' type.
func UnmarshalSubscriptionList ¶
func UnmarshalSubscriptionList(source interface{}) (list *SubscriptionList, err error)
UnmarshalSubscriptionList reads a list of values of the 'subscription' from the given source, which can be a slice of bytes, a string, an io.Reader or a json.Decoder.
func (*SubscriptionList) Each ¶
func (l *SubscriptionList) Each(f func(item *Subscription) bool)
Each runs the given function for each item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*SubscriptionList) Empty ¶ added in v0.1.8
func (l *SubscriptionList) Empty() bool
Empty returns true if the list is empty.
func (*SubscriptionList) Get ¶ added in v0.1.17
func (l *SubscriptionList) Get(i int) *Subscription
Get returns the item of the list with the given index. If there is no item with that index it returns nil.
func (*SubscriptionList) GetHREF ¶ added in v0.1.7
func (l *SubscriptionList) GetHREF() (value string, ok bool)
GetHREF returns the link of the list and a flag indicating if the link has a value.
func (*SubscriptionList) HREF ¶ added in v0.1.7
func (l *SubscriptionList) HREF() string
HREF returns the link to the list.
func (*SubscriptionList) Kind ¶ added in v0.1.7
func (l *SubscriptionList) Kind() string
Kind returns the name of the type of the object.
func (*SubscriptionList) Len ¶
func (l *SubscriptionList) Len() int
Len returns the length of the list.
func (*SubscriptionList) Link ¶ added in v0.1.7
func (l *SubscriptionList) Link() bool
Link returns true iif this is a link.
func (*SubscriptionList) Range ¶
func (l *SubscriptionList) Range(f func(index int, item *Subscription) bool)
Range runs the given function for each index and item of the list, in order. If the function returns false the iteration stops, otherwise it continues till all the elements of the list have been processed.
func (*SubscriptionList) Slice ¶
func (l *SubscriptionList) Slice() []*Subscription
Slice returns an slice containing the items of the list. The returned slice is a copy of the one used internally, so it can be modified without affecting the internal representation.
If you don't need to modify the returned slice consider using the Each or Range functions, as they don't need to allocate a new slice.
type SubscriptionListBuilder ¶
type SubscriptionListBuilder struct {
// contains filtered or unexported fields
}
SubscriptionListBuilder contains the data and logic needed to build 'subscription' objects.
func NewSubscriptionList ¶
func NewSubscriptionList() *SubscriptionListBuilder
NewSubscriptionList creates a new builder of 'subscription' objects.
func (*SubscriptionListBuilder) Build ¶
func (b *SubscriptionListBuilder) Build() (list *SubscriptionList, err error)
Build creates a list of 'subscription' objects using the configuration stored in the builder.
func (*SubscriptionListBuilder) Items ¶
func (b *SubscriptionListBuilder) Items(values ...*SubscriptionBuilder) *SubscriptionListBuilder
Items sets the items of the list.
type SubscriptionServer ¶ added in v0.1.27
type SubscriptionServer interface { // Get handles a request for the 'get' method. // // Retrieves the details of the subscription. Get(ctx context.Context, request *SubscriptionGetServerRequest, response *SubscriptionGetServerResponse) error // Delete handles a request for the 'delete' method. // // Deletes the subscription. Delete(ctx context.Context, request *SubscriptionDeleteServerRequest, response *SubscriptionDeleteServerResponse) error }
SubscriptionServer represents the interface the manages the 'subscription' resource.
type SubscriptionServerAdapter ¶ added in v0.1.27
type SubscriptionServerAdapter struct {
// contains filtered or unexported fields
}
SubscriptionServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewSubscriptionServerAdapter ¶ added in v0.1.27
func NewSubscriptionServerAdapter(server SubscriptionServer, router *mux.Router) *SubscriptionServerAdapter
func (*SubscriptionServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *SubscriptionServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SubscriptionsClient ¶
type SubscriptionsClient struct {
// contains filtered or unexported fields
}
SubscriptionsClient is the client of the 'subscriptions' resource.
Manages the collection of subscriptions.
func NewSubscriptionsClient ¶
func NewSubscriptionsClient(transport http.RoundTripper, path string, metric string) *SubscriptionsClient
NewSubscriptionsClient creates a new client for the 'subscriptions' resource using the given transport to sned the requests and receive the responses.
func (*SubscriptionsClient) List ¶
func (c *SubscriptionsClient) List() *SubscriptionsListRequest
List creates a request for the 'list' method.
Retrieves a list of subscriptions.
func (*SubscriptionsClient) Subscription ¶
func (c *SubscriptionsClient) Subscription(id string) *SubscriptionClient
Subscription returns the target 'subscription' resource for the given identifier.
Reference to the service that manages a specific subscription.
type SubscriptionsListRequest ¶
type SubscriptionsListRequest struct {
// contains filtered or unexported fields
}
SubscriptionsListRequest is the request for the 'list' method.
func (*SubscriptionsListRequest) Header ¶
func (r *SubscriptionsListRequest) Header(name string, value interface{}) *SubscriptionsListRequest
Header adds a request header.
func (*SubscriptionsListRequest) Page ¶
func (r *SubscriptionsListRequest) Page(value int) *SubscriptionsListRequest
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*SubscriptionsListRequest) Parameter ¶
func (r *SubscriptionsListRequest) Parameter(name string, value interface{}) *SubscriptionsListRequest
Parameter adds a query parameter.
func (*SubscriptionsListRequest) Send ¶
func (r *SubscriptionsListRequest) Send() (result *SubscriptionsListResponse, err error)
Send sends this request, waits for the response, and returns it.
This is a potentially lengthy operation, as it requires network communication. Consider using a context and the SendContext method.
func (*SubscriptionsListRequest) SendContext ¶ added in v0.1.10
func (r *SubscriptionsListRequest) SendContext(ctx context.Context) (result *SubscriptionsListResponse, err error)
SendContext sends this request, waits for the response, and returns it.
func (*SubscriptionsListRequest) Size ¶
func (r *SubscriptionsListRequest) Size(value int) *SubscriptionsListRequest
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*SubscriptionsListRequest) Total ¶
func (r *SubscriptionsListRequest) Total(value int) *SubscriptionsListRequest
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type SubscriptionsListResponse ¶
type SubscriptionsListResponse struct {
// contains filtered or unexported fields
}
SubscriptionsListResponse is the response for the 'list' method.
func (*SubscriptionsListResponse) Error ¶
func (r *SubscriptionsListResponse) Error() *errors.Error
Error returns the response error.
func (*SubscriptionsListResponse) GetItems ¶ added in v0.1.16
func (r *SubscriptionsListResponse) GetItems() (value *SubscriptionList, ok bool)
GetItems returns the value of the 'items' parameter and a flag indicating if the parameter has a value.
Retrieved list of subscriptions.
func (*SubscriptionsListResponse) GetPage ¶ added in v0.1.16
func (r *SubscriptionsListResponse) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*SubscriptionsListResponse) GetSize ¶ added in v0.1.16
func (r *SubscriptionsListResponse) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*SubscriptionsListResponse) GetTotal ¶ added in v0.1.16
func (r *SubscriptionsListResponse) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*SubscriptionsListResponse) Header ¶
func (r *SubscriptionsListResponse) Header() http.Header
Header returns header of the response.
func (*SubscriptionsListResponse) Items ¶
func (r *SubscriptionsListResponse) Items() *SubscriptionList
Items returns the value of the 'items' parameter.
Retrieved list of subscriptions.
func (*SubscriptionsListResponse) Page ¶
func (r *SubscriptionsListResponse) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*SubscriptionsListResponse) Size ¶
func (r *SubscriptionsListResponse) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*SubscriptionsListResponse) Status ¶
func (r *SubscriptionsListResponse) Status() int
Status returns the response status code.
func (*SubscriptionsListResponse) Total ¶
func (r *SubscriptionsListResponse) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type SubscriptionsListServerRequest ¶ added in v0.1.27
type SubscriptionsListServerRequest struct {
// contains filtered or unexported fields
}
SubscriptionsListServerRequest is the request for the 'list' method.
func (*SubscriptionsListServerRequest) GetPage ¶ added in v0.1.27
func (r *SubscriptionsListServerRequest) GetPage() (value int, ok bool)
GetPage returns the value of the 'page' parameter and a flag indicating if the parameter has a value.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*SubscriptionsListServerRequest) GetSize ¶ added in v0.1.27
func (r *SubscriptionsListServerRequest) GetSize() (value int, ok bool)
GetSize returns the value of the 'size' parameter and a flag indicating if the parameter has a value.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*SubscriptionsListServerRequest) GetTotal ¶ added in v0.1.27
func (r *SubscriptionsListServerRequest) GetTotal() (value int, ok bool)
GetTotal returns the value of the 'total' parameter and a flag indicating if the parameter has a value.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
func (*SubscriptionsListServerRequest) Page ¶ added in v0.1.27
func (r *SubscriptionsListServerRequest) Page() int
Page returns the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*SubscriptionsListServerRequest) Size ¶ added in v0.1.27
func (r *SubscriptionsListServerRequest) Size() int
Size returns the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*SubscriptionsListServerRequest) Total ¶ added in v0.1.27
func (r *SubscriptionsListServerRequest) Total() int
Total returns the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type SubscriptionsListServerResponse ¶ added in v0.1.27
type SubscriptionsListServerResponse struct {
// contains filtered or unexported fields
}
SubscriptionsListServerResponse is the response for the 'list' method.
func (*SubscriptionsListServerResponse) Items ¶ added in v0.1.27
func (r *SubscriptionsListServerResponse) Items(value *SubscriptionList) *SubscriptionsListServerResponse
Items sets the value of the 'items' parameter.
Retrieved list of subscriptions.
func (*SubscriptionsListServerResponse) Page ¶ added in v0.1.27
func (r *SubscriptionsListServerResponse) Page(value int) *SubscriptionsListServerResponse
Page sets the value of the 'page' parameter.
Index of the requested page, where one corresponds to the first page.
Default value is `1`.
func (*SubscriptionsListServerResponse) SetStatusCode ¶ added in v0.1.27
func (r *SubscriptionsListServerResponse) SetStatusCode(status int) *SubscriptionsListServerResponse
SetStatusCode sets the status code for a give response and returns the response object.
func (*SubscriptionsListServerResponse) Size ¶ added in v0.1.27
func (r *SubscriptionsListServerResponse) Size(value int) *SubscriptionsListServerResponse
Size sets the value of the 'size' parameter.
Maximum number of items that will be contained in the returned page.
Default value is `100`.
func (*SubscriptionsListServerResponse) Total ¶ added in v0.1.27
func (r *SubscriptionsListServerResponse) Total(value int) *SubscriptionsListServerResponse
Total sets the value of the 'total' parameter.
Total number of items of the collection that match the search criteria, regardless of the size of the page.
type SubscriptionsServer ¶ added in v0.1.27
type SubscriptionsServer interface { // List handles a request for the 'list' method. // // Retrieves a list of subscriptions. List(ctx context.Context, request *SubscriptionsListServerRequest, response *SubscriptionsListServerResponse) error // Subscription returns the target 'subscription' server for the given identifier. // // Reference to the service that manages a specific subscription. Subscription(id string) SubscriptionServer }
SubscriptionsServer represents the interface the manages the 'subscriptions' resource.
type SubscriptionsServerAdapter ¶ added in v0.1.27
type SubscriptionsServerAdapter struct {
// contains filtered or unexported fields
}
SubscriptionsServerAdapter represents the structs that adapts Requests and Response to internal structs.
func NewSubscriptionsServerAdapter ¶ added in v0.1.27
func NewSubscriptionsServerAdapter(server SubscriptionsServer, router *mux.Router) *SubscriptionsServerAdapter
func (*SubscriptionsServerAdapter) ServeHTTP ¶ added in v0.1.27
func (a *SubscriptionsServerAdapter) ServeHTTP(w http.ResponseWriter, r *http.Request)
Source Files ¶
- access_token_builder.go
- access_token_client.go
- access_token_list_builder.go
- access_token_list_reader.go
- access_token_reader.go
- access_token_server.go
- access_token_type.go
- account_builder.go
- account_client.go
- account_list_builder.go
- account_list_reader.go
- account_reader.go
- account_server.go
- account_type.go
- accounts_client.go
- accounts_server.go
- action_type.go
- cluster_authorization_request_builder.go
- cluster_authorization_request_list_builder.go
- cluster_authorization_request_list_reader.go
- cluster_authorization_request_reader.go
- cluster_authorization_request_type.go
- cluster_authorization_response_builder.go
- cluster_authorization_response_list_builder.go
- cluster_authorization_response_list_reader.go
- cluster_authorization_response_reader.go
- cluster_authorization_response_type.go
- cluster_authorizations_client.go
- cluster_authorizations_server.go
- cluster_registration_request_builder.go
- cluster_registration_request_list_builder.go
- cluster_registration_request_list_reader.go
- cluster_registration_request_reader.go
- cluster_registration_request_type.go
- cluster_registration_response_builder.go
- cluster_registration_response_list_builder.go
- cluster_registration_response_list_reader.go
- cluster_registration_response_reader.go
- cluster_registration_response_type.go
- cluster_registrations_client.go
- cluster_registrations_server.go
- current_account_client.go
- current_account_server.go
- errors.go
- organization_builder.go
- organization_client.go
- organization_list_builder.go
- organization_list_reader.go
- organization_reader.go
- organization_server.go
- organization_type.go
- organizations_client.go
- organizations_server.go
- permission_builder.go
- permission_client.go
- permission_list_builder.go
- permission_list_reader.go
- permission_reader.go
- permission_server.go
- permission_type.go
- permissions_client.go
- permissions_server.go
- plan_builder.go
- plan_list_builder.go
- plan_list_reader.go
- plan_reader.go
- plan_type.go
- quota_summary_builder.go
- quota_summary_client.go
- quota_summary_list_builder.go
- quota_summary_list_reader.go
- quota_summary_reader.go
- quota_summary_server.go
- quota_summary_type.go
- registries_client.go
- registries_server.go
- registry_builder.go
- registry_client.go
- registry_credential_builder.go
- registry_credential_client.go
- registry_credential_list_builder.go
- registry_credential_list_reader.go
- registry_credential_reader.go
- registry_credential_server.go
- registry_credential_type.go
- registry_credentials_client.go
- registry_credentials_server.go
- registry_list_builder.go
- registry_list_reader.go
- registry_reader.go
- registry_server.go
- registry_type.go
- reserved_resource_builder.go
- reserved_resource_list_builder.go
- reserved_resource_list_reader.go
- reserved_resource_reader.go
- reserved_resource_type.go
- resource_quota_builder.go
- resource_quota_client.go
- resource_quota_list_builder.go
- resource_quota_list_reader.go
- resource_quota_reader.go
- resource_quota_server.go
- resource_quota_type.go
- resource_quotas_client.go
- resource_quotas_server.go
- role_binding_builder.go
- role_binding_client.go
- role_binding_list_builder.go
- role_binding_list_reader.go
- role_binding_reader.go
- role_binding_server.go
- role_binding_type.go
- role_bindings_client.go
- role_bindings_server.go
- role_builder.go
- role_client.go
- role_list_builder.go
- role_list_reader.go
- role_reader.go
- role_server.go
- role_type.go
- roles_client.go
- roles_server.go
- root_client.go
- root_server.go
- subscription_builder.go
- subscription_client.go
- subscription_list_builder.go
- subscription_list_reader.go
- subscription_reader.go
- subscription_server.go
- subscription_type.go
- subscriptions_client.go
- subscriptions_server.go