Documentation
¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.5.1 DO NOT EDIT.
Package client is a generated GoMock package.
Index ¶
- func NewAddOrganizationMemberRequest(server string, organizationId OrganizationId, ...) (*http.Request, error)
- func NewAddOrganizationMemberRequestWithBody(server string, organizationId OrganizationId, contentType string, ...) (*http.Request, error)
- func NewCreateInterfaceReleaseRequest(server string, interfaceId InterfaceId, ...) (*http.Request, error)
- func NewCreateInterfaceReleaseRequestWithBody(server string, interfaceId InterfaceId, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInterfaceRequest(server string, body CreateInterfaceJSONRequestBody) (*http.Request, error)
- func NewCreateInterfaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateInterfaceRevisionRequest(server string, interfaceId InterfaceId, ...) (*http.Request, error)
- func NewCreateInterfaceRevisionRequestWithBody(server string, interfaceId InterfaceId, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error)
- func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteInterfaceReleaseRequest(server string, interfaceId InterfaceId, semVer SemanticVersion) (*http.Request, error)
- func NewDeleteInterfaceRequest(server string, interfaceId InterfaceId) (*http.Request, error)
- func NewDeleteOrganizationMemberRequest(server string, organizationId OrganizationId, userId UserId) (*http.Request, error)
- func NewGetCurrentUserRequest(server string) (*http.Request, error)
- func NewGetInterfaceReleaseRequest(server string, interfaceId InterfaceId, semVer SemanticVersion) (*http.Request, error)
- func NewGetInterfaceRequest(server string, interfaceId InterfaceId) (*http.Request, error)
- func NewGetInterfaceRevisionRequest(server string, interfaceId InterfaceId, revisionId InterfaceRevisionId) (*http.Request, error)
- func NewGetOrganizationMemberRequest(server string, organizationId OrganizationId, userId UserId) (*http.Request, error)
- func NewGetOrganizationRequest(server string, organizationId OrganizationId) (*http.Request, error)
- func NewGetUserRequest(server string, userId UserId) (*http.Request, error)
- func NewListInterfaceReleasesRequest(server string, interfaceId InterfaceId) (*http.Request, error)
- func NewListInterfaceRevisionsRequest(server string, interfaceId InterfaceId) (*http.Request, error)
- func NewListInterfacesRequest(server string, params *ListInterfacesParams) (*http.Request, error)
- func NewListOrganizationMembersRequest(server string, organizationId OrganizationId) (*http.Request, error)
- func NewListOrganizationsRequest(server string) (*http.Request, error)
- func NewUpdateInterfaceRequest(server string, interfaceId InterfaceId, body UpdateInterfaceJSONRequestBody) (*http.Request, error)
- func NewUpdateInterfaceRequestWithBody(server string, interfaceId InterfaceId, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdateOrganizationMemberRequest(server string, organizationId OrganizationId, userId UserId, ...) (*http.Request, error)
- func NewUpdateOrganizationMemberRequestWithBody(server string, organizationId OrganizationId, userId UserId, ...) (*http.Request, error)
- func NewUpdateOrganizationRequest(server string, organizationId OrganizationId, ...) (*http.Request, error)
- func NewUpdateOrganizationRequestWithBody(server string, organizationId OrganizationId, contentType string, ...) (*http.Request, error)
- func NewUpdateUserRequest(server string, userId UserId, body UpdateUserJSONRequestBody) (*http.Request, error)
- func NewUpdateUserRequestWithBody(server string, userId UserId, contentType string, body io.Reader) (*http.Request, error)
- type AddOrganizationMemberJSONRequestBody
- type AddOrganizationMemberRequest
- type AddOrganizationMemberResponse
- type BadRequestError
- type CanonicalInterfaceMeta
- type Client
- func (c *Client) AddOrganizationMember(ctx context.Context, organizationId OrganizationId, ...) (*http.Response, error)
- func (c *Client) AddOrganizationMemberWithBody(ctx context.Context, organizationId OrganizationId, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateInterface(ctx context.Context, body CreateInterfaceJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateInterfaceRelease(ctx context.Context, interfaceId InterfaceId, ...) (*http.Response, error)
- func (c *Client) CreateInterfaceReleaseWithBody(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateInterfaceRevision(ctx context.Context, interfaceId InterfaceId, ...) (*http.Response, error)
- func (c *Client) CreateInterfaceRevisionWithBody(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*http.Response, error)
- func (c *Client) CreateInterfaceWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteInterface(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeleteInterfaceRelease(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, ...) (*http.Response, error)
- func (c *Client) DeleteOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*http.Response, error)
- func (c *Client) GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInterface(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetInterfaceRelease(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, ...) (*http.Response, error)
- func (c *Client) GetInterfaceRevision(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, ...) (*http.Response, error)
- func (c *Client) GetOrganization(ctx context.Context, organizationId OrganizationId, ...) (*http.Response, error)
- func (c *Client) GetOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*http.Response, error)
- func (c *Client) GetUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListInterfaceReleases(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListInterfaceRevisions(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) ListInterfaces(ctx context.Context, params *ListInterfacesParams, ...) (*http.Response, error)
- func (c *Client) ListOrganizationMembers(ctx context.Context, organizationId OrganizationId, ...) (*http.Response, error)
- func (c *Client) ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) UpdateInterface(ctx context.Context, interfaceId InterfaceId, ...) (*http.Response, error)
- func (c *Client) UpdateInterfaceWithBody(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateOrganization(ctx context.Context, organizationId OrganizationId, ...) (*http.Response, error)
- func (c *Client) UpdateOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*http.Response, error)
- func (c *Client) UpdateOrganizationMemberWithBody(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*http.Response, error)
- func (c *Client) UpdateOrganizationWithBody(ctx context.Context, organizationId OrganizationId, contentType string, ...) (*http.Response, error)
- func (c *Client) UpdateUser(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateUserWithBody(ctx context.Context, userId UserId, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, ...) (*AddOrganizationMemberResponse, error)
- func (c *ClientWithResponses) AddOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, ...) (*AddOrganizationMemberResponse, error)
- func (c *ClientWithResponses) CreateInterfaceReleaseWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*CreateInterfaceReleaseResponse, error)
- func (c *ClientWithResponses) CreateInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, ...) (*CreateInterfaceReleaseResponse, error)
- func (c *ClientWithResponses) CreateInterfaceRevisionWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*CreateInterfaceRevisionResponse, error)
- func (c *ClientWithResponses) CreateInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, ...) (*CreateInterfaceRevisionResponse, error)
- func (c *ClientWithResponses) CreateInterfaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateInterfaceResponse, error)
- func (c *ClientWithResponses) CreateInterfaceWithResponse(ctx context.Context, body CreateInterfaceJSONRequestBody, ...) (*CreateInterfaceResponse, error)
- func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateOrganizationResponse, error)
- func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, ...) (*CreateOrganizationResponse, error)
- func (c *ClientWithResponses) CurrentUserID(ctx context.Context) (UserId, error)
- func (c *ClientWithResponses) DeleteInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, ...) (*DeleteInterfaceReleaseResponse, error)
- func (c *ClientWithResponses) DeleteInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*DeleteInterfaceResponse, error)
- func (c *ClientWithResponses) DeleteOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*DeleteOrganizationMemberResponse, error)
- func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
- func (c *ClientWithResponses) GetInterfaceByCanonicalPathWithResponse(ctx context.Context, host, ownerPath, name string, ...) (*CanonicalInterfaceMeta, int, error)
- func (c *ClientWithResponses) GetInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, ...) (*GetInterfaceReleaseResponse, error)
- func (c *ClientWithResponses) GetInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, ...) (*GetInterfaceRevisionResponse, error)
- func (c *ClientWithResponses) GetInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*GetInterfaceResponse, error)
- func (c *ClientWithResponses) GetOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*GetOrganizationMemberResponse, error)
- func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, ...) (*GetOrganizationResponse, error)
- func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (c *ClientWithResponses) ListInterfaceReleasesWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceReleasesResponse, error)
- func (c *ClientWithResponses) ListInterfaceRevisionsWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceRevisionsResponse, error)
- func (c *ClientWithResponses) ListInterfacesWithResponse(ctx context.Context, params *ListInterfacesParams, ...) (*ListInterfacesResponse, error)
- func (c *ClientWithResponses) ListOrganizationMembersWithResponse(ctx context.Context, organizationId OrganizationId, ...) (*ListOrganizationMembersResponse, error)
- func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)
- func (c *ClientWithResponses) UpdateInterfaceWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*UpdateInterfaceResponse, error)
- func (c *ClientWithResponses) UpdateInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, ...) (*UpdateInterfaceResponse, error)
- func (c *ClientWithResponses) UpdateOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*UpdateOrganizationMemberResponse, error)
- func (c *ClientWithResponses) UpdateOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*UpdateOrganizationMemberResponse, error)
- func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, ...) (*UpdateOrganizationResponse, error)
- func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, ...) (*UpdateOrganizationResponse, error)
- func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, contentType string, body io.Reader, ...) (*UpdateUserResponse, error)
- func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, ...) (*UpdateUserResponse, error)
- type ClientWithResponsesIfc
- type ClientWithResponsesInterface
- type ConflictError
- type CreateInterfaceJSONRequestBody
- type CreateInterfaceReleaseJSONRequestBody
- type CreateInterfaceReleaseResponse
- type CreateInterfaceRequest
- type CreateInterfaceResponse
- type CreateInterfaceRevisionJSONRequestBody
- type CreateInterfaceRevisionResponse
- type CreateOrganizationJSONRequestBody
- type CreateOrganizationRequest
- type CreateOrganizationResponse
- type CreateReleaseRequest
- type CreateRevisionRequest
- type DeleteInterfaceReleaseResponse
- type DeleteInterfaceResponse
- type DeleteOrganizationMemberResponse
- type Error
- type ForbiddenError
- type GetCurrentUserResponse
- type GetInterfaceReleaseResponse
- type GetInterfaceResponse
- type GetInterfaceRevisionResponse
- type GetOrganizationMemberResponse
- type GetOrganizationResponse
- type GetUserResponse
- type HttpRequestDoer
- type Ifc7ApiClient
- type Interface
- type InterfaceDescriptor
- type InterfaceId
- type InterfaceOwner
- type InterfaceRelease
- type InterfaceRevision
- type InterfaceRevisionDescriptor
- type InterfaceRevisionId
- type InterfaceSpecification
- type InterfaceType
- type ListInterfaceReleasesResponse
- type ListInterfaceRevisionsResponse
- type ListInterfacesParams
- type ListInterfacesResponse
- type ListOrganizationMembersResponse
- type ListOrganizationsResponse
- type MockClientWithResponsesIfc
- func (m *MockClientWithResponsesIfc) AddOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, ...) (*AddOrganizationMemberResponse, error)
- func (m *MockClientWithResponsesIfc) AddOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, ...) (*AddOrganizationMemberResponse, error)
- func (m *MockClientWithResponsesIfc) CreateInterfaceReleaseWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*CreateInterfaceReleaseResponse, error)
- func (m *MockClientWithResponsesIfc) CreateInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, ...) (*CreateInterfaceReleaseResponse, error)
- func (m *MockClientWithResponsesIfc) CreateInterfaceRevisionWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*CreateInterfaceRevisionResponse, error)
- func (m *MockClientWithResponsesIfc) CreateInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, ...) (*CreateInterfaceRevisionResponse, error)
- func (m *MockClientWithResponsesIfc) CreateInterfaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateInterfaceResponse, error)
- func (m *MockClientWithResponsesIfc) CreateInterfaceWithResponse(ctx context.Context, body CreateInterfaceJSONRequestBody, ...) (*CreateInterfaceResponse, error)
- func (m *MockClientWithResponsesIfc) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateOrganizationResponse, error)
- func (m *MockClientWithResponsesIfc) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, ...) (*CreateOrganizationResponse, error)
- func (m *MockClientWithResponsesIfc) CurrentUserID(ctx context.Context) (UserId, error)
- func (m *MockClientWithResponsesIfc) DeleteInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, ...) (*DeleteInterfaceReleaseResponse, error)
- func (m *MockClientWithResponsesIfc) DeleteInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*DeleteInterfaceResponse, error)
- func (m *MockClientWithResponsesIfc) DeleteOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*DeleteOrganizationMemberResponse, error)
- func (m *MockClientWithResponsesIfc) EXPECT() *MockClientWithResponsesIfcMockRecorder
- func (m *MockClientWithResponsesIfc) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
- func (m *MockClientWithResponsesIfc) GetInterfaceByCanonicalPathWithResponse(ctx context.Context, host, ownerPath, name string, ...) (*CanonicalInterfaceMeta, int, error)
- func (m *MockClientWithResponsesIfc) GetInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, ...) (*GetInterfaceReleaseResponse, error)
- func (m *MockClientWithResponsesIfc) GetInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, ...) (*GetInterfaceRevisionResponse, error)
- func (m *MockClientWithResponsesIfc) GetInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*GetInterfaceResponse, error)
- func (m *MockClientWithResponsesIfc) GetOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*GetOrganizationMemberResponse, error)
- func (m *MockClientWithResponsesIfc) GetOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, ...) (*GetOrganizationResponse, error)
- func (m *MockClientWithResponsesIfc) GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
- func (m *MockClientWithResponsesIfc) ListInterfaceReleasesWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceReleasesResponse, error)
- func (m *MockClientWithResponsesIfc) ListInterfaceRevisionsWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceRevisionsResponse, error)
- func (m *MockClientWithResponsesIfc) ListInterfacesWithResponse(ctx context.Context, params *ListInterfacesParams, ...) (*ListInterfacesResponse, error)
- func (m *MockClientWithResponsesIfc) ListOrganizationMembersWithResponse(ctx context.Context, organizationId OrganizationId, ...) (*ListOrganizationMembersResponse, error)
- func (m *MockClientWithResponsesIfc) ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)
- func (m *MockClientWithResponsesIfc) UpdateInterfaceWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, ...) (*UpdateInterfaceResponse, error)
- func (m *MockClientWithResponsesIfc) UpdateInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, ...) (*UpdateInterfaceResponse, error)
- func (m *MockClientWithResponsesIfc) UpdateOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*UpdateOrganizationMemberResponse, error)
- func (m *MockClientWithResponsesIfc) UpdateOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, ...) (*UpdateOrganizationMemberResponse, error)
- func (m *MockClientWithResponsesIfc) UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, ...) (*UpdateOrganizationResponse, error)
- func (m *MockClientWithResponsesIfc) UpdateOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, ...) (*UpdateOrganizationResponse, error)
- func (m *MockClientWithResponsesIfc) UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, contentType string, body io.Reader, ...) (*UpdateUserResponse, error)
- func (m *MockClientWithResponsesIfc) UpdateUserWithResponse(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, ...) (*UpdateUserResponse, error)
- type MockClientWithResponsesIfcMockRecorder
- func (mr *MockClientWithResponsesIfcMockRecorder) AddOrganizationMemberWithBodyWithResponse(ctx, organizationId, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) AddOrganizationMemberWithResponse(ctx, organizationId, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceReleaseWithBodyWithResponse(ctx, interfaceId, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceReleaseWithResponse(ctx, interfaceId, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceRevisionWithBodyWithResponse(ctx, interfaceId, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceRevisionWithResponse(ctx, interfaceId, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceWithBodyWithResponse(ctx, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceWithResponse(ctx, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CreateOrganizationWithBodyWithResponse(ctx, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CreateOrganizationWithResponse(ctx, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) CurrentUserID(ctx any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) DeleteInterfaceReleaseWithResponse(ctx, interfaceId, semVer any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) DeleteInterfaceWithResponse(ctx, interfaceId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) DeleteOrganizationMemberWithResponse(ctx, organizationId, userId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) GetCurrentUserWithResponse(ctx any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) GetInterfaceByCanonicalPathWithResponse(ctx, host, ownerPath, name any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) GetInterfaceReleaseWithResponse(ctx, interfaceId, semVer any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) GetInterfaceRevisionWithResponse(ctx, interfaceId, revisionId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) GetInterfaceWithResponse(ctx, interfaceId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) GetOrganizationMemberWithResponse(ctx, organizationId, userId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) GetOrganizationWithResponse(ctx, organizationId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) GetUserWithResponse(ctx, userId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) ListInterfaceReleasesWithResponse(ctx, interfaceId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) ListInterfaceRevisionsWithResponse(ctx, interfaceId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) ListInterfacesWithResponse(ctx, params any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) ListOrganizationMembersWithResponse(ctx, organizationId any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) ListOrganizationsWithResponse(ctx any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) UpdateInterfaceWithBodyWithResponse(ctx, interfaceId, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) UpdateInterfaceWithResponse(ctx, interfaceId, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) UpdateOrganizationMemberWithBodyWithResponse(ctx, organizationId, userId, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) UpdateOrganizationMemberWithResponse(ctx, organizationId, userId, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) UpdateOrganizationWithBodyWithResponse(ctx, organizationId, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) UpdateOrganizationWithResponse(ctx, organizationId, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) UpdateUserWithBodyWithResponse(ctx, userId, contentType, body any, reqEditors ...any) *gomock.Call
- func (mr *MockClientWithResponsesIfcMockRecorder) UpdateUserWithResponse(ctx, userId, body any, reqEditors ...any) *gomock.Call
- type NotFoundError
- type Organization
- type OrganizationId
- type OrganizationMember
- type OrganizationRole
- type RequestEditorFn
- type SemanticVersion
- type SpecificationFileFormat
- type UnauthorizedError
- type UpdateInterfaceJSONRequestBody
- type UpdateInterfaceRequest
- type UpdateInterfaceResponse
- type UpdateOrganizationJSONRequestBody
- type UpdateOrganizationMemberJSONRequestBody
- type UpdateOrganizationMemberRequest
- type UpdateOrganizationMemberResponse
- type UpdateOrganizationRequest
- type UpdateOrganizationResponse
- type UpdateUserJSONRequestBody
- type UpdateUserRequest
- type UpdateUserResponse
- type User
- type UserId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewAddOrganizationMemberRequest ¶
func NewAddOrganizationMemberRequest(server string, organizationId OrganizationId, body AddOrganizationMemberJSONRequestBody) (*http.Request, error)
NewAddOrganizationMemberRequest calls the generic AddOrganizationMember builder with application/json body
func NewAddOrganizationMemberRequestWithBody ¶
func NewAddOrganizationMemberRequestWithBody(server string, organizationId OrganizationId, contentType string, body io.Reader) (*http.Request, error)
NewAddOrganizationMemberRequestWithBody generates requests for AddOrganizationMember with any type of body
func NewCreateInterfaceReleaseRequest ¶
func NewCreateInterfaceReleaseRequest(server string, interfaceId InterfaceId, body CreateInterfaceReleaseJSONRequestBody) (*http.Request, error)
NewCreateInterfaceReleaseRequest calls the generic CreateInterfaceRelease builder with application/json body
func NewCreateInterfaceReleaseRequestWithBody ¶
func NewCreateInterfaceReleaseRequestWithBody(server string, interfaceId InterfaceId, contentType string, body io.Reader) (*http.Request, error)
NewCreateInterfaceReleaseRequestWithBody generates requests for CreateInterfaceRelease with any type of body
func NewCreateInterfaceRequest ¶
func NewCreateInterfaceRequest(server string, body CreateInterfaceJSONRequestBody) (*http.Request, error)
NewCreateInterfaceRequest calls the generic CreateInterface builder with application/json body
func NewCreateInterfaceRequestWithBody ¶
func NewCreateInterfaceRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateInterfaceRequestWithBody generates requests for CreateInterface with any type of body
func NewCreateInterfaceRevisionRequest ¶
func NewCreateInterfaceRevisionRequest(server string, interfaceId InterfaceId, body CreateInterfaceRevisionJSONRequestBody) (*http.Request, error)
NewCreateInterfaceRevisionRequest calls the generic CreateInterfaceRevision builder with application/json body
func NewCreateInterfaceRevisionRequestWithBody ¶
func NewCreateInterfaceRevisionRequestWithBody(server string, interfaceId InterfaceId, contentType string, body io.Reader) (*http.Request, error)
NewCreateInterfaceRevisionRequestWithBody generates requests for CreateInterfaceRevision with any type of body
func NewCreateOrganizationRequest ¶
func NewCreateOrganizationRequest(server string, body CreateOrganizationJSONRequestBody) (*http.Request, error)
NewCreateOrganizationRequest calls the generic CreateOrganization builder with application/json body
func NewCreateOrganizationRequestWithBody ¶
func NewCreateOrganizationRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
NewCreateOrganizationRequestWithBody generates requests for CreateOrganization with any type of body
func NewDeleteInterfaceReleaseRequest ¶
func NewDeleteInterfaceReleaseRequest(server string, interfaceId InterfaceId, semVer SemanticVersion) (*http.Request, error)
NewDeleteInterfaceReleaseRequest generates requests for DeleteInterfaceRelease
func NewDeleteInterfaceRequest ¶
func NewDeleteInterfaceRequest(server string, interfaceId InterfaceId) (*http.Request, error)
NewDeleteInterfaceRequest generates requests for DeleteInterface
func NewDeleteOrganizationMemberRequest ¶
func NewDeleteOrganizationMemberRequest(server string, organizationId OrganizationId, userId UserId) (*http.Request, error)
NewDeleteOrganizationMemberRequest generates requests for DeleteOrganizationMember
func NewGetCurrentUserRequest ¶
NewGetCurrentUserRequest generates requests for GetCurrentUser
func NewGetInterfaceReleaseRequest ¶
func NewGetInterfaceReleaseRequest(server string, interfaceId InterfaceId, semVer SemanticVersion) (*http.Request, error)
NewGetInterfaceReleaseRequest generates requests for GetInterfaceRelease
func NewGetInterfaceRequest ¶
func NewGetInterfaceRequest(server string, interfaceId InterfaceId) (*http.Request, error)
NewGetInterfaceRequest generates requests for GetInterface
func NewGetInterfaceRevisionRequest ¶
func NewGetInterfaceRevisionRequest(server string, interfaceId InterfaceId, revisionId InterfaceRevisionId) (*http.Request, error)
NewGetInterfaceRevisionRequest generates requests for GetInterfaceRevision
func NewGetOrganizationMemberRequest ¶
func NewGetOrganizationMemberRequest(server string, organizationId OrganizationId, userId UserId) (*http.Request, error)
NewGetOrganizationMemberRequest generates requests for GetOrganizationMember
func NewGetOrganizationRequest ¶
func NewGetOrganizationRequest(server string, organizationId OrganizationId) (*http.Request, error)
NewGetOrganizationRequest generates requests for GetOrganization
func NewGetUserRequest ¶
NewGetUserRequest generates requests for GetUser
func NewListInterfaceReleasesRequest ¶
func NewListInterfaceReleasesRequest(server string, interfaceId InterfaceId) (*http.Request, error)
NewListInterfaceReleasesRequest generates requests for ListInterfaceReleases
func NewListInterfaceRevisionsRequest ¶
func NewListInterfaceRevisionsRequest(server string, interfaceId InterfaceId) (*http.Request, error)
NewListInterfaceRevisionsRequest generates requests for ListInterfaceRevisions
func NewListInterfacesRequest ¶
func NewListInterfacesRequest(server string, params *ListInterfacesParams) (*http.Request, error)
NewListInterfacesRequest generates requests for ListInterfaces
func NewListOrganizationMembersRequest ¶
func NewListOrganizationMembersRequest(server string, organizationId OrganizationId) (*http.Request, error)
NewListOrganizationMembersRequest generates requests for ListOrganizationMembers
func NewListOrganizationsRequest ¶
NewListOrganizationsRequest generates requests for ListOrganizations
func NewUpdateInterfaceRequest ¶
func NewUpdateInterfaceRequest(server string, interfaceId InterfaceId, body UpdateInterfaceJSONRequestBody) (*http.Request, error)
NewUpdateInterfaceRequest calls the generic UpdateInterface builder with application/json body
func NewUpdateInterfaceRequestWithBody ¶
func NewUpdateInterfaceRequestWithBody(server string, interfaceId InterfaceId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateInterfaceRequestWithBody generates requests for UpdateInterface with any type of body
func NewUpdateOrganizationMemberRequest ¶
func NewUpdateOrganizationMemberRequest(server string, organizationId OrganizationId, userId UserId, body UpdateOrganizationMemberJSONRequestBody) (*http.Request, error)
NewUpdateOrganizationMemberRequest calls the generic UpdateOrganizationMember builder with application/json body
func NewUpdateOrganizationMemberRequestWithBody ¶
func NewUpdateOrganizationMemberRequestWithBody(server string, organizationId OrganizationId, userId UserId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateOrganizationMemberRequestWithBody generates requests for UpdateOrganizationMember with any type of body
func NewUpdateOrganizationRequest ¶
func NewUpdateOrganizationRequest(server string, organizationId OrganizationId, body UpdateOrganizationJSONRequestBody) (*http.Request, error)
NewUpdateOrganizationRequest calls the generic UpdateOrganization builder with application/json body
func NewUpdateOrganizationRequestWithBody ¶
func NewUpdateOrganizationRequestWithBody(server string, organizationId OrganizationId, contentType string, body io.Reader) (*http.Request, error)
NewUpdateOrganizationRequestWithBody generates requests for UpdateOrganization with any type of body
func NewUpdateUserRequest ¶
func NewUpdateUserRequest(server string, userId UserId, body UpdateUserJSONRequestBody) (*http.Request, error)
NewUpdateUserRequest calls the generic UpdateUser builder with application/json body
Types ¶
type AddOrganizationMemberJSONRequestBody ¶
type AddOrganizationMemberJSONRequestBody = AddOrganizationMemberRequest
AddOrganizationMemberJSONRequestBody defines body for AddOrganizationMember for application/json ContentType.
type AddOrganizationMemberRequest ¶
type AddOrganizationMemberRequest struct {
// Role Role of the user within the organization; determines permissions on org-scoped resources
Role OrganizationRole `json:"role"`
// UserId TypeID for the user
UserId UserId `json:"userId"`
}
AddOrganizationMemberRequest Properties for adding a user to an organization
type AddOrganizationMemberResponse ¶
type AddOrganizationMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *OrganizationMember
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseAddOrganizationMemberResponse ¶
func ParseAddOrganizationMemberResponse(rsp *http.Response) (*AddOrganizationMemberResponse, error)
ParseAddOrganizationMemberResponse parses an HTTP response from a AddOrganizationMemberWithResponse call
func (AddOrganizationMemberResponse) Status ¶
func (r AddOrganizationMemberResponse) Status() string
Status returns HTTPResponse.Status
func (AddOrganizationMemberResponse) StatusCode ¶
func (r AddOrganizationMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CanonicalInterfaceMeta ¶
type CanonicalInterfaceMeta struct {
Id InterfaceId `json:"id"`
Name string `json:"name"`
Slug string `json:"slug"`
IsPublic bool `json:"isPublic"`
CanonicalURL string `json:"canonicalUrl"`
}
CanonicalInterfaceMeta is the JSON body returned by GET /i/{owner}/{name}?json.
type Client ¶
type Client struct {
// The endpoint of the server conforming to this interface, with scheme,
// https://api.deepmap.com for example. This can contain a path relative
// to the server, such as https://api.deepmap.com/dev-test, and all the
// paths in the swagger spec will be appended to the server.
Server string
// Doer for performing requests, typically a *http.Client with any
// customized settings, such as certificate chains.
Client HttpRequestDoer
// A list of callbacks for modifying requests which are generated before sending over
// the network.
RequestEditors []RequestEditorFn
}
Client which conforms to the OpenAPI3 specification for this service.
func NewClient ¶
func NewClient(server string, opts ...ClientOption) (*Client, error)
Creates a new Client, with reasonable defaults
func (*Client) AddOrganizationMember ¶
func (c *Client) AddOrganizationMember(ctx context.Context, organizationId OrganizationId, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) AddOrganizationMemberWithBody ¶
func (*Client) CreateInterface ¶
func (c *Client) CreateInterface(ctx context.Context, body CreateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInterfaceRelease ¶
func (c *Client) CreateInterfaceRelease(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInterfaceReleaseWithBody ¶
func (*Client) CreateInterfaceRevision ¶
func (c *Client) CreateInterfaceRevision(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateInterfaceRevisionWithBody ¶
func (*Client) CreateInterfaceWithBody ¶
func (*Client) CreateOrganization ¶
func (c *Client) CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateOrganizationWithBody ¶
func (*Client) DeleteInterface ¶
func (c *Client) DeleteInterface(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteInterfaceRelease ¶
func (c *Client) DeleteInterfaceRelease(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteOrganizationMember ¶
func (c *Client) DeleteOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetCurrentUser ¶
func (*Client) GetInterface ¶
func (c *Client) GetInterface(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetInterfaceRelease ¶
func (c *Client) GetInterfaceRelease(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetInterfaceRevision ¶
func (c *Client) GetInterfaceRevision(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrganization ¶
func (c *Client) GetOrganization(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) GetOrganizationMember ¶
func (c *Client) GetOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInterfaceReleases ¶
func (c *Client) ListInterfaceReleases(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInterfaceRevisions ¶
func (c *Client) ListInterfaceRevisions(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListInterfaces ¶
func (c *Client) ListInterfaces(ctx context.Context, params *ListInterfacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListOrganizationMembers ¶
func (c *Client) ListOrganizationMembers(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) ListOrganizations ¶
func (*Client) UpdateInterface ¶
func (c *Client) UpdateInterface(ctx context.Context, interfaceId InterfaceId, body UpdateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateInterfaceWithBody ¶
func (*Client) UpdateOrganization ¶
func (c *Client) UpdateOrganization(ctx context.Context, organizationId OrganizationId, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateOrganizationMember ¶
func (c *Client) UpdateOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdateOrganizationMemberWithBody ¶
func (*Client) UpdateOrganizationWithBody ¶
func (*Client) UpdateUser ¶
func (c *Client) UpdateUser(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
type ClientInterface ¶
type ClientInterface interface {
// ListInterfaces request
ListInterfaces(ctx context.Context, params *ListInterfacesParams, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInterfaceWithBody request with any body
CreateInterfaceWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInterface(ctx context.Context, body CreateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteInterface request
DeleteInterface(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInterface request
GetInterface(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateInterfaceWithBody request with any body
UpdateInterfaceWithBody(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateInterface(ctx context.Context, interfaceId InterfaceId, body UpdateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInterfaceReleases request
ListInterfaceReleases(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInterfaceReleaseWithBody request with any body
CreateInterfaceReleaseWithBody(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInterfaceRelease(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteInterfaceRelease request
DeleteInterfaceRelease(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInterfaceRelease request
GetInterfaceRelease(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListInterfaceRevisions request
ListInterfaceRevisions(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateInterfaceRevisionWithBody request with any body
CreateInterfaceRevisionWithBody(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateInterfaceRevision(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetInterfaceRevision request
GetInterfaceRevision(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrganizations request
ListOrganizations(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// CreateOrganizationWithBody request with any body
CreateOrganizationWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
CreateOrganization(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrganization request
GetOrganization(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOrganizationWithBody request with any body
UpdateOrganizationWithBody(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOrganization(ctx context.Context, organizationId OrganizationId, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// ListOrganizationMembers request
ListOrganizationMembers(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*http.Response, error)
// AddOrganizationMemberWithBody request with any body
AddOrganizationMemberWithBody(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
AddOrganizationMember(ctx context.Context, organizationId OrganizationId, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// DeleteOrganizationMember request
DeleteOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetOrganizationMember request
GetOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateOrganizationMemberWithBody request with any body
UpdateOrganizationMemberWithBody(ctx context.Context, organizationId OrganizationId, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateOrganizationMember(ctx context.Context, organizationId OrganizationId, userId UserId, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetCurrentUser request
GetCurrentUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
// GetUser request
GetUser(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*http.Response, error)
// UpdateUserWithBody request with any body
UpdateUserWithBody(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)
UpdateUser(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
}
The interface specification for the client above.
type ClientOption ¶
ClientOption allows setting custom parameters during construction
func WithHTTPClient ¶
func WithHTTPClient(doer HttpRequestDoer) ClientOption
WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.
func WithRequestEditorFn ¶
func WithRequestEditorFn(fn RequestEditorFn) ClientOption
WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.
type ClientWithResponses ¶
type ClientWithResponses struct {
ClientInterface
}
ClientWithResponses builds on ClientInterface to offer response payloads
func NewClientWithResponses ¶
func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)
NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling
func (*ClientWithResponses) AddOrganizationMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) AddOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error)
AddOrganizationMemberWithBodyWithResponse request with arbitrary body returning *AddOrganizationMemberResponse
func (*ClientWithResponses) AddOrganizationMemberWithResponse ¶
func (c *ClientWithResponses) AddOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error)
func (*ClientWithResponses) CreateInterfaceReleaseWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInterfaceReleaseWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceReleaseResponse, error)
CreateInterfaceReleaseWithBodyWithResponse request with arbitrary body returning *CreateInterfaceReleaseResponse
func (*ClientWithResponses) CreateInterfaceReleaseWithResponse ¶
func (c *ClientWithResponses) CreateInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceReleaseResponse, error)
func (*ClientWithResponses) CreateInterfaceRevisionWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInterfaceRevisionWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceRevisionResponse, error)
CreateInterfaceRevisionWithBodyWithResponse request with arbitrary body returning *CreateInterfaceRevisionResponse
func (*ClientWithResponses) CreateInterfaceRevisionWithResponse ¶
func (c *ClientWithResponses) CreateInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceRevisionResponse, error)
func (*ClientWithResponses) CreateInterfaceWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateInterfaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceResponse, error)
CreateInterfaceWithBodyWithResponse request with arbitrary body returning *CreateInterfaceResponse
func (*ClientWithResponses) CreateInterfaceWithResponse ¶
func (c *ClientWithResponses) CreateInterfaceWithResponse(ctx context.Context, body CreateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceResponse, error)
func (*ClientWithResponses) CreateOrganizationWithBodyWithResponse ¶
func (c *ClientWithResponses) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
CreateOrganizationWithBodyWithResponse request with arbitrary body returning *CreateOrganizationResponse
func (*ClientWithResponses) CreateOrganizationWithResponse ¶
func (c *ClientWithResponses) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
func (*ClientWithResponses) CurrentUserID ¶
func (c *ClientWithResponses) CurrentUserID(ctx context.Context) (UserId, error)
CurrentUserID returns the ID of the authenticated user.
func (*ClientWithResponses) DeleteInterfaceReleaseWithResponse ¶
func (c *ClientWithResponses) DeleteInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*DeleteInterfaceReleaseResponse, error)
DeleteInterfaceReleaseWithResponse request returning *DeleteInterfaceReleaseResponse
func (*ClientWithResponses) DeleteInterfaceWithResponse ¶
func (c *ClientWithResponses) DeleteInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*DeleteInterfaceResponse, error)
DeleteInterfaceWithResponse request returning *DeleteInterfaceResponse
func (*ClientWithResponses) DeleteOrganizationMemberWithResponse ¶
func (c *ClientWithResponses) DeleteOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*DeleteOrganizationMemberResponse, error)
DeleteOrganizationMemberWithResponse request returning *DeleteOrganizationMemberResponse
func (*ClientWithResponses) GetCurrentUserWithResponse ¶
func (c *ClientWithResponses) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
GetCurrentUserWithResponse request returning *GetCurrentUserResponse
func (*ClientWithResponses) GetInterfaceByCanonicalPathWithResponse ¶
func (c *ClientWithResponses) GetInterfaceByCanonicalPathWithResponse(ctx context.Context, host, ownerPath, name string, reqEditors ...RequestEditorFn) (*CanonicalInterfaceMeta, int, error)
GetInterfaceByCanonicalPathWithResponse resolves a canonical /i/{owner}/{name} locator via GET ?json on the API host (outside /api/v0).
func (*ClientWithResponses) GetInterfaceReleaseWithResponse ¶
func (c *ClientWithResponses) GetInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*GetInterfaceReleaseResponse, error)
GetInterfaceReleaseWithResponse request returning *GetInterfaceReleaseResponse
func (*ClientWithResponses) GetInterfaceRevisionWithResponse ¶
func (c *ClientWithResponses) GetInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, reqEditors ...RequestEditorFn) (*GetInterfaceRevisionResponse, error)
GetInterfaceRevisionWithResponse request returning *GetInterfaceRevisionResponse
func (*ClientWithResponses) GetInterfaceWithResponse ¶
func (c *ClientWithResponses) GetInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*GetInterfaceResponse, error)
GetInterfaceWithResponse request returning *GetInterfaceResponse
func (*ClientWithResponses) GetOrganizationMemberWithResponse ¶
func (c *ClientWithResponses) GetOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*GetOrganizationMemberResponse, error)
GetOrganizationMemberWithResponse request returning *GetOrganizationMemberResponse
func (*ClientWithResponses) GetOrganizationWithResponse ¶
func (c *ClientWithResponses) GetOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
GetOrganizationWithResponse request returning *GetOrganizationResponse
func (*ClientWithResponses) GetUserWithResponse ¶
func (c *ClientWithResponses) GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse request returning *GetUserResponse
func (*ClientWithResponses) ListInterfaceReleasesWithResponse ¶
func (c *ClientWithResponses) ListInterfaceReleasesWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceReleasesResponse, error)
ListInterfaceReleasesWithResponse request returning *ListInterfaceReleasesResponse
func (*ClientWithResponses) ListInterfaceRevisionsWithResponse ¶
func (c *ClientWithResponses) ListInterfaceRevisionsWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceRevisionsResponse, error)
ListInterfaceRevisionsWithResponse request returning *ListInterfaceRevisionsResponse
func (*ClientWithResponses) ListInterfacesWithResponse ¶
func (c *ClientWithResponses) ListInterfacesWithResponse(ctx context.Context, params *ListInterfacesParams, reqEditors ...RequestEditorFn) (*ListInterfacesResponse, error)
ListInterfacesWithResponse request returning *ListInterfacesResponse
func (*ClientWithResponses) ListOrganizationMembersWithResponse ¶
func (c *ClientWithResponses) ListOrganizationMembersWithResponse(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error)
ListOrganizationMembersWithResponse request returning *ListOrganizationMembersResponse
func (*ClientWithResponses) ListOrganizationsWithResponse ¶
func (c *ClientWithResponses) ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)
ListOrganizationsWithResponse request returning *ListOrganizationsResponse
func (*ClientWithResponses) UpdateInterfaceWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateInterfaceWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInterfaceResponse, error)
UpdateInterfaceWithBodyWithResponse request with arbitrary body returning *UpdateInterfaceResponse
func (*ClientWithResponses) UpdateInterfaceWithResponse ¶
func (c *ClientWithResponses) UpdateInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, body UpdateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInterfaceResponse, error)
func (*ClientWithResponses) UpdateOrganizationMemberWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)
UpdateOrganizationMemberWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationMemberResponse
func (*ClientWithResponses) UpdateOrganizationMemberWithResponse ¶
func (c *ClientWithResponses) UpdateOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)
func (*ClientWithResponses) UpdateOrganizationWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
UpdateOrganizationWithBodyWithResponse request with arbitrary body returning *UpdateOrganizationResponse
func (*ClientWithResponses) UpdateOrganizationWithResponse ¶
func (c *ClientWithResponses) UpdateOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
func (*ClientWithResponses) UpdateUserWithBodyWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse
func (*ClientWithResponses) UpdateUserWithResponse ¶
func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
type ClientWithResponsesIfc ¶
type ClientWithResponsesIfc interface {
GetInterfaceByCanonicalPathWithResponse(ctx context.Context, host, ownerPath, name string, reqEditors ...RequestEditorFn) (*CanonicalInterfaceMeta, int, error)
ListInterfacesWithResponse(ctx context.Context, params *ListInterfacesParams, reqEditors ...RequestEditorFn) (*ListInterfacesResponse, error)
CreateInterfaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceResponse, error)
CreateInterfaceWithResponse(ctx context.Context, body CreateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceResponse, error)
DeleteInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*DeleteInterfaceResponse, error)
GetInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*GetInterfaceResponse, error)
UpdateInterfaceWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInterfaceResponse, error)
UpdateInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, body UpdateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInterfaceResponse, error)
ListInterfaceReleasesWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceReleasesResponse, error)
CreateInterfaceReleaseWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceReleaseResponse, error)
CreateInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceReleaseResponse, error)
DeleteInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*DeleteInterfaceReleaseResponse, error)
GetInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*GetInterfaceReleaseResponse, error)
ListInterfaceRevisionsWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceRevisionsResponse, error)
CreateInterfaceRevisionWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceRevisionResponse, error)
CreateInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceRevisionResponse, error)
GetInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, reqEditors ...RequestEditorFn) (*GetInterfaceRevisionResponse, error)
ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)
CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
GetOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
UpdateOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
ListOrganizationMembersWithResponse(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error)
AddOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error)
AddOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error)
DeleteOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*DeleteOrganizationMemberResponse, error)
GetOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*GetOrganizationMemberResponse, error)
UpdateOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)
UpdateOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)
GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithResponse(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
CurrentUserID(ctx context.Context) (UserId, error)
}
type ClientWithResponsesInterface ¶
type ClientWithResponsesInterface interface {
// ListInterfacesWithResponse request
ListInterfacesWithResponse(ctx context.Context, params *ListInterfacesParams, reqEditors ...RequestEditorFn) (*ListInterfacesResponse, error)
// CreateInterfaceWithBodyWithResponse request with any body
CreateInterfaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceResponse, error)
CreateInterfaceWithResponse(ctx context.Context, body CreateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceResponse, error)
// DeleteInterfaceWithResponse request
DeleteInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*DeleteInterfaceResponse, error)
// GetInterfaceWithResponse request
GetInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*GetInterfaceResponse, error)
// UpdateInterfaceWithBodyWithResponse request with any body
UpdateInterfaceWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInterfaceResponse, error)
UpdateInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, body UpdateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInterfaceResponse, error)
// ListInterfaceReleasesWithResponse request
ListInterfaceReleasesWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceReleasesResponse, error)
// CreateInterfaceReleaseWithBodyWithResponse request with any body
CreateInterfaceReleaseWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceReleaseResponse, error)
CreateInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceReleaseResponse, error)
// DeleteInterfaceReleaseWithResponse request
DeleteInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*DeleteInterfaceReleaseResponse, error)
// GetInterfaceReleaseWithResponse request
GetInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*GetInterfaceReleaseResponse, error)
// ListInterfaceRevisionsWithResponse request
ListInterfaceRevisionsWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceRevisionsResponse, error)
// CreateInterfaceRevisionWithBodyWithResponse request with any body
CreateInterfaceRevisionWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceRevisionResponse, error)
CreateInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceRevisionResponse, error)
// GetInterfaceRevisionWithResponse request
GetInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, reqEditors ...RequestEditorFn) (*GetInterfaceRevisionResponse, error)
// ListOrganizationsWithResponse request
ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)
// CreateOrganizationWithBodyWithResponse request with any body
CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
// GetOrganizationWithResponse request
GetOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
// UpdateOrganizationWithBodyWithResponse request with any body
UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
UpdateOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
// ListOrganizationMembersWithResponse request
ListOrganizationMembersWithResponse(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error)
// AddOrganizationMemberWithBodyWithResponse request with any body
AddOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error)
AddOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error)
// DeleteOrganizationMemberWithResponse request
DeleteOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*DeleteOrganizationMemberResponse, error)
// GetOrganizationMemberWithResponse request
GetOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*GetOrganizationMemberResponse, error)
// UpdateOrganizationMemberWithBodyWithResponse request with any body
UpdateOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)
UpdateOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)
// GetCurrentUserWithResponse request
GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
// GetUserWithResponse request
GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
// UpdateUserWithBodyWithResponse request with any body
UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithResponse(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
}
ClientWithResponsesInterface is the interface specification for the client with responses above.
type CreateInterfaceJSONRequestBody ¶
type CreateInterfaceJSONRequestBody = CreateInterfaceRequest
CreateInterfaceJSONRequestBody defines body for CreateInterface for application/json ContentType.
type CreateInterfaceReleaseJSONRequestBody ¶
type CreateInterfaceReleaseJSONRequestBody = CreateReleaseRequest
CreateInterfaceReleaseJSONRequestBody defines body for CreateInterfaceRelease for application/json ContentType.
type CreateInterfaceReleaseResponse ¶
type CreateInterfaceReleaseResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *InterfaceRelease
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseCreateInterfaceReleaseResponse ¶
func ParseCreateInterfaceReleaseResponse(rsp *http.Response) (*CreateInterfaceReleaseResponse, error)
ParseCreateInterfaceReleaseResponse parses an HTTP response from a CreateInterfaceReleaseWithResponse call
func (CreateInterfaceReleaseResponse) Status ¶
func (r CreateInterfaceReleaseResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInterfaceReleaseResponse) StatusCode ¶
func (r CreateInterfaceReleaseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInterfaceRequest ¶
type CreateInterfaceRequest struct {
// Description A brief description of the interface
Description *string `json:"description,omitempty"`
// IsPublic Whether the interface is publicly accessible (default False)
IsPublic bool `json:"isPublic"`
// Name A short, human-readable name for the interface
Name string `json:"name"`
// Owner either a UserId or OrganizationId
Owner InterfaceOwner `json:"owner"`
// Type Defines the type of interface specification being used
Type InterfaceType `json:"type"`
}
CreateInterfaceRequest Properties that describe a new interface to be created
type CreateInterfaceResponse ¶
type CreateInterfaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *InterfaceDescriptor
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON409 *ConflictError
}
func ParseCreateInterfaceResponse ¶
func ParseCreateInterfaceResponse(rsp *http.Response) (*CreateInterfaceResponse, error)
ParseCreateInterfaceResponse parses an HTTP response from a CreateInterfaceWithResponse call
func (CreateInterfaceResponse) Status ¶
func (r CreateInterfaceResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInterfaceResponse) StatusCode ¶
func (r CreateInterfaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateInterfaceRevisionJSONRequestBody ¶
type CreateInterfaceRevisionJSONRequestBody = CreateRevisionRequest
CreateInterfaceRevisionJSONRequestBody defines body for CreateInterfaceRevision for application/json ContentType.
type CreateInterfaceRevisionResponse ¶
type CreateInterfaceRevisionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *InterfaceRevisionDescriptor
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseCreateInterfaceRevisionResponse ¶
func ParseCreateInterfaceRevisionResponse(rsp *http.Response) (*CreateInterfaceRevisionResponse, error)
ParseCreateInterfaceRevisionResponse parses an HTTP response from a CreateInterfaceRevisionWithResponse call
func (CreateInterfaceRevisionResponse) Status ¶
func (r CreateInterfaceRevisionResponse) Status() string
Status returns HTTPResponse.Status
func (CreateInterfaceRevisionResponse) StatusCode ¶
func (r CreateInterfaceRevisionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateOrganizationJSONRequestBody ¶
type CreateOrganizationJSONRequestBody = CreateOrganizationRequest
CreateOrganizationJSONRequestBody defines body for CreateOrganization for application/json ContentType.
type CreateOrganizationRequest ¶
type CreateOrganizationRequest struct {
// ExternalId External identifier for the organization, if applicable
ExternalId *string `json:"externalId,omitempty"`
// Name Display name for the organization (case-insensitive uniqueness)
Name string `json:"name"`
}
CreateOrganizationRequest Properties for creating a new organization
type CreateOrganizationResponse ¶
type CreateOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON201 *Organization
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON409 *ConflictError
}
func ParseCreateOrganizationResponse ¶
func ParseCreateOrganizationResponse(rsp *http.Response) (*CreateOrganizationResponse, error)
ParseCreateOrganizationResponse parses an HTTP response from a CreateOrganizationWithResponse call
func (CreateOrganizationResponse) Status ¶
func (r CreateOrganizationResponse) Status() string
Status returns HTTPResponse.Status
func (CreateOrganizationResponse) StatusCode ¶
func (r CreateOrganizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type CreateReleaseRequest ¶
type CreateReleaseRequest struct {
// InterfaceRevisionId TypeID for the interface revision
InterfaceRevisionId InterfaceRevisionId `json:"interfaceRevisionId"`
// Notes A brief description of the release
Notes *string `json:"notes,omitempty"`
// SemVer Semantic versioning number (https://semver.org/)
SemVer SemanticVersion `json:"semVer"`
// Summary A brief summary of the release
Summary string `json:"summary"`
}
CreateReleaseRequest Properties that describe a new interface release to be created
type CreateRevisionRequest ¶
type CreateRevisionRequest struct {
// CreatedBy TypeID for the user
CreatedBy UserId `json:"createdBy"`
// Notes A brief description of the changes made in this revision
Notes *string `json:"notes,omitempty"`
// Specification base64-encoded interface specification
Specification InterfaceSpecification `json:"specification"`
}
CreateRevisionRequest Properties that describe a new interface revision to be created
type DeleteInterfaceReleaseResponse ¶
type DeleteInterfaceReleaseResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseDeleteInterfaceReleaseResponse ¶
func ParseDeleteInterfaceReleaseResponse(rsp *http.Response) (*DeleteInterfaceReleaseResponse, error)
ParseDeleteInterfaceReleaseResponse parses an HTTP response from a DeleteInterfaceReleaseWithResponse call
func (DeleteInterfaceReleaseResponse) Status ¶
func (r DeleteInterfaceReleaseResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteInterfaceReleaseResponse) StatusCode ¶
func (r DeleteInterfaceReleaseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteInterfaceResponse ¶
type DeleteInterfaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseDeleteInterfaceResponse ¶
func ParseDeleteInterfaceResponse(rsp *http.Response) (*DeleteInterfaceResponse, error)
ParseDeleteInterfaceResponse parses an HTTP response from a DeleteInterfaceWithResponse call
func (DeleteInterfaceResponse) Status ¶
func (r DeleteInterfaceResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteInterfaceResponse) StatusCode ¶
func (r DeleteInterfaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteOrganizationMemberResponse ¶
type DeleteOrganizationMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *Error
}
func ParseDeleteOrganizationMemberResponse ¶
func ParseDeleteOrganizationMemberResponse(rsp *http.Response) (*DeleteOrganizationMemberResponse, error)
ParseDeleteOrganizationMemberResponse parses an HTTP response from a DeleteOrganizationMemberWithResponse call
func (DeleteOrganizationMemberResponse) Status ¶
func (r DeleteOrganizationMemberResponse) Status() string
Status returns HTTPResponse.Status
func (DeleteOrganizationMemberResponse) StatusCode ¶
func (r DeleteOrganizationMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type Error ¶
type Error struct {
// Code HTTP error code
Code int `json:"code"`
// Message Error message
Message string `json:"message"`
}
Error Error response
type GetCurrentUserResponse ¶
type GetCurrentUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON401 *UnauthorizedError
JSON404 *NotFoundError
}
func ParseGetCurrentUserResponse ¶
func ParseGetCurrentUserResponse(rsp *http.Response) (*GetCurrentUserResponse, error)
ParseGetCurrentUserResponse parses an HTTP response from a GetCurrentUserWithResponse call
func (GetCurrentUserResponse) Status ¶
func (r GetCurrentUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetCurrentUserResponse) StatusCode ¶
func (r GetCurrentUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInterfaceReleaseResponse ¶
type GetInterfaceReleaseResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InterfaceRelease
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseGetInterfaceReleaseResponse ¶
func ParseGetInterfaceReleaseResponse(rsp *http.Response) (*GetInterfaceReleaseResponse, error)
ParseGetInterfaceReleaseResponse parses an HTTP response from a GetInterfaceReleaseWithResponse call
func (GetInterfaceReleaseResponse) Status ¶
func (r GetInterfaceReleaseResponse) Status() string
Status returns HTTPResponse.Status
func (GetInterfaceReleaseResponse) StatusCode ¶
func (r GetInterfaceReleaseResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInterfaceResponse ¶
type GetInterfaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Interface
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseGetInterfaceResponse ¶
func ParseGetInterfaceResponse(rsp *http.Response) (*GetInterfaceResponse, error)
ParseGetInterfaceResponse parses an HTTP response from a GetInterfaceWithResponse call
func (GetInterfaceResponse) Status ¶
func (r GetInterfaceResponse) Status() string
Status returns HTTPResponse.Status
func (GetInterfaceResponse) StatusCode ¶
func (r GetInterfaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetInterfaceRevisionResponse ¶
type GetInterfaceRevisionResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InterfaceRevision
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseGetInterfaceRevisionResponse ¶
func ParseGetInterfaceRevisionResponse(rsp *http.Response) (*GetInterfaceRevisionResponse, error)
ParseGetInterfaceRevisionResponse parses an HTTP response from a GetInterfaceRevisionWithResponse call
func (GetInterfaceRevisionResponse) Status ¶
func (r GetInterfaceRevisionResponse) Status() string
Status returns HTTPResponse.Status
func (GetInterfaceRevisionResponse) StatusCode ¶
func (r GetInterfaceRevisionResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrganizationMemberResponse ¶
type GetOrganizationMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OrganizationMember
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseGetOrganizationMemberResponse ¶
func ParseGetOrganizationMemberResponse(rsp *http.Response) (*GetOrganizationMemberResponse, error)
ParseGetOrganizationMemberResponse parses an HTTP response from a GetOrganizationMemberWithResponse call
func (GetOrganizationMemberResponse) Status ¶
func (r GetOrganizationMemberResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrganizationMemberResponse) StatusCode ¶
func (r GetOrganizationMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetOrganizationResponse ¶
type GetOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Organization
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseGetOrganizationResponse ¶
func ParseGetOrganizationResponse(rsp *http.Response) (*GetOrganizationResponse, error)
ParseGetOrganizationResponse parses an HTTP response from a GetOrganizationWithResponse call
func (GetOrganizationResponse) Status ¶
func (r GetOrganizationResponse) Status() string
Status returns HTTPResponse.Status
func (GetOrganizationResponse) StatusCode ¶
func (r GetOrganizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type GetUserResponse ¶
type GetUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseGetUserResponse ¶
func ParseGetUserResponse(rsp *http.Response) (*GetUserResponse, error)
ParseGetUserResponse parses an HTTP response from a GetUserWithResponse call
func (GetUserResponse) Status ¶
func (r GetUserResponse) Status() string
Status returns HTTPResponse.Status
func (GetUserResponse) StatusCode ¶
func (r GetUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type HttpRequestDoer ¶
Doer performs HTTP requests.
The standard http.Client implements this interface.
type Ifc7ApiClient ¶
type Ifc7ApiClient struct {
*ClientWithResponses
// contains filtered or unexported fields
}
func NewAPIClient ¶
func NewAPIClient(ctx context.Context, opts ...ClientOption) (*Ifc7ApiClient, error)
NewAPIClient creates an API client with bearer token injection when credentials are provided.
type Interface ¶
type Interface struct {
// CanonicalUrl Canonical locator path for this interface. Organization-owned interfaces use
// `/i/{orgSlug}/{interfaceSlug}`; user-owned interfaces use `/i/@{userSlug}/{interfaceSlug}`.
CanonicalUrl string `json:"canonicalUrl,omitempty"`
// CreatedAt The time the interface was created
CreatedAt time.Time `json:"createdAt"`
// Description A brief description of the interface
Description *string `json:"description,omitempty"`
// Id TypeID for the interface
Id InterfaceId `json:"id"`
// IsPublic Whether the interface is publicly accessible
IsPublic bool `json:"isPublic"`
// LatestRelease Describes a particular versioned release of an interface
LatestRelease *InterfaceRelease `json:"latestRelease,omitempty"`
// LatestRevision Describes a particular revision of an interface
LatestRevision *InterfaceRevision `json:"latestRevision,omitempty"`
// Name A short, human-readable name for the interface
Name string `json:"name"`
// Owner either a UserId or OrganizationId
Owner InterfaceOwner `json:"owner"`
// Slug A URL-friendly version of the interface name
Slug string `json:"slug"`
// Type Defines the type of interface specification being used
Type InterfaceType `json:"type"`
// UpdatedAt The time of the last update to the interface (including revisions or releases)
UpdatedAt time.Time `json:"updatedAt"`
}
Interface A specification for a particular interface
type InterfaceDescriptor ¶
type InterfaceDescriptor struct {
// CanonicalUrl Canonical locator path for this interface. Organization-owned interfaces use
// `/i/{orgSlug}/{interfaceSlug}`; user-owned interfaces use `/i/@{userSlug}/{interfaceSlug}`.
CanonicalUrl string `json:"canonicalUrl,omitempty"`
// CreatedAt The time the interface was created
CreatedAt time.Time `json:"createdAt"`
// Description A brief description of the interface
Description *string `json:"description,omitempty"`
// Id TypeID for the interface
Id InterfaceId `json:"id"`
// IsPublic Whether the interface is publicly accessible
IsPublic bool `json:"isPublic"`
// LatestReleaseVersion Semantic versioning number (https://semver.org/)
LatestReleaseVersion *SemanticVersion `json:"latestReleaseVersion,omitempty"`
// LatestRevisionId TypeID for the interface revision
LatestRevisionId *InterfaceRevisionId `json:"latestRevisionId,omitempty"`
// Name A short, human-readable name for the interface
Name string `json:"name"`
// Owner either a UserId or OrganizationId
Owner InterfaceOwner `json:"owner"`
// Slug A URL-friendly version of the interface name
Slug string `json:"slug"`
// Type Defines the type of interface specification being used
Type InterfaceType `json:"type"`
// UpdatedAt The time of the last update to the interface (including revisions or releases)
UpdatedAt time.Time `json:"updatedAt"`
}
InterfaceDescriptor A lightweight descriptor for a particular interface, does not include the full revision specification
type InterfaceRelease ¶
type InterfaceRelease struct {
// CreatedAt The time the release was created
CreatedAt time.Time `json:"createdAt"`
// InterfaceId TypeID for the interface
InterfaceId InterfaceId `json:"interfaceId"`
// InterfaceRevisionId TypeID for the interface revision
InterfaceRevisionId InterfaceRevisionId `json:"interfaceRevisionId"`
// Notes A detailed set of release notes describing the changes in this release
Notes *string `json:"notes,omitempty"`
// SemanticVersion Semantic versioning number (https://semver.org/)
SemanticVersion SemanticVersion `json:"semanticVersion"`
// Summary A brief summary of the release
Summary string `json:"summary"`
}
InterfaceRelease Describes a particular versioned release of an interface
type InterfaceRevision ¶
type InterfaceRevision struct {
// Checksum SHA-256 checksum of the raw interface specification
Checksum string `json:"checksum"`
// CreatedAt The time the revision was created
CreatedAt time.Time `json:"createdAt"`
// CreatedBy TypeID for the user
CreatedBy UserId `json:"createdBy"`
// FileFormat The file format of the interface specification file
FileFormat *SpecificationFileFormat `json:"fileFormat,omitempty"`
// Id TypeID for the interface revision
Id InterfaceRevisionId `json:"id"`
// Notes A brief description of the changes made in this revision
Notes *string `json:"notes,omitempty"`
// Specification base64-encoded interface specification
Specification InterfaceSpecification `json:"specification"`
}
InterfaceRevision Describes a particular revision of an interface
type InterfaceRevisionDescriptor ¶
type InterfaceRevisionDescriptor struct {
// Checksum SHA-256 checksum of the raw interface specification
Checksum string `json:"checksum"`
// CreatedAt The time the revision was created
CreatedAt time.Time `json:"createdAt"`
// CreatedBy TypeID for the user
CreatedBy UserId `json:"createdBy"`
// FileFormat The file format of the interface specification file
FileFormat *SpecificationFileFormat `json:"fileFormat,omitempty"`
// Id TypeID for the interface revision
Id InterfaceRevisionId `json:"id"`
// Notes A brief description of the changes made in this revision
Notes *string `json:"notes,omitempty"`
}
InterfaceRevisionDescriptor A lightweight descriptor of a revision, does not include the specification
type InterfaceRevisionId ¶
type InterfaceRevisionId = string
InterfaceRevisionId TypeID for the interface revision
type InterfaceSpecification ¶
type InterfaceSpecification = string
InterfaceSpecification base64-encoded interface specification
type InterfaceType ¶
type InterfaceType string
InterfaceType Defines the type of interface specification being used
const ( JSONSCHEMA InterfaceType = "JSON_SCHEMA" OPENAPI InterfaceType = "OPENAPI" )
Defines values for InterfaceType.
type ListInterfaceReleasesResponse ¶
type ListInterfaceReleasesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]InterfaceRelease
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseListInterfaceReleasesResponse ¶
func ParseListInterfaceReleasesResponse(rsp *http.Response) (*ListInterfaceReleasesResponse, error)
ParseListInterfaceReleasesResponse parses an HTTP response from a ListInterfaceReleasesWithResponse call
func (ListInterfaceReleasesResponse) Status ¶
func (r ListInterfaceReleasesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInterfaceReleasesResponse) StatusCode ¶
func (r ListInterfaceReleasesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInterfaceRevisionsResponse ¶
type ListInterfaceRevisionsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]InterfaceRevisionDescriptor
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseListInterfaceRevisionsResponse ¶
func ParseListInterfaceRevisionsResponse(rsp *http.Response) (*ListInterfaceRevisionsResponse, error)
ParseListInterfaceRevisionsResponse parses an HTTP response from a ListInterfaceRevisionsWithResponse call
func (ListInterfaceRevisionsResponse) Status ¶
func (r ListInterfaceRevisionsResponse) Status() string
Status returns HTTPResponse.Status
func (ListInterfaceRevisionsResponse) StatusCode ¶
func (r ListInterfaceRevisionsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListInterfacesParams ¶
type ListInterfacesParams struct {
// Owner If provided, filters interfaces by the specified owner (user or organization)
Owner *InterfaceOwner `form:"owner,omitempty" json:"owner,omitempty"`
}
ListInterfacesParams defines parameters for ListInterfaces.
type ListInterfacesResponse ¶
type ListInterfacesResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]InterfaceDescriptor
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
}
func ParseListInterfacesResponse ¶
func ParseListInterfacesResponse(rsp *http.Response) (*ListInterfacesResponse, error)
ParseListInterfacesResponse parses an HTTP response from a ListInterfacesWithResponse call
func (ListInterfacesResponse) Status ¶
func (r ListInterfacesResponse) Status() string
Status returns HTTPResponse.Status
func (ListInterfacesResponse) StatusCode ¶
func (r ListInterfacesResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrganizationMembersResponse ¶
type ListOrganizationMembersResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]OrganizationMember
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseListOrganizationMembersResponse ¶
func ParseListOrganizationMembersResponse(rsp *http.Response) (*ListOrganizationMembersResponse, error)
ParseListOrganizationMembersResponse parses an HTTP response from a ListOrganizationMembersWithResponse call
func (ListOrganizationMembersResponse) Status ¶
func (r ListOrganizationMembersResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrganizationMembersResponse) StatusCode ¶
func (r ListOrganizationMembersResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type ListOrganizationsResponse ¶
type ListOrganizationsResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *[]Organization
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
}
func ParseListOrganizationsResponse ¶
func ParseListOrganizationsResponse(rsp *http.Response) (*ListOrganizationsResponse, error)
ParseListOrganizationsResponse parses an HTTP response from a ListOrganizationsWithResponse call
func (ListOrganizationsResponse) Status ¶
func (r ListOrganizationsResponse) Status() string
Status returns HTTPResponse.Status
func (ListOrganizationsResponse) StatusCode ¶
func (r ListOrganizationsResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type MockClientWithResponsesIfc ¶
type MockClientWithResponsesIfc struct {
// contains filtered or unexported fields
}
MockClientWithResponsesIfc is a mock of ClientWithResponsesIfc interface.
func NewMockClientWithResponsesIfc ¶
func NewMockClientWithResponsesIfc(ctrl *gomock.Controller) *MockClientWithResponsesIfc
NewMockClientWithResponsesIfc creates a new mock instance.
func (*MockClientWithResponsesIfc) AddOrganizationMemberWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) AddOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error)
AddOrganizationMemberWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) AddOrganizationMemberWithResponse ¶
func (m *MockClientWithResponsesIfc) AddOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, body AddOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*AddOrganizationMemberResponse, error)
AddOrganizationMemberWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CreateInterfaceReleaseWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) CreateInterfaceReleaseWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceReleaseResponse, error)
CreateInterfaceReleaseWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CreateInterfaceReleaseWithResponse ¶
func (m *MockClientWithResponsesIfc) CreateInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceReleaseJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceReleaseResponse, error)
CreateInterfaceReleaseWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CreateInterfaceRevisionWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) CreateInterfaceRevisionWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceRevisionResponse, error)
CreateInterfaceRevisionWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CreateInterfaceRevisionWithResponse ¶
func (m *MockClientWithResponsesIfc) CreateInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, body CreateInterfaceRevisionJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceRevisionResponse, error)
CreateInterfaceRevisionWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CreateInterfaceWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) CreateInterfaceWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateInterfaceResponse, error)
CreateInterfaceWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CreateInterfaceWithResponse ¶
func (m *MockClientWithResponsesIfc) CreateInterfaceWithResponse(ctx context.Context, body CreateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateInterfaceResponse, error)
CreateInterfaceWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CreateOrganizationWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) CreateOrganizationWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
CreateOrganizationWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CreateOrganizationWithResponse ¶
func (m *MockClientWithResponsesIfc) CreateOrganizationWithResponse(ctx context.Context, body CreateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOrganizationResponse, error)
CreateOrganizationWithResponse mocks base method.
func (*MockClientWithResponsesIfc) CurrentUserID ¶
func (m *MockClientWithResponsesIfc) CurrentUserID(ctx context.Context) (UserId, error)
CurrentUserID mocks base method.
func (*MockClientWithResponsesIfc) DeleteInterfaceReleaseWithResponse ¶
func (m *MockClientWithResponsesIfc) DeleteInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*DeleteInterfaceReleaseResponse, error)
DeleteInterfaceReleaseWithResponse mocks base method.
func (*MockClientWithResponsesIfc) DeleteInterfaceWithResponse ¶
func (m *MockClientWithResponsesIfc) DeleteInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*DeleteInterfaceResponse, error)
DeleteInterfaceWithResponse mocks base method.
func (*MockClientWithResponsesIfc) DeleteOrganizationMemberWithResponse ¶
func (m *MockClientWithResponsesIfc) DeleteOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*DeleteOrganizationMemberResponse, error)
DeleteOrganizationMemberWithResponse mocks base method.
func (*MockClientWithResponsesIfc) EXPECT ¶
func (m *MockClientWithResponsesIfc) EXPECT() *MockClientWithResponsesIfcMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockClientWithResponsesIfc) GetCurrentUserWithResponse ¶
func (m *MockClientWithResponsesIfc) GetCurrentUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetCurrentUserResponse, error)
GetCurrentUserWithResponse mocks base method.
func (*MockClientWithResponsesIfc) GetInterfaceByCanonicalPathWithResponse ¶
func (m *MockClientWithResponsesIfc) GetInterfaceByCanonicalPathWithResponse(ctx context.Context, host, ownerPath, name string, reqEditors ...RequestEditorFn) (*CanonicalInterfaceMeta, int, error)
GetInterfaceByCanonicalPathWithResponse mocks base method.
func (*MockClientWithResponsesIfc) GetInterfaceReleaseWithResponse ¶
func (m *MockClientWithResponsesIfc) GetInterfaceReleaseWithResponse(ctx context.Context, interfaceId InterfaceId, semVer SemanticVersion, reqEditors ...RequestEditorFn) (*GetInterfaceReleaseResponse, error)
GetInterfaceReleaseWithResponse mocks base method.
func (*MockClientWithResponsesIfc) GetInterfaceRevisionWithResponse ¶
func (m *MockClientWithResponsesIfc) GetInterfaceRevisionWithResponse(ctx context.Context, interfaceId InterfaceId, revisionId InterfaceRevisionId, reqEditors ...RequestEditorFn) (*GetInterfaceRevisionResponse, error)
GetInterfaceRevisionWithResponse mocks base method.
func (*MockClientWithResponsesIfc) GetInterfaceWithResponse ¶
func (m *MockClientWithResponsesIfc) GetInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*GetInterfaceResponse, error)
GetInterfaceWithResponse mocks base method.
func (*MockClientWithResponsesIfc) GetOrganizationMemberWithResponse ¶
func (m *MockClientWithResponsesIfc) GetOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, reqEditors ...RequestEditorFn) (*GetOrganizationMemberResponse, error)
GetOrganizationMemberWithResponse mocks base method.
func (*MockClientWithResponsesIfc) GetOrganizationWithResponse ¶
func (m *MockClientWithResponsesIfc) GetOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*GetOrganizationResponse, error)
GetOrganizationWithResponse mocks base method.
func (*MockClientWithResponsesIfc) GetUserWithResponse ¶
func (m *MockClientWithResponsesIfc) GetUserWithResponse(ctx context.Context, userId UserId, reqEditors ...RequestEditorFn) (*GetUserResponse, error)
GetUserWithResponse mocks base method.
func (*MockClientWithResponsesIfc) ListInterfaceReleasesWithResponse ¶
func (m *MockClientWithResponsesIfc) ListInterfaceReleasesWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceReleasesResponse, error)
ListInterfaceReleasesWithResponse mocks base method.
func (*MockClientWithResponsesIfc) ListInterfaceRevisionsWithResponse ¶
func (m *MockClientWithResponsesIfc) ListInterfaceRevisionsWithResponse(ctx context.Context, interfaceId InterfaceId, reqEditors ...RequestEditorFn) (*ListInterfaceRevisionsResponse, error)
ListInterfaceRevisionsWithResponse mocks base method.
func (*MockClientWithResponsesIfc) ListInterfacesWithResponse ¶
func (m *MockClientWithResponsesIfc) ListInterfacesWithResponse(ctx context.Context, params *ListInterfacesParams, reqEditors ...RequestEditorFn) (*ListInterfacesResponse, error)
ListInterfacesWithResponse mocks base method.
func (*MockClientWithResponsesIfc) ListOrganizationMembersWithResponse ¶
func (m *MockClientWithResponsesIfc) ListOrganizationMembersWithResponse(ctx context.Context, organizationId OrganizationId, reqEditors ...RequestEditorFn) (*ListOrganizationMembersResponse, error)
ListOrganizationMembersWithResponse mocks base method.
func (*MockClientWithResponsesIfc) ListOrganizationsWithResponse ¶
func (m *MockClientWithResponsesIfc) ListOrganizationsWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*ListOrganizationsResponse, error)
ListOrganizationsWithResponse mocks base method.
func (*MockClientWithResponsesIfc) UpdateInterfaceWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) UpdateInterfaceWithBodyWithResponse(ctx context.Context, interfaceId InterfaceId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateInterfaceResponse, error)
UpdateInterfaceWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) UpdateInterfaceWithResponse ¶
func (m *MockClientWithResponsesIfc) UpdateInterfaceWithResponse(ctx context.Context, interfaceId InterfaceId, body UpdateInterfaceJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateInterfaceResponse, error)
UpdateInterfaceWithResponse mocks base method.
func (*MockClientWithResponsesIfc) UpdateOrganizationMemberWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) UpdateOrganizationMemberWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)
UpdateOrganizationMemberWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) UpdateOrganizationMemberWithResponse ¶
func (m *MockClientWithResponsesIfc) UpdateOrganizationMemberWithResponse(ctx context.Context, organizationId OrganizationId, userId UserId, body UpdateOrganizationMemberJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationMemberResponse, error)
UpdateOrganizationMemberWithResponse mocks base method.
func (*MockClientWithResponsesIfc) UpdateOrganizationWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) UpdateOrganizationWithBodyWithResponse(ctx context.Context, organizationId OrganizationId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
UpdateOrganizationWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) UpdateOrganizationWithResponse ¶
func (m *MockClientWithResponsesIfc) UpdateOrganizationWithResponse(ctx context.Context, organizationId OrganizationId, body UpdateOrganizationJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOrganizationResponse, error)
UpdateOrganizationWithResponse mocks base method.
func (*MockClientWithResponsesIfc) UpdateUserWithBodyWithResponse ¶
func (m *MockClientWithResponsesIfc) UpdateUserWithBodyWithResponse(ctx context.Context, userId UserId, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithBodyWithResponse mocks base method.
func (*MockClientWithResponsesIfc) UpdateUserWithResponse ¶
func (m *MockClientWithResponsesIfc) UpdateUserWithResponse(ctx context.Context, userId UserId, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
UpdateUserWithResponse mocks base method.
type MockClientWithResponsesIfcMockRecorder ¶
type MockClientWithResponsesIfcMockRecorder struct {
// contains filtered or unexported fields
}
MockClientWithResponsesIfcMockRecorder is the mock recorder for MockClientWithResponsesIfc.
func (*MockClientWithResponsesIfcMockRecorder) AddOrganizationMemberWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) AddOrganizationMemberWithBodyWithResponse(ctx, organizationId, contentType, body any, reqEditors ...any) *gomock.Call
AddOrganizationMemberWithBodyWithResponse indicates an expected call of AddOrganizationMemberWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) AddOrganizationMemberWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) AddOrganizationMemberWithResponse(ctx, organizationId, body any, reqEditors ...any) *gomock.Call
AddOrganizationMemberWithResponse indicates an expected call of AddOrganizationMemberWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CreateInterfaceReleaseWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceReleaseWithBodyWithResponse(ctx, interfaceId, contentType, body any, reqEditors ...any) *gomock.Call
CreateInterfaceReleaseWithBodyWithResponse indicates an expected call of CreateInterfaceReleaseWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CreateInterfaceReleaseWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceReleaseWithResponse(ctx, interfaceId, body any, reqEditors ...any) *gomock.Call
CreateInterfaceReleaseWithResponse indicates an expected call of CreateInterfaceReleaseWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CreateInterfaceRevisionWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceRevisionWithBodyWithResponse(ctx, interfaceId, contentType, body any, reqEditors ...any) *gomock.Call
CreateInterfaceRevisionWithBodyWithResponse indicates an expected call of CreateInterfaceRevisionWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CreateInterfaceRevisionWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceRevisionWithResponse(ctx, interfaceId, body any, reqEditors ...any) *gomock.Call
CreateInterfaceRevisionWithResponse indicates an expected call of CreateInterfaceRevisionWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CreateInterfaceWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceWithBodyWithResponse(ctx, contentType, body any, reqEditors ...any) *gomock.Call
CreateInterfaceWithBodyWithResponse indicates an expected call of CreateInterfaceWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CreateInterfaceWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CreateInterfaceWithResponse(ctx, body any, reqEditors ...any) *gomock.Call
CreateInterfaceWithResponse indicates an expected call of CreateInterfaceWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CreateOrganizationWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CreateOrganizationWithBodyWithResponse(ctx, contentType, body any, reqEditors ...any) *gomock.Call
CreateOrganizationWithBodyWithResponse indicates an expected call of CreateOrganizationWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CreateOrganizationWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CreateOrganizationWithResponse(ctx, body any, reqEditors ...any) *gomock.Call
CreateOrganizationWithResponse indicates an expected call of CreateOrganizationWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) CurrentUserID ¶
func (mr *MockClientWithResponsesIfcMockRecorder) CurrentUserID(ctx any) *gomock.Call
CurrentUserID indicates an expected call of CurrentUserID.
func (*MockClientWithResponsesIfcMockRecorder) DeleteInterfaceReleaseWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) DeleteInterfaceReleaseWithResponse(ctx, interfaceId, semVer any, reqEditors ...any) *gomock.Call
DeleteInterfaceReleaseWithResponse indicates an expected call of DeleteInterfaceReleaseWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) DeleteInterfaceWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) DeleteInterfaceWithResponse(ctx, interfaceId any, reqEditors ...any) *gomock.Call
DeleteInterfaceWithResponse indicates an expected call of DeleteInterfaceWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) DeleteOrganizationMemberWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) DeleteOrganizationMemberWithResponse(ctx, organizationId, userId any, reqEditors ...any) *gomock.Call
DeleteOrganizationMemberWithResponse indicates an expected call of DeleteOrganizationMemberWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) GetCurrentUserWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) GetCurrentUserWithResponse(ctx any, reqEditors ...any) *gomock.Call
GetCurrentUserWithResponse indicates an expected call of GetCurrentUserWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) GetInterfaceByCanonicalPathWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) GetInterfaceByCanonicalPathWithResponse(ctx, host, ownerPath, name any, reqEditors ...any) *gomock.Call
GetInterfaceByCanonicalPathWithResponse indicates an expected call of GetInterfaceByCanonicalPathWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) GetInterfaceReleaseWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) GetInterfaceReleaseWithResponse(ctx, interfaceId, semVer any, reqEditors ...any) *gomock.Call
GetInterfaceReleaseWithResponse indicates an expected call of GetInterfaceReleaseWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) GetInterfaceRevisionWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) GetInterfaceRevisionWithResponse(ctx, interfaceId, revisionId any, reqEditors ...any) *gomock.Call
GetInterfaceRevisionWithResponse indicates an expected call of GetInterfaceRevisionWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) GetInterfaceWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) GetInterfaceWithResponse(ctx, interfaceId any, reqEditors ...any) *gomock.Call
GetInterfaceWithResponse indicates an expected call of GetInterfaceWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) GetOrganizationMemberWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) GetOrganizationMemberWithResponse(ctx, organizationId, userId any, reqEditors ...any) *gomock.Call
GetOrganizationMemberWithResponse indicates an expected call of GetOrganizationMemberWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) GetOrganizationWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) GetOrganizationWithResponse(ctx, organizationId any, reqEditors ...any) *gomock.Call
GetOrganizationWithResponse indicates an expected call of GetOrganizationWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) GetUserWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) GetUserWithResponse(ctx, userId any, reqEditors ...any) *gomock.Call
GetUserWithResponse indicates an expected call of GetUserWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) ListInterfaceReleasesWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) ListInterfaceReleasesWithResponse(ctx, interfaceId any, reqEditors ...any) *gomock.Call
ListInterfaceReleasesWithResponse indicates an expected call of ListInterfaceReleasesWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) ListInterfaceRevisionsWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) ListInterfaceRevisionsWithResponse(ctx, interfaceId any, reqEditors ...any) *gomock.Call
ListInterfaceRevisionsWithResponse indicates an expected call of ListInterfaceRevisionsWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) ListInterfacesWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) ListInterfacesWithResponse(ctx, params any, reqEditors ...any) *gomock.Call
ListInterfacesWithResponse indicates an expected call of ListInterfacesWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) ListOrganizationMembersWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) ListOrganizationMembersWithResponse(ctx, organizationId any, reqEditors ...any) *gomock.Call
ListOrganizationMembersWithResponse indicates an expected call of ListOrganizationMembersWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) ListOrganizationsWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) ListOrganizationsWithResponse(ctx any, reqEditors ...any) *gomock.Call
ListOrganizationsWithResponse indicates an expected call of ListOrganizationsWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) UpdateInterfaceWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) UpdateInterfaceWithBodyWithResponse(ctx, interfaceId, contentType, body any, reqEditors ...any) *gomock.Call
UpdateInterfaceWithBodyWithResponse indicates an expected call of UpdateInterfaceWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) UpdateInterfaceWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) UpdateInterfaceWithResponse(ctx, interfaceId, body any, reqEditors ...any) *gomock.Call
UpdateInterfaceWithResponse indicates an expected call of UpdateInterfaceWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) UpdateOrganizationMemberWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) UpdateOrganizationMemberWithBodyWithResponse(ctx, organizationId, userId, contentType, body any, reqEditors ...any) *gomock.Call
UpdateOrganizationMemberWithBodyWithResponse indicates an expected call of UpdateOrganizationMemberWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) UpdateOrganizationMemberWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) UpdateOrganizationMemberWithResponse(ctx, organizationId, userId, body any, reqEditors ...any) *gomock.Call
UpdateOrganizationMemberWithResponse indicates an expected call of UpdateOrganizationMemberWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) UpdateOrganizationWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) UpdateOrganizationWithBodyWithResponse(ctx, organizationId, contentType, body any, reqEditors ...any) *gomock.Call
UpdateOrganizationWithBodyWithResponse indicates an expected call of UpdateOrganizationWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) UpdateOrganizationWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) UpdateOrganizationWithResponse(ctx, organizationId, body any, reqEditors ...any) *gomock.Call
UpdateOrganizationWithResponse indicates an expected call of UpdateOrganizationWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) UpdateUserWithBodyWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) UpdateUserWithBodyWithResponse(ctx, userId, contentType, body any, reqEditors ...any) *gomock.Call
UpdateUserWithBodyWithResponse indicates an expected call of UpdateUserWithBodyWithResponse.
func (*MockClientWithResponsesIfcMockRecorder) UpdateUserWithResponse ¶
func (mr *MockClientWithResponsesIfcMockRecorder) UpdateUserWithResponse(ctx, userId, body any, reqEditors ...any) *gomock.Call
UpdateUserWithResponse indicates an expected call of UpdateUserWithResponse.
type Organization ¶
type Organization struct {
// Id TypeID for the organization
Id OrganizationId `json:"id"`
Name string `json:"name"`
Settings map[string]interface{} `json:"settings"`
Slug string `json:"slug"`
}
Organization A user's organization
type OrganizationMember ¶
type OrganizationMember struct {
// CreatedAt When the membership was created
CreatedAt time.Time `json:"createdAt"`
// OrganizationId TypeID for the organization
OrganizationId OrganizationId `json:"organizationId"`
// Role Role of the user within the organization; determines permissions on org-scoped resources
Role OrganizationRole `json:"role"`
// UserId TypeID for the user
UserId UserId `json:"userId"`
}
OrganizationMember A user's membership in an organization
type OrganizationRole ¶
type OrganizationRole string
OrganizationRole Role of the user within the organization; determines permissions on org-scoped resources
const ( Admin OrganizationRole = "admin" Editor OrganizationRole = "editor" Viewer OrganizationRole = "viewer" )
Defines values for OrganizationRole.
type RequestEditorFn ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type SemanticVersion ¶
type SemanticVersion = string
SemanticVersion Semantic versioning number (https://semver.org/)
type SpecificationFileFormat ¶
type SpecificationFileFormat string
SpecificationFileFormat The file format of the interface specification file
const ( Json SpecificationFileFormat = "json" Yaml SpecificationFileFormat = "yaml" )
Defines values for SpecificationFileFormat.
type UpdateInterfaceJSONRequestBody ¶
type UpdateInterfaceJSONRequestBody = UpdateInterfaceRequest
UpdateInterfaceJSONRequestBody defines body for UpdateInterface for application/json ContentType.
type UpdateInterfaceRequest ¶
type UpdateInterfaceRequest struct {
Description *string `json:"description,omitempty"`
IsPublic *bool `json:"isPublic,omitempty"`
Name *string `json:"name,omitempty"`
}
UpdateInterfaceRequest Properties for updating an existing interface
type UpdateInterfaceResponse ¶
type UpdateInterfaceResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *InterfaceDescriptor
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseUpdateInterfaceResponse ¶
func ParseUpdateInterfaceResponse(rsp *http.Response) (*UpdateInterfaceResponse, error)
ParseUpdateInterfaceResponse parses an HTTP response from a UpdateInterfaceWithResponse call
func (UpdateInterfaceResponse) Status ¶
func (r UpdateInterfaceResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateInterfaceResponse) StatusCode ¶
func (r UpdateInterfaceResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateOrganizationJSONRequestBody ¶
type UpdateOrganizationJSONRequestBody = UpdateOrganizationRequest
UpdateOrganizationJSONRequestBody defines body for UpdateOrganization for application/json ContentType.
type UpdateOrganizationMemberJSONRequestBody ¶
type UpdateOrganizationMemberJSONRequestBody = UpdateOrganizationMemberRequest
UpdateOrganizationMemberJSONRequestBody defines body for UpdateOrganizationMember for application/json ContentType.
type UpdateOrganizationMemberRequest ¶
type UpdateOrganizationMemberRequest struct {
// Role Role of the user within the organization; determines permissions on org-scoped resources
Role OrganizationRole `json:"role"`
}
UpdateOrganizationMemberRequest Properties for updating an existing membership
type UpdateOrganizationMemberResponse ¶
type UpdateOrganizationMemberResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *OrganizationMember
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseUpdateOrganizationMemberResponse ¶
func ParseUpdateOrganizationMemberResponse(rsp *http.Response) (*UpdateOrganizationMemberResponse, error)
ParseUpdateOrganizationMemberResponse parses an HTTP response from a UpdateOrganizationMemberWithResponse call
func (UpdateOrganizationMemberResponse) Status ¶
func (r UpdateOrganizationMemberResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateOrganizationMemberResponse) StatusCode ¶
func (r UpdateOrganizationMemberResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateOrganizationRequest ¶
type UpdateOrganizationRequest struct {
Settings *map[string]interface{} `json:"settings,omitempty"`
}
UpdateOrganizationRequest Properties for updating an existing organization
type UpdateOrganizationResponse ¶
type UpdateOrganizationResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *Organization
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseUpdateOrganizationResponse ¶
func ParseUpdateOrganizationResponse(rsp *http.Response) (*UpdateOrganizationResponse, error)
ParseUpdateOrganizationResponse parses an HTTP response from a UpdateOrganizationWithResponse call
func (UpdateOrganizationResponse) Status ¶
func (r UpdateOrganizationResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateOrganizationResponse) StatusCode ¶
func (r UpdateOrganizationResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type UpdateUserJSONRequestBody ¶
type UpdateUserJSONRequestBody = UpdateUserRequest
UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.
type UpdateUserRequest ¶
type UpdateUserRequest struct {
Settings map[string]interface{} `json:"settings"`
}
UpdateUserRequest Properties for updating an existing user
type UpdateUserResponse ¶
type UpdateUserResponse struct {
Body []byte
HTTPResponse *http.Response
JSON200 *User
JSON400 *BadRequestError
JSON401 *UnauthorizedError
JSON403 *ForbiddenError
JSON404 *NotFoundError
}
func ParseUpdateUserResponse ¶
func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)
ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call
func (UpdateUserResponse) Status ¶
func (r UpdateUserResponse) Status() string
Status returns HTTPResponse.Status
func (UpdateUserResponse) StatusCode ¶
func (r UpdateUserResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode